mirror of
https://github.com/caddyserver/website.git
synced 2025-04-24 05:56:15 -04:00
A few minor fixes/tweaks
This commit is contained in:
parent
6b16d4d4b8
commit
2973be1e45
5 changed files with 29 additions and 19 deletions
|
@ -77,6 +77,9 @@ example2.com {
|
|||
}
|
||||
```
|
||||
|
||||
If a request matches multiple site blocks, the first matching site is chosen. Requests don't cascade into to other site blocks.
|
||||
|
||||
|
||||
### Directives
|
||||
|
||||
**Directives** are keywords which customize how the site is served. For example, a complete file server config might look like this:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Caddy 2 - The Ultimate Server with Automatic HTTPS</title>
|
||||
<title>Caddy - The Ultimate Server with Automatic HTTPS</title>
|
||||
{{include "/includes/head.html"}}
|
||||
<link rel="stylesheet" href="/resources/css/home.css">
|
||||
<meta property="og:title" content="Caddy 2 - The Ultimate Server with Automatic HTTPS">
|
||||
|
|
|
@ -57,12 +57,15 @@ header {
|
|||
height: 40px;
|
||||
}
|
||||
|
||||
#search {
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
header nav {
|
||||
text-align: right;
|
||||
line-height: 40px;
|
||||
}
|
||||
|
||||
|
||||
header nav > a {
|
||||
display: inline-block;
|
||||
padding-left: 10px;
|
||||
|
@ -193,6 +196,18 @@ footer > div {
|
|||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
header {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
#logo-container {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
header nav {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
footer {
|
||||
flex-direction: column;
|
||||
margin-top: 0;
|
||||
|
|
|
@ -27,6 +27,10 @@ header {
|
|||
font-size: 12px;
|
||||
}
|
||||
|
||||
#search {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
header nav {
|
||||
font-size: 16px;
|
||||
line-height: 2em;
|
||||
|
@ -767,7 +771,11 @@ td code {
|
|||
}
|
||||
}
|
||||
|
||||
@media (max-width: 700px) {
|
||||
@media (max-width: 900px) {
|
||||
#logo-container {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#logo-docs {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
@ -2,10 +2,6 @@ body {
|
|||
font-family: 'Inter', sans-serif;
|
||||
}
|
||||
|
||||
#search {
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.hero {
|
||||
background-image: url('/resources/images/bg-teal.jpg');
|
||||
background-repeat: no-repeat;
|
||||
|
@ -171,18 +167,6 @@ iframe.github-stars {
|
|||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
header {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
#logo-container {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
header nav {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 50px;
|
||||
word-wrap: break-word;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue