tvl-depot/users/glittershark/gws.fyi/main.css
Griffin Smith 1aab2932cc fix(gws.fyi): Make CSS mobile-friendly
Don't apply the left-margin if the viewport is too narrow too handle it

Change-Id: Ia15641a6f0c94f9b0582f4a48af00b935f3e66bc
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2703
Reviewed-by: glittershark <grfn@gws.fyi>
Tested-by: BuildkiteCI
2021-03-29 00:15:21 +00:00

132 lines
1.8 KiB
CSS

@import url(https://fonts.googleapis.com/css?family=Inconsolata|Inter&display=swap);
body {
margin-top: 40px;
max-width: 900px;
line-height: 1.6;
font-size: 16px;
background: #f8f3ff;
color: #3a1616;
padding: 0 10px;
font-family: Inter, sans-serif;
}
@media (min-width: 1050px) {
body {
margin-left: 150px;
}
}
@media (min-width: 2000px) {
body {
margin-left: 300px;
}
}
input {
padding: 10px 16px;
margin: 2px 0;
box-sizing: border-box;
border: 2px solid #dabebe;
border-radius: 6px;
background: #f8f3ff;
color: #3a1616;
font-size: 16px;
-webkit-transition: 0.5s;
transition: 0.5s;
outline: 0;
}
input:focus {
border: 2px solid #3a1616;
}
.button {
background-color: #f8f3ff;
border: none;
color: #000;
padding: 6px 14px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
transition-duration: 0.4s;
cursor: pointer;
border: 2px solid #3a1616;
border-radius: 6px;
}
.button:hover {
background-color: #3a1616;
color: #fff;
}
.isa_error,
.isa_info,
.isa_success,
.isa_warning {
width: 90%;
margin: 10px 0;
padding: 12px;
}
.isa_info {
color: #00529b;
background-color: #bde5f8;
}
.isa_success {
color: #4f8a10;
background-color: #dff2bf;
}
.isa_warning {
color: #9f6000;
background-color: #feefb3;
}
.isa_error {
color: #d8000c;
background-color: #ffd2d2;
}
h1,
h2,
h3 {
line-height: 1.2;
font-family: Inter, sans-serif;
}
h2 {
font-size: 18px;
}
img {
max-width: 750px;
border-radius: 10px;
}
a {
cursor: pointer;
color: #217ab7;
line-height: inherit;
}
a:hover {
background-color: #e3d6ff;
}
a:visited {
color: #43458b;
border-color: #43458b;
}
pre {
font-family: Inconsolata, monospace;
}
::selection {
color: #fff;
background: #ff4081;
}