mirror of
https://github.com/getzola/zola
synced 2024-12-14 22:32:29 +00:00
118 lines
No EOL
3.9 KiB
SCSS
118 lines
No EOL
3.9 KiB
SCSS
html, body {
|
|
font-size: 16px;
|
|
height: 100%;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
line-height: 1.6;
|
|
// from http://www.heropatterns.com
|
|
background-color: #191919;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%234b4b4b' fill-opacity='0.4'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
|
|
|
|
color: $foreground;
|
|
|
|
// for sticky footer
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
a {
|
|
color: $link-color;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
border-bottom: 1px solid rgba(0, 124, 188, 0.25);
|
|
|
|
&:hover {
|
|
border-bottom: 1px solid $link-color;
|
|
}
|
|
|
|
&:visited {
|
|
color: $link-color;
|
|
}
|
|
|
|
// totally taken from stripe
|
|
&.button {
|
|
outline: none;
|
|
white-space: nowrap;
|
|
display: inline-block;
|
|
height: 40px;
|
|
line-height: 40px;
|
|
padding: 0 14px;
|
|
box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
|
|
background: #fff;
|
|
border-radius: 4px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: .025em;
|
|
color: #191919;
|
|
text-decoration: none;
|
|
transition: all .15s ease;
|
|
border-bottom: none;
|
|
|
|
&:hover {
|
|
transform: translateY(-1px);
|
|
text-decoration: none;
|
|
box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
&:active {
|
|
background-color: #f6f9fc;
|
|
transform: translateY(1px);
|
|
}
|
|
}
|
|
|
|
&.white {
|
|
color: white;
|
|
border-bottom-color: rgba(255, 255, 255, 0.25);
|
|
|
|
&:hover {
|
|
border-bottom-color: white;
|
|
}
|
|
|
|
&:visited {
|
|
color: white;
|
|
}
|
|
}
|
|
}
|
|
|
|
pre {
|
|
padding: 1rem;
|
|
overflow: auto;
|
|
}
|
|
pre[data-linenos] {
|
|
padding: 1rem 0;
|
|
}
|
|
pre mark {
|
|
// If you want your highlights to take the full width.
|
|
display: block;
|
|
// The default background colour of a mark is bright yellow
|
|
background-color: rgba(254, 252, 232, 0.9);
|
|
}
|
|
pre table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
pre table td {
|
|
padding: 0;
|
|
}
|
|
pre table td:nth-of-type(1) {
|
|
text-align: center;
|
|
user-select: none;
|
|
}
|
|
|
|
p code, li code {
|
|
background-color: #f5f5f5;
|
|
white-space: pre-wrap;
|
|
padding: 5px;
|
|
border-radius: 5px;
|
|
font-size: 0.85rem;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 1px rgba(0,0,0,.1), 0 2px 1px -1px rgba(0,0,0,.12);
|
|
} |