caddy-website/src/resources/css/common.css

284 lines
3.7 KiB
CSS
Raw Normal View History

2020-01-24 12:47:52 -07:00
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
2020-03-26 12:57:10 -06:00
font-family: Inter, sans-serif;
2020-01-24 12:47:52 -07:00
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
tab-size: 4;
-moz-tab-size: 4;
}
.wrapper {
max-width: 1400px;
margin-left: auto;
margin-right: auto;
padding-left: 40px;
padding-right: 40px;
}
.text-center {
text-align: center;
}
.text-right {
text-align: right;
}
.float-right {
float: right;
}
2020-01-24 12:47:52 -07:00
a {
color: #0694f1;
text-decoration: none;
}
a:hover {
color: #ff3f2c;
}
header {
display: flex;
justify-content: space-between;
padding: 25px 0;
}
2020-11-25 10:46:20 -07:00
#logo-container {
2022-12-30 12:35:53 -07:00
display: flex;
flex-direction: column;
align-items: flex-end;
2020-11-25 10:46:20 -07:00
}
2020-01-24 12:47:52 -07:00
#logo {
2022-12-30 12:35:53 -07:00
height: 50px;
}
#zerossl-project {
font-size: 12px;
margin-top: -5px;
2020-01-24 12:47:52 -07:00
}
2020-11-25 10:46:20 -07:00
#zerossl-logo {
height: 1.5em;
vertical-align: middle;
}
2020-01-24 12:47:52 -07:00
header nav {
text-align: right;
line-height: 40px;
}
2020-03-26 12:57:10 -06:00
header nav > a {
2020-01-24 12:47:52 -07:00
display: inline-block;
padding-left: 12px;
padding-right: 12px;
2020-01-24 12:47:52 -07:00
text-decoration: none;
color: inherit;
}
2020-03-26 12:57:10 -06:00
header nav > a:hover {
2020-01-24 12:47:52 -07:00
color: #ff3f2c;
}
2020-03-26 12:57:10 -06:00
header nav > a.current {
2020-01-24 12:47:52 -07:00
font-weight: bold;
}
/* Algolia DocSearch */
2020-03-26 12:57:10 -06:00
#search {
display: inline-block;
vertical-align: middle;
2020-03-26 12:57:10 -06:00
}
.DocSearch-Container {
color: initial;
}
.DocSearch-Footer {
margin-top: 0;
}
/* End Algolia DocSearch */
2020-03-26 12:57:10 -06:00
header nav .new {
background-color: #ffe300;
font-size: 75%;
vertical-align: top;
padding: 4px 8px;
border-radius: 1em;
}
2020-01-24 12:47:52 -07:00
header nav .button {
margin: 0 0 0 10px;
padding-top: 2px;
padding-bottom: 2px;
2020-03-26 12:57:10 -06:00
}
2020-01-24 12:47:52 -07:00
button,
2020-01-24 12:47:52 -07:00
.button {
border-radius: 2em;
padding: 10px 20px;
margin: 15px 0;
2020-01-24 12:47:52 -07:00
height: auto;
transition: all .2s;
text-decoration: none;
display: inline-block;
border: 0;
cursor: pointer;
2020-01-24 12:47:52 -07:00
}
button:hover,
2020-01-24 12:47:52 -07:00
.button:hover {
transform: scale(1.05);
}
button:active,
2020-01-24 12:47:52 -07:00
.button:active {
transform: translateY(2px);
}
button.red,
2020-01-24 12:47:52 -07:00
.button.red {
background-color: #d9552b;
color: white;
}
button.red:hover,
2020-01-24 12:47:52 -07:00
.button.red:hover {
background-color: #fd511a;
}
button.blue,
2020-01-24 12:47:52 -07:00
.button.blue {
background-color: #0082d0;
2020-01-24 12:47:52 -07:00
color: white;
}
button.blue:hover,
2020-01-24 12:47:52 -07:00
.button.blue:hover {
background-color: #00aaff;
}
button.gray,
2020-01-24 12:47:52 -07:00
.button.gray {
background-color: #4c6a79;
color: white;
}
button.gray:hover,
2020-01-24 12:47:52 -07:00
.button.gray:hover {
background-color: #4f8098;
}
button.big,
2020-01-24 12:47:52 -07:00
.button.big {
font-size: 125%;
text-transform: uppercase;
font-weight: bold;
padding: 20px 50px;
margin-right: 20px;
}
button.disabled,
.button.disabled,
button:disabled,
.button:disabled {
background-color: #aaa !important;
color: white !important;
transform: none !important;
cursor: not-allowed;
}
p button,
2020-01-24 12:47:52 -07:00
p .button {
font-size: 18px;
padding: 12px 30px;
}
2020-01-24 12:47:52 -07:00
article a:hover {
text-decoration: underline;
}
pre,
code,
kbd {
font-family: 'PT Mono', 'Source Code Pro', monospace;
padding: 3px 6px;
font-size: 95%;
line-height: 1.5em;
}
kbd {
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
border: 1px solid rgba(255, 255, 255, 0.1);
font-size: 80%;
font-weight: bold;
}
2020-01-24 12:47:52 -07:00
footer {
display: flex;
justify-content: space-between;
margin-top: 100px;
padding-bottom: 100px;
2020-01-24 12:47:52 -07:00
line-height: 125%;
}
footer > div {
width: 50%;
}
#footer-logo {
float: left;
2022-12-30 12:35:53 -07:00
max-width: 150px;
2020-01-24 12:47:52 -07:00
margin-right: 35px;
vertical-align: middle;
margin-top: -4px;
}
.copyright {
text-align: right;
font-size: 14px;
color: #999;
}
@media (max-width: 900px) {
2020-04-04 16:17:54 -06:00
header {
flex-direction: column;
2022-12-30 12:35:53 -07:00
gap: 1em;
2020-04-04 16:17:54 -06:00
}
#logo-container {
2022-12-30 12:35:53 -07:00
align-items: center;
2020-04-04 16:17:54 -06:00
}
header nav {
text-align: center;
}
2020-01-24 12:47:52 -07:00
footer {
flex-direction: column;
margin-top: 0;
padding: 20px 0;
}
footer > div {
width: initial;
text-align: center;
margin: 10px 0;
}
#footer-logo {
float: none;
display: block;
margin: 0 auto 25px;
}
.copyright {
text-align: center;
}
}