hugo-theme-anubis2/assets/css/main.css

521 lines
7.8 KiB
CSS
Raw Normal View History

{{ $light := resources.Get "css/light.css" }}
{{ $dark := resources.Get "css/dark.css" }}
{{ $light.Content }}
{{ if eq site.Params.style "dark-without-switcher" }}
:root {
{{ $dark.Content }}
}
{{ else if eq site.Params.style "auto-without-switcher" }}
@media (prefers-color-scheme: dark) {
:root {
{{ $dark.Content }}
}
}
{{else }}
[data-theme="dark"] {
{{ $dark.Content }}
}
{{ end }}
2020-01-12 07:51:51 +01:00
/* Basic */
html {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
2020-01-12 07:51:51 +01:00
/* 1 */
-ms-text-size-adjust: 100%;
/* 2 */
-webkit-text-size-adjust: 100%;
/* 2 */
}
body {
margin: 0;
font-size: 18px;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
2020-07-09 21:15:38 +02:00
color: var(--font-color);
background: var(--bg-color);
2020-01-12 07:51:51 +01:00
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
display: block;
}
.container {
max-width: 42em;
margin: 0 auto;
}
main {
outline:none;
}
/* Headers */
h1 {
font-size: 1.35em;
}
h2 {
font-size: 1.2em;
}
h3 {
font-size: 1.1em;
}
2020-01-12 07:51:51 +01:00
/* Links */
a {
2020-07-09 21:15:38 +02:00
color: var(--link-color);
2020-01-12 07:51:51 +01:00
text-decoration: none;
}
2020-07-09 21:15:38 +02:00
a:hover,
a:focus,
a:active {
color: var(--link-state-color);
border-bottom: 1px solid var(--link-state-border-color);
}
2020-01-12 07:51:51 +01:00
a:active,
a:hover {
outline: 0;
}
a:active {
opacity: 0.9;
}
a.skip-main {
left:-999px;
position:absolute;
top:auto;
width:1px;
height:1px;
overflow:hidden;
z-index:-999;
}
a.skip-main:focus,
a.skip-main:active {
left: auto;
top: 0px;
width: auto;
height: auto;
overflow:auto;
z-index:999;
padding: 4px 6px 4px 6px;
text-decoration: underline;
border: none;
}
/* Table */
2020-07-09 21:15:38 +02:00
thead {
background: var(--thead-bg-color);
}
.table-wrapper {
overflow-x: auto;
}
table {
max-width: 100%;
border-spacing: 0;
}
th, td {
padding: 0.5em 1em;
2020-07-09 21:15:38 +02:00
border: 1px double var(--table-border-color);
}
/* Code */
pre {
color: var(--pre-color);
2020-07-09 21:15:38 +02:00
background-color: var(--pre-bg-color);
padding: 1em;
max-width: 100%;
2020-04-26 13:53:07 +02:00
overflow: auto;
}
code,
pre,
kbd {
font-family: monospace;
font-size: 0.90em;
line-height: 154%;
}
2020-01-12 07:51:51 +01:00
/* Styles */
blockquote {
2020-07-09 21:15:38 +02:00
border-left: 2px solid var(--bq-color);
2020-01-12 07:51:51 +01:00
padding: 0.1em 1em;
margin-left: 0.75em;
}
p {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
hr {
2020-10-29 17:37:02 +01:00
color: var(--hr-color);
background-color: var(--hr-color);
border: none;
2020-01-12 07:51:51 +01:00
height: 1px;
}
/* Header */
header {
display: flex;
justify-content: space-between;
}
2020-07-09 21:15:38 +02:00
header a {
color: var(--font-color);
}
2020-01-12 07:51:51 +01:00
header h1 {
font-size: 1em;
margin-top: 1em;
margin-bottom: 0;
font-weight: normal;
}
header h2 {
font-size: 1em;
margin: 0;
font-weight: normal;
}
header nav {
margin-top: 1em;
max-width: 100%;
text-align: right;
}
header nav a {
margin-left: 2em;
}
2020-06-21 22:23:07 +02:00
.site-title {
white-space: nowrap;
2020-01-12 07:51:51 +01:00
}
2020-06-21 22:23:07 +02:00
.common-header {
2020-07-09 21:15:38 +02:00
padding-bottom: 1.5em;
border-bottom: thin solid var(--hr-color);
2020-02-02 16:01:10 +01:00
}
2020-01-12 07:51:51 +01:00
/* Pages */
main h1 {
margin-top: 1em;
2020-02-02 16:01:10 +01:00
font-weight: normal;
line-height: 1.1em;
margin-bottom: 0.5em;
2020-02-15 19:48:51 +01:00
font-weight: 600;
2020-01-12 07:51:51 +01:00
}
.post-short-list:first-of-type {
margin-top: 1em;
}
/* Articles */
2020-06-24 21:21:59 +02:00
.post-navigation {
2020-07-09 21:15:38 +02:00
background: var(--pagination-bg-color);
2020-06-24 21:21:59 +02:00
text-align: center;
margin-top: 1em;
max-width: 100%;
padding: 0.5em 0;
}
.post-navigation a:first-of-type {
margin-left: 0;
}
.post-navigation a {
2020-07-09 21:15:38 +02:00
color: var(--pagination-link-color);
2020-06-24 21:21:59 +02:00
margin-left: 2em;
}
2020-07-09 21:15:38 +02:00
.post-navigation a:hover,
.post-navigation a:focus,
.post-navigation a:active {
color: var(--link-state-color);
}
2020-06-06 21:05:21 +02:00
.post-title.favorite::after {
2020-06-21 22:23:07 +02:00
content: "☆";
2020-06-06 21:05:21 +02:00
display: inline-block;
margin-left: 0.2em;
}
2020-06-21 22:02:58 +02:00
.post-title.draft::after {
content: "✎";
display: inline-block;
margin-left: 0.2em;
}
.post-title.favorite.draft::after {
2020-06-21 22:23:07 +02:00
content: "☆ ✎";
2020-06-21 22:02:58 +02:00
display: inline-block;
margin-left: 0.2em;
}
2020-01-12 07:51:51 +01:00
article:not(:last-of-type) {
2020-07-09 21:15:38 +02:00
border-bottom: thin solid var(--hr-color);
2020-01-12 07:51:51 +01:00
padding-bottom: 2em;
}
article header h1 {
2020-02-15 19:48:51 +01:00
font-size: 1.35em;
2020-02-02 16:01:10 +01:00
line-height: 1.1em;
margin-bottom: 0.5em;
2020-02-15 19:48:51 +01:00
font-weight: 600;
2020-01-12 07:51:51 +01:00
}
article header h1 a {
2020-07-09 21:15:38 +02:00
color: var(--font-color);
2020-01-12 07:51:51 +01:00
border: none;
text-decoration: none;
}
2020-06-06 21:05:21 +02:00
.post-info {
2020-07-09 21:15:38 +02:00
color: var(--post-info-color);
2020-01-12 07:51:51 +01:00
font-size: 0.75em;
2020-02-02 16:01:10 +01:00
margin-top: 1em;
}
2020-07-09 21:15:38 +02:00
.post-info a {
color: var(--post-info-color);
}
.post-info a:hover {
color: var(--link-state-color);
}
2020-06-06 21:05:21 +02:00
.post-short-list .post-info {
2020-02-02 16:01:10 +01:00
margin-top: 0;
margin-bottom: 1.5em;
2020-01-12 07:51:51 +01:00
}
2020-06-06 21:05:21 +02:00
.post-taxonomies {
2020-02-15 20:07:42 +01:00
display: inline;
}
2020-06-06 21:05:21 +02:00
.post-date {
2020-02-02 16:01:10 +01:00
white-space: nowrap;
2020-01-12 07:51:51 +01:00
}
2020-06-06 21:05:21 +02:00
.post-categories {
2020-01-27 20:38:45 +01:00
display: inline;
list-style-type: none;
padding: 0;
}
2020-06-06 21:05:21 +02:00
.post-categories li {
2020-01-27 20:38:45 +01:00
display: inline;
2020-02-15 20:07:42 +01:00
margin-right: 1em;
2020-01-27 20:38:45 +01:00
}
2020-06-06 21:05:21 +02:00
.post-tags {
2020-02-15 20:07:42 +01:00
display: inline;
2020-01-12 07:51:51 +01:00
list-style-type: none;
padding: 0;
margin: 0;
}
2020-06-06 21:05:21 +02:00
.post-tags li {
2020-01-12 07:51:51 +01:00
display: inline;
2020-02-15 20:07:42 +01:00
margin-right: 1em;
2020-01-12 07:51:51 +01:00
}
article img {
max-width: 100%;
display: block;
height: auto;
margin: 0 auto .5em;
}
2020-06-12 14:31:45 +02:00
article figcaption {
2020-07-09 21:15:38 +02:00
color: grey;
2020-06-12 14:31:45 +02:00
text-align: center;
font-size: 0.85em;
margin-bottom: 2em;
}
2020-01-12 07:51:51 +01:00
.read-more {
2020-08-12 21:25:08 +02:00
margin: 1em 0;
2020-01-12 07:51:51 +01:00
}
.divider {
2020-07-09 21:15:38 +02:00
border-top: thin solid var(--hr-color);
2020-01-12 07:51:51 +01:00
display: block;
height: 1px;
border: 0;
width: 25%;
margin: 1em auto;
}
2020-06-03 22:26:07 +02:00
.post-summary {
margin-top: 0.5em;
display: block;
}
.post-summary > p {
display: block;
}
2020-01-12 07:51:51 +01:00
/* Other pages */
.terms {
list-style-type: none;
padding: 0;
line-height: 2em;
}
/* Pagination */
.pagination {
display: flex;
justify-content: space-between;
margin-top: 3em;
text-align: center;
}
2020-02-02 16:01:10 +01:00
.pagination-item {
2020-07-09 21:15:38 +02:00
background: var(--pagination-bg-color);
2020-01-12 07:51:51 +01:00
padding: 0.75em 0.75em;
}
2020-07-09 21:15:38 +02:00
.pagination-item a {
color: var(--pagination-link-color);
}
.pagination-item a:hover,
.pagination-item a:focus {
color: var(--link-state-color);
}
2020-02-02 16:01:10 +01:00
.disabled {
2020-01-12 07:51:51 +01:00
visibility: hidden;
}
.pagination-item a:hover, .pagination-item a:focus {
2020-02-02 16:01:10 +01:00
border-bottom: 0;
2020-01-12 07:51:51 +01:00
}
.post-pagination .pagination-item {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 16em;
}
2020-01-12 07:51:51 +01:00
/* Footer */
2020-07-09 21:15:38 +02:00
.common-footer {
border-top: thin solid var(--hr-color);
padding-top: 1.5em;
2020-01-12 07:51:51 +01:00
margin-top: 3em;
font-size: 16px;
2020-07-30 20:35:13 +02:00
}
.common-footer-bottom {
2020-07-09 21:15:38 +02:00
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
2020-01-12 07:51:51 +01:00
}
ul.language-select, ul.footer-menu {
2020-05-24 18:30:37 +02:00
padding-left: 0;
list-style: none;
display: flex;
}
ul.language-select > li, ul.footer-menu > li {
2020-05-24 18:30:37 +02:00
margin-right: 1em;
}
2020-07-09 21:15:38 +02:00
.theme-switcher {
color: var(--switcher-color);
background: var(--switcher-bg-color);
padding: 0.5em 1em;
font-size: 16px;
border: none;
2020-09-05 01:24:48 +02:00
margin-bottom: 1em;
2020-07-09 21:15:38 +02:00
}
2020-01-12 07:51:51 +01:00
/* Media Queries */
@media (max-width: 840px) {
.main-wrapper {
margin: 0;
max-width: none;
overflow-x: hidden;
padding-left: 25px;
padding-right: 25px;
}
.container {
max-width: 90%;
margin: 0 auto;
}
2020-02-02 16:01:10 +01:00
.pagination-item {
padding: 0.5em 0.5em;
font-size: 14px;
}
header {
display: block;
}
.site-header {
text-align: center;
}
header nav:not(:empty){
2020-07-09 21:15:38 +02:00
background: var(--pagination-bg-color);
2020-02-02 16:01:10 +01:00
margin-top: 1em;
max-width: 100%;
text-align: center;
padding: 0.5em 0;
}
header nav a {
display: inline-block;
margin: 0 2.5%;
2020-02-02 16:01:10 +01:00
}
2020-06-24 21:21:59 +02:00
.post-navigation {
2020-07-09 21:15:38 +02:00
background: var(--pagination-bg-color);
2020-06-24 21:21:59 +02:00
text-align: center;
padding: 0.5em 0;
}
.post-navigation a {
margin-left: 0.5em;
}
.post-pagination .pagination-item {
max-width: 10em;
}
2020-07-09 21:15:38 +02:00
}