binario/assets/css/main.css

752 lines
9.5 KiB
CSS
Raw Normal View History

2018-02-11 06:35:19 +00:00
body {
2018-02-11 06:39:37 +00:00
max-width: 1200px;
margin: 0 auto;
2018-02-11 06:35:19 +00:00
text-align: left;
2019-10-28 16:17:58 +00:00
word-wrap: break-word;
overflow-wrap: break-word;
2019-11-28 17:56:16 +00:00
-moz-osx-font-smoothing: grayscale;
2018-02-11 06:35:19 +00:00
-webkit-font-smoothing: antialiased;
}
@media screen and (min-width: 480px) {
ol,
ul,
dl {
padding-left: 2.5rem;
}
}
2018-02-11 06:44:25 +00:00
blockquote {
2018-05-22 12:02:27 +00:00
padding: 0 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
pre {
padding: 1.25rem;
2018-05-21 19:21:43 +00:00
background-color: #111;
}
code {
padding: 1px 3px;
background-color: #111;
border-radius: 2px;
}
pre code {
padding: 0;
background-color: inherit;
border-radius: 0;
2018-02-11 06:35:19 +00:00
}
2018-02-11 06:44:25 +00:00
kbd {
2018-05-22 16:13:45 +00:00
font-weight: 700;
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
}
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%;
}
table {
width: 100%;
2018-05-21 20:01:54 +00:00
margin-bottom: 1rem;
border-spacing: 0;
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
}
th {
font-weight: 700;
2018-02-11 06:35:19 +00:00
}
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;
2019-04-06 17:45:32 +00:00
padding: .625rem .875rem;
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 {
padding: .625rem .875rem .625rem .625rem;
border-left: 4px solid #888;
2018-04-01 12:56:28 +00:00
}
.main-nav__item--active:hover {
background-color: transparent;
}
.main-nav__link {
display: block;
2019-04-06 17:45:32 +00:00
padding: .625rem .875rem;
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) {
2020-01-07 15:50:28 +00:00
.header {
display: flex;
}
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;
}
.main-nav__item--active {
padding: .625rem .625rem .5rem;
border-bottom: 2px solid #888;
}
.main-nav__link {
padding: .625rem .625rem .5rem;
border-bottom: 2px solid transparent;
}
.main-nav__link:hover {
text-decoration: none;
border-color: #666;
}
2020-01-07 15:50:28 +00:00
.main-nav--right {
2019-02-17 22:10:19 +00:00
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%;
}
}
/* Entry */
2018-05-22 12:27:55 +00:00
.title-excerpt {
2018-05-21 20:01:54 +00:00
font-size: 1.25rem;
}
.entry__featured {
width: 100%;
min-height: 1px; /* Workaround for IE11 flexbox img height issue https://github.com/philipwalton/flexbugs/issues/75 */
text-align: center;
background-color: #1f1f1f;
}
.featured__figcaption {
width: 100%;
padding: 1rem;
text-align: left;
background-color: #111;
}
.featured__credit::before {
content: "© ";
}
.featured__credit {
font-size: .875rem;
font-style: normal;
color: #888;
}
.entry__content {
2018-03-10 07:19:17 +00:00
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
}
.entry__content p:last-child {
2018-03-10 07:19:17 +00:00
margin-bottom: 0;
}
.entry__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
}
.entry__meta-published,
.entry__meta-lastmod {
2018-03-04 07:21:14 +00:00
display: block;
}
.entry__tags {
2018-02-23 12:54:37 +00:00
margin-top: 2rem;
}
.entry__tag {
2018-02-23 12:54:37 +00:00
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
}
.entry__footer {
2018-06-11 18:41:16 +00:00
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin-top: 1.5rem;
}
.entry__tags {
2018-06-11 18:41:16 +00:00
display: flex;
flex-basis: 100%;
flex-wrap: wrap;
margin: 0 -.25rem auto;
}
.entry__share {
2018-06-11 18:41:16 +00:00
display: flex;
flex-basis: 100%;
flex-wrap: wrap;
margin: 0 -.25rem auto;
}
@media screen and (min-width: 720px) {
.entry__tags {
2018-06-11 18:41:16 +00:00
flex: 1 0 65%;
justify-content: flex-start;
}
.entry__share {
2018-06-11 18:41:16 +00:00
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;
}
.breadcrumb {
padding: .875rem;
margin: .1875rem 0 -.1875rem;
color: #c3c3c3;
border-width: 1px 0 0;
}
.breadcrumb--separated {
margin: .1875rem 0 .3125rem;
border-width: 1px 0;
}
@media screen and (min-width: 480px) {
.breadcrumb {
margin: .625rem .3125rem -.625rem;
border-width: 1px 1px 0;
}
.breadcrumb--separated {
margin: .625rem .3125rem .3125rem;
border-width: 1px;
}
}
.breadcrumb__list {
display: flex;
flex-wrap: wrap;
padding: 0;
margin: 0;
list-style: none;
}
.breadcrumb__item {
display: flex;
}
.breadcrumb__item::after {
display: block;
margin: 0 .3125rem;
content: "";
}
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
}
}