binario/static/css/main.css

1016 lines
12 KiB
CSS
Raw Normal View History

2018-11-14 14:43:53 +00:00
/* CSS Reset (based on Bootstrap Reboot v4.1.3) */
2018-02-11 06:35:19 +00:00
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
font-family: sans-serif;
line-height: 1.15;
-webkit-text-size-adjust: 100%;
-ms-overflow-style: scrollbar;
-webkit-tap-highlight-color: transparent;
}
@-ms-viewport {
width: device-width;
}
article,
aside,
2018-05-22 13:36:26 +00:00
details,
2018-02-11 06:35:19 +00:00
dialog,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
2018-05-22 13:36:26 +00:00
section,
summary {
2018-02-11 06:35:19 +00:00
display: block;
}
body {
2018-02-11 06:39:37 +00:00
max-width: 1200px;
margin: 0 auto;
2018-02-11 06:35:19 +00:00
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 1rem;
font-weight: 400;
line-height: 1.4;
color: #ddd;
text-align: left;
background-color: #1b1b1b;
-webkit-font-smoothing: antialiased;
}
hr {
margin: 20px 0;
border: 0;
border-top: 1px solid #444;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin-top: 0;
margin-bottom: 0.5rem;
2018-05-22 11:57:43 +00:00
font-weight: 600;
}
h1 {
font-size: 2rem;
}
h2 {
font-size: 1.75rem;
}
h3 {
font-size: 1.5rem;
}
h4 {
font-size: 1.375rem;
}
h5 {
font-size: 1.25rem;
}
h6 {
font-size: 1.125rem;
2018-02-11 06:35:19 +00:00
}
p {
margin-top: 0;
margin-bottom: 1rem;
}
abbr[title] {
text-decoration: none;
cursor: help;
border-bottom: 1px dotted #c3c3c3;
}
address {
margin-bottom: 1rem;
font-style: normal;
line-height: inherit;
}
ol,
ul,
dl {
padding-left: 25px;
margin-top: 0;
margin-bottom: 1rem;
}
@media screen and (min-width: 480px) {
ol,
ul,
dl {
padding-left: 2.5rem;
}
}
ol ol,
ul ul,
ol ul,
ul ol {
margin-bottom: 0;
}
dt {
font-weight: 700;
}
dd {
margin-bottom: .5rem;
margin-left: 0;
}
2018-02-11 06:44:25 +00:00
blockquote {
2018-05-22 12:02:27 +00:00
padding: 0 1rem;
margin: 0 0 1rem 1rem;
2018-02-11 06:44:25 +00:00
border-left: 5px solid #f8ae00;
}
blockquote footer {
text-align: right;
}
2018-02-11 06:35:19 +00:00
b,
strong {
font-weight: bolder;
}
small {
font-size: 80%;
}
sub,
sup {
position: relative;
font-size: 75%;
line-height: 0;
vertical-align: baseline;
}
sub {
bottom: -.25em;
}
sup {
top: -.5em;
}
a {
color: #f8ae00;
text-decoration: none;
background-color: transparent;
}
a:hover {
color: #fff;
text-decoration: underline;
}
pre,
code,
kbd,
samp {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
2018-02-11 06:35:19 +00:00
font-size: 1em;
}
pre {
padding: 1.25rem;
margin-top: 0;
margin-bottom: 1rem;
overflow: auto;
-ms-overflow-style: scrollbar;
2018-05-21 19:21:43 +00:00
background-color: #111;
}
code {
padding: 1px 3px;
color: #e44;
background-color: #111;
border-radius: 2px;
}
pre code {
padding: 0;
color: inherit;
background-color: inherit;
border-radius: 0;
2018-02-11 06:35:19 +00:00
}
2018-02-11 06:44:25 +00:00
kbd {
padding: 2px 3px;
2018-05-22 16:13:45 +00:00
font-weight: 700;
color: #111;
2019-01-20 17:55:19 +00:00
background-color: #888;
2018-02-11 06:44:25 +00:00
}
2018-02-11 06:35:19 +00:00
figure {
2018-05-26 19:48:48 +00:00
display: inline-block;
2018-02-11 06:35:19 +00:00
margin: 0 0 1rem;
}
2018-05-26 19:48:48 +00:00
figcaption {
padding: .5rem;
2018-05-27 13:41:48 +00:00
background-color: #111;
2018-05-26 19:48:48 +00:00
}
2018-02-11 06:35:19 +00:00
img {
max-width: 100%;
vertical-align: middle;
border-style: none;
}
2018-11-14 14:43:53 +00:00
svg {
2018-02-11 06:35:19 +00:00
overflow: hidden;
}
table {
width: 100%;
2018-05-21 20:01:54 +00:00
margin-bottom: 1rem;
border-spacing: 0;
2018-02-11 06:35:19 +00:00
border-collapse: collapse;
border-top: 1px solid #ddd;
border-left: 1px solid #ddd;
}
td,
th {
2018-05-21 20:01:54 +00:00
padding: .3125rem .625rem;
border-right: 1px solid #ddd;
border-bottom: 1px solid #ddd;
2018-02-11 06:35:19 +00:00
}
caption {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
color: #6c757d;
text-align: left;
caption-side: bottom;
}
th {
font-weight: 700;
2018-02-11 06:35:19 +00:00
}
label {
display: inline-block;
margin-bottom: 0.5rem;
}
button {
border-radius: 0;
}
button:focus {
outline: 1px dotted;
outline: 5px auto -webkit-focus-ring-color;
}
input,
button,
select,
optgroup,
textarea {
margin: 0;
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
button,
input {
overflow: visible;
}
button,
select {
text-transform: none;
}
button,
2018-11-14 14:43:53 +00:00
[type="button"],
2018-02-11 06:35:19 +00:00
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
padding: 0;
border-style: none;
}
input[type="radio"],
input[type="checkbox"] {
box-sizing: border-box;
padding: 0;
}
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"] {
-webkit-appearance: listbox;
}
textarea {
overflow: auto;
resize: vertical;
}
fieldset {
min-width: 0;
padding: 0;
margin: 0;
border: 0;
}
legend {
display: block;
width: 100%;
max-width: 100%;
padding: 0;
margin-bottom: .5rem;
font-size: 1.5rem;
line-height: inherit;
color: inherit;
white-space: normal;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
[type="search"] {
outline-offset: -2px;
-webkit-appearance: none;
}
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
::-webkit-file-upload-button {
font: inherit;
-webkit-appearance: button;
}
output {
display: inline-block;
}
summary {
display: list-item;
cursor: pointer;
}
2018-02-11 06:39:37 +00:00
mark {
background-color: #f8ae00;
}
2018-03-04 07:21:14 +00:00
.mt {
margin-top: 1rem;
}
.mb {
margin-bottom: 1rem;
}
.mla {
margin-left: auto;
}
.tal {
text-align: left;
}
.tar {
text-align: right;
}
2018-11-16 16:45:08 +00:00
.btn {
background-color: #111;
border-radius: 3px;
}
.btn:hover {
color: #fff;
background-color: #000;
}
2018-02-11 06:39:37 +00:00
/* Header */
.header {
2018-05-21 20:01:54 +00:00
margin: 0 0 .3125rem;
2018-02-11 06:39:37 +00:00
overflow: auto;
background-color: #2a2a2a;
border-color: #333;
border-style: solid;
border-width: 0 0 1px;
}
2018-02-11 06:55:56 +00:00
.block {
2018-05-21 20:01:54 +00:00
padding: .875rem;
margin: .1875rem 0;
2018-02-11 06:55:56 +00:00
color: #eee;
background-color: #2a2a2a;
border-color: #333;
border-style: solid;
border-width: 1px 0;
}
2018-02-11 06:39:37 +00:00
@media screen and (min-width: 480px) {
.header {
2018-05-21 20:01:54 +00:00
margin: 0 .3125rem .3125rem;
2018-02-11 06:39:37 +00:00
border-width: 0 1px 1px;
}
2018-02-11 06:55:56 +00:00
.block {
2018-06-18 08:22:29 +00:00
margin: .625rem .3125rem;
2018-02-11 06:55:56 +00:00
border-width: 1px;
}
2018-02-11 06:39:37 +00:00
}
.logo {
display: inline-block;
2018-05-21 20:01:54 +00:00
padding: 0.625rem .75rem;
2018-02-11 06:39:37 +00:00
font-size: 16px;
font-weight: 700;
}
.logo:hover {
color: #f8ae00;
text-decoration: none;
}
2018-11-05 17:08:53 +00:00
.js .logo {
float: left;
}
2018-04-01 12:56:28 +00:00
/* Menu */
.main-menu {
display: block;
font-size: 0;
font-weight: 700;
}
2018-11-05 17:08:53 +00:00
.no-js .main-nav__btn {
display: none;
}
2018-04-01 12:56:28 +00:00
.main-nav__btn {
display: block;
2018-04-01 12:56:28 +00:00
float: right;
padding: 0;
font-size: 1em;
2018-11-18 17:52:31 +00:00
cursor: pointer;
2018-05-23 10:23:07 +00:00
background-color: #2a2a2a;
2018-04-01 12:56:28 +00:00
border: 0;
2018-05-23 10:23:07 +00:00
border-left: 1px solid #333;
outline: 0;
2018-05-23 16:25:58 +00:00
fill: #f8ae00;
2018-04-01 12:56:28 +00:00
}
.main-nav__btn:focus,
.main-nav__btn:hover {
color: #000;
}
.main-nav__btn-box {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: 42px;
height: 42px;
}
:focus > .main-nav__btn-box {
box-shadow: inset 0 0 1px 3px #4285f4;
}
button:not(:-moz-focusring):focus > .main-nav__btn-box {
box-shadow: none;
}
.main-nav__btn:focus,
.main-nav__btn-box:focus {
outline: none;
}
2018-04-01 12:56:28 +00:00
.main-nav__btn .icon-menu__burger {
display: inline;
}
.main-nav__btn .icon-menu__x {
display: none;
}
.main-nav__btn--active .icon-menu__burger {
display: none;
}
.main-nav__btn--active .icon-menu__x {
display: inline;
}
.main-nav__list {
font-size: 0;
}
.main-nav__item {
font-size: 1rem;
font-weight: 700;
border-top: 1px solid #333;
}
.main-nav__item:hover {
background-color: #444;
}
.main-nav__item--active {
2018-05-21 20:01:54 +00:00
padding: .625rem;
2018-04-01 12:56:28 +00:00
}
.main-nav__item--active:hover {
background-color: transparent;
}
.main-nav__link {
display: block;
2018-05-21 20:01:54 +00:00
padding: .625rem;
2018-04-01 12:56:28 +00:00
}
.main-nav__list {
padding: 0;
margin: 0;
list-style: none;
}
.js .main-nav__list {
2018-04-01 12:56:28 +00:00
display: none;
}
.js .main-nav__btn {
2018-04-01 12:56:28 +00:00
display: block;
}
.main-nav__list.main-nav__list--active {
display: block;
width: 100%;
clear: both;
background-color: #2a2a2a;
}
@media (min-width: 920px) {
2018-04-01 12:56:28 +00:00
.logo {
display: inline-block;
}
.js .main-nav__list {
2018-04-01 12:56:28 +00:00
display: block;
}
.js .main-nav__btn {
2018-04-01 12:56:28 +00:00
display: none;
}
.main-nav__btn {
display: none;
}
.main-nav {
2019-02-17 22:10:19 +00:00
display: flex;
2018-04-01 12:56:28 +00:00
}
.main-nav__item {
display: inline-block;
border: 0;
}
2019-02-17 22:10:19 +00:00
.main-nav__list--right {
margin-left: auto;
}
2018-04-01 12:56:28 +00:00
.main-nav__list.main-nav__list--active {
position: initial;
border: 0;
}
}
2018-03-10 04:42:33 +00:00
/* Taxonomies */
2018-05-26 19:57:49 +00:00
.page {
2018-06-18 08:22:29 +00:00
margin-bottom: .3125rem;
2018-05-26 19:57:49 +00:00
}
2018-03-10 04:42:33 +00:00
.page__title {
margin-bottom: 0;
}
.page__content {
margin-top: 1rem;
}
2018-06-20 09:54:12 +00:00
.page__content--notitle {
margin: 0;
}
.page__content p:last-child {
margin-bottom: 0;
}
2018-11-14 14:43:53 +00:00
/* Cards UI */
2018-03-10 04:40:22 +00:00
.cards {
display: flex;
flex-wrap: wrap;
}
.card {
display: flex;
width: 100%;
2018-06-18 08:22:29 +00:00
}
.card:first-child {
border-top: 1px solid #333;
}
.card__box {
display: flex;
flex-direction: column;
width: 100%;
margin: 0;
2018-11-01 06:26:31 +00:00
border-width: 0 0 1px;
2018-03-10 04:40:22 +00:00
}
@media screen and (min-width: 480px) {
.card {
2018-05-21 20:01:54 +00:00
padding: .3125rem;
2018-03-10 04:40:22 +00:00
}
2018-06-18 08:22:29 +00:00
.card:first-child {
border: 0;
}
.card__box {
border-width: 1px;
}
2018-03-10 04:40:22 +00:00
}
@media screen and (min-width: 720px) {
.card--2col {
width: 50%;
}
.card--3col {
width: 50%;
}
}
@media screen and (min-width: 860px) {
.card--3col {
width: 33.333%;
}
}
2018-03-04 07:21:14 +00:00
/* Post */
2018-05-22 12:27:55 +00:00
.title-excerpt {
2018-05-21 20:01:54 +00:00
font-size: 1.25rem;
}
2018-03-10 07:19:17 +00:00
.post__content {
flex: 1 0 auto;
margin: 0;
2018-05-26 19:31:06 +00:00
overflow: auto;
2018-05-27 13:41:48 +00:00
color: #c3c3c3;
2018-03-10 07:19:17 +00:00
}
.post__content p:last-child {
margin-bottom: 0;
}
2018-03-04 07:21:14 +00:00
.post__meta {
2018-05-21 20:01:54 +00:00
font-size: .875rem;
2018-05-22 10:38:09 +00:00
color: #999;
2018-03-04 07:21:14 +00:00
}
.post__meta-published,
.post__meta-lastmod {
display: block;
}
2018-02-23 12:54:37 +00:00
.post__tags {
margin-top: 2rem;
}
.post__tag {
display: inline-block;
2018-05-23 16:25:58 +00:00
padding: .25rem .5rem;
2018-06-11 18:41:16 +00:00
margin: .25rem;
2018-02-23 12:54:37 +00:00
line-height: 1.5;
}
2018-06-16 13:04:15 +00:00
.toc {
2018-05-22 13:36:26 +00:00
padding: .5rem;
margin-bottom: 1rem;
color: #f8ae00;
list-style: none;
2019-01-20 17:55:19 +00:00
background-color: #111;
2018-05-22 13:36:26 +00:00
}
2018-06-16 13:04:15 +00:00
.toc[open] {
2018-05-22 13:36:26 +00:00
color: #fff;
}
2018-06-16 13:04:15 +00:00
.toc__title {
padding: .25rem;
font-weight: 700;
}
.toc nav {
padding: .5rem 0 .5rem .5rem;
}
.toc ul {
padding: 0;
2018-11-01 06:26:31 +00:00
margin: 0;
2018-05-22 15:50:12 +00:00
list-style: none;
2018-05-22 13:36:26 +00:00
}
2018-06-16 13:04:15 +00:00
.toc ul ul ul a {
padding-left: 25px;
2018-05-22 13:36:26 +00:00
}
2018-06-16 13:04:15 +00:00
.toc ul ul ul ul a {
padding-left: 45px;
}
.toc ul ul ul ul ul a {
padding-left: 65px;
}
.toc ul ul ul ul ul ul a {
padding-left: 85px;
2018-05-22 13:36:26 +00:00
}
2018-06-11 18:41:16 +00:00
.post__footer {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin-top: 1.5rem;
}
.post__tags {
display: flex;
flex-basis: 100%;
flex-wrap: wrap;
margin: 0 -.25rem auto;
}
.post__share {
display: flex;
flex-basis: 100%;
flex-wrap: wrap;
margin: 0 -.25rem auto;
}
@media screen and (min-width: 720px) {
.post__tags {
flex: 1 0 65%;
justify-content: flex-start;
}
.post__share {
flex: 1 0 35%;
justify-content: flex-end;
}
}
.share__link {
margin: .25rem;
font-size: 0;
}
.share__link:hover {
margin: .25rem;
text-decoration: none;
}
.share__icon {
width: 32px;
height: 32px;
2018-11-01 06:26:31 +00:00
fill: #f8ae00;
stroke: #f8ae00;
2018-06-11 18:41:16 +00:00
}
.share__icon:hover {
fill: #fff;
stroke: #fff;
}
2018-05-26 19:31:06 +00:00
.alignleft {
float: left;
margin: 1rem 1rem 1rem 0;
}
.alignright {
float: right;
margin: 1rem 0 1rem 1rem;
}
2018-05-23 07:16:16 +00:00
.center {
text-align: center;
}
2018-11-18 16:00:23 +00:00
/* Authorbox */
.author {
display: flex;
align-items: flex-start;
}
.author__avatar {
margin-right: .875rem;
margin-bottom: 0;
}
.author__img {
border-radius: 50%;
}
.author__body {
flex: 1;
}
.author__name {
margin-bottom: .625rem;
font-weight: 700;
}
2018-03-11 18:02:29 +00:00
/* Comments */
.comments {
2018-05-21 20:01:54 +00:00
margin-top: .625rem;
margin-bottom: .625rem;
2018-03-11 18:02:29 +00:00
}
2018-11-01 06:26:31 +00:00
/* Related */
2018-05-25 14:29:46 +00:00
.related {
margin-top: .625rem;
}
2018-02-23 12:27:28 +00:00
/* Pagination */
.pagination {
2018-06-18 08:22:29 +00:00
margin: .3125rem 0;
2018-02-23 12:27:28 +00:00
text-align: center;
background-color: #2a2a2a;
}
2018-06-18 08:22:29 +00:00
@media screen and (min-width: 480px) {
.pagination {
margin: .3125rem .3125rem .625rem;
}
}
2018-02-23 12:27:28 +00:00
.pagination__item {
display: inline-block;
2018-05-21 20:01:54 +00:00
padding: .25rem .625rem;
2018-02-23 12:27:28 +00:00
font-weight: 700;
border: 1px solid;
}
.pagination__item--gap {
color: #888;
cursor: default;
border-color: #888;
}
2018-05-23 09:55:29 +00:00
/* 404 */
.page404__title {
font-size: 2.25rem;
font-weight: 700;
}
.page404__lead {
margin-bottom: 2rem;
2018-05-23 16:25:58 +00:00
font-size: 1.5rem;
2018-05-23 09:55:29 +00:00
}
.page404__link {
font-size: 1.5rem;
}
2018-05-28 12:31:50 +00:00
/* Empty state */
.empty__icon {
margin-bottom: 2rem;
2018-11-01 06:26:31 +00:00
font-size: 3.5rem;
2018-05-28 12:31:50 +00:00
}
.empty__tip {
padding: .5rem;
margin: 4rem 0 0;
2018-11-01 06:26:31 +00:00
background-color: #202020;
2018-05-28 12:31:50 +00:00
}
2018-02-11 06:39:37 +00:00
/* Footer */
.footer {
2018-05-21 20:01:54 +00:00
padding: .625rem 0;
margin: .3125rem 0 0;
font-size: .8125rem;
2018-02-11 06:39:37 +00:00
color: #888;
2018-11-27 20:30:08 +00:00
text-align: center;
2018-02-11 06:39:37 +00:00
border-top: 2px solid #333;
}
.footer__social {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin-bottom: .5rem;
}
.social__link {
margin: .25rem;
font-size: 0;
background-color: #2a2a2a;
border: 1px solid #333;
fill: #999;
stroke: #999;
}
.social__link:hover {
fill: #c3c3c3;
stroke: #c3c3c3;
}
.social__icon {
width: 32px;
height: 32px;
}
2018-11-27 20:30:08 +00:00
.footer__links {
margin-bottom: .5rem;
2018-02-11 06:39:37 +00:00
}
@media screen and (min-width: 480px) {
.footer {
2018-05-21 20:01:54 +00:00
margin: .3125rem .3125rem 0;
2018-02-11 06:39:37 +00:00
}
}
2018-05-27 13:41:48 +00:00
/* Print */
@media print {
.post__content a,
.post__meta a,
.post__tag {
color: #000;
text-decoration: underline;
}
.logo,
.block,
.post__title,
.post__title-link,
.meta-categories__link,
.post__meta,
.post__content {
color: #000;
}
.main-nav,
.comments,
.post__toc,
.related,
.footer__copyright-credits {
display: none;
}
.header,
.block {
border: 0;
}
mark {
2019-01-20 17:55:19 +00:00
background-color: #25a;
2018-05-27 13:41:48 +00:00
}
blockquote {
border-color: #000;
}
}