mirror of
https://github.com/nicolabs/nicolabs.net.git
synced 2025-09-07 16:27:21 +02:00
- replaced twitter contact with matrix (was not used since a while) ~ removed disqus comments (prepared to use cactus but still needs style tuning & some features debugging)
438 lines
6.4 KiB
SCSS
438 lines
6.4 KiB
SCSS
%highlighted {
|
|
background-color: $secondary-color;
|
|
color: $white-color;
|
|
display: inline-block;
|
|
padding: 0 .3em;
|
|
}
|
|
|
|
|
|
* {
|
|
&,
|
|
&:before,
|
|
&:after {
|
|
box-sizing: border-box;
|
|
}
|
|
}
|
|
|
|
html,
|
|
body {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.clearfix {
|
|
&:before {
|
|
content: " ";
|
|
display: table;
|
|
}
|
|
|
|
&:after {
|
|
content: " ";
|
|
display: table;
|
|
clear: both;
|
|
}
|
|
|
|
*zoom: 1;
|
|
}
|
|
|
|
body {
|
|
background-color: $base-background-color;
|
|
font-weight: 400;
|
|
}
|
|
|
|
hr {
|
|
border-top: none;
|
|
border-bottom: 2px solid lighten($light-gray-color, 7%);
|
|
width: 100%;
|
|
margin: $small-spacing 0;
|
|
}
|
|
|
|
.container {
|
|
padding: $base-spacing;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
max-width: 1000px;
|
|
}
|
|
|
|
.pull-left {
|
|
float: left;
|
|
}
|
|
|
|
.pull-right {
|
|
float: right;
|
|
}
|
|
|
|
.link {
|
|
display: inline;
|
|
padding-bottom: .08em;
|
|
border-bottom: 2px solid $light-gray-color;
|
|
|
|
@include transition(border 300ms linear);
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
border-color: darken($light-gray-color, 10%);
|
|
}
|
|
}
|
|
|
|
.site-header {
|
|
/* @nicobo removed borders */
|
|
margin-bottom: $small-spacing;
|
|
min-height: 80px;
|
|
width: 100%; /* does not change visually but useful when this element dynamically changes for position:fixed */
|
|
font-size: clamp( 100%, 1em, 4vw );
|
|
transition: 0.3s;
|
|
|
|
/* start @nicobo : color-inverted header */
|
|
background-color: $header-background-color;
|
|
background-image: $header-background-image;
|
|
background-size: 100%;
|
|
a {
|
|
font-weight: bolder;
|
|
|
|
/* preserves placement when drawing a box around when hovering */
|
|
display: inline-block;
|
|
padding: 0 .3em;
|
|
|
|
/* E.g. Padding is too much for Galaxy S10 */
|
|
@media screen and (max-width: 400px) {
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
When the site is scrolled down the site header is reduced and pinned at the top
|
|
Thanks https://css-tricks.com/how-do-you-do-max-font-size-in-css/
|
|
*/
|
|
&.site-header-pinned {
|
|
position: fixed;
|
|
// height: 2em;
|
|
width: 100%;
|
|
min-height: 0;
|
|
z-index: 999;
|
|
|
|
.nav .container {
|
|
padding-top: 0;
|
|
}
|
|
|
|
.logo {
|
|
font-size: clamp( 80%, 2em, 4vw );
|
|
margin: 0;
|
|
}
|
|
|
|
}
|
|
|
|
.nav {
|
|
.container {
|
|
padding-top: 1.5em;
|
|
padding-left: 1.5em;
|
|
padding-right: 1.5em;
|
|
}
|
|
}
|
|
|
|
/* end @nicobo */
|
|
|
|
}
|
|
|
|
.intro {
|
|
.author-name {
|
|
@extend %highlighted;
|
|
}
|
|
|
|
a {
|
|
@extend .link;
|
|
}
|
|
}
|
|
|
|
.lead {
|
|
font-style: italic;
|
|
}
|
|
|
|
.logo {
|
|
float: left;
|
|
margin: 0 0 1em 0;
|
|
cursor: pointer;
|
|
letter-spacing: 0.8px;
|
|
font-size: clamp( 100%, 2.8em, 6vw );
|
|
line-height: 28px;
|
|
font-weight: 300;
|
|
transition: 0.5s;
|
|
|
|
a {
|
|
color: $header-logo-color;
|
|
text-decoration: none;
|
|
border: none;
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
color: $header-logo-active-color;
|
|
}
|
|
}
|
|
|
|
span {
|
|
font-weight: 700;
|
|
}
|
|
}
|
|
|
|
.navbar {
|
|
float: right;
|
|
margin: 0;
|
|
position: relative;
|
|
padding: 0;
|
|
pointer-events: all;
|
|
cursor: pointer;
|
|
|
|
li {
|
|
display: inline-block;
|
|
/* BEWARE from 0 .6em this makes the menu items disappear from the viewport on mobile devices */
|
|
padding: 0 .5em;
|
|
}
|
|
|
|
a {
|
|
@extend .link;
|
|
color: $header-link-color;
|
|
border-color: $header-link-border-color;
|
|
background-color: $header-link-background-color;
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
background-color: $header-link-active-background-color;
|
|
color: $header-link-active-color;
|
|
}
|
|
}
|
|
}
|
|
|
|
.post-list {
|
|
/*background-color: lighten($light-gray-color, 17%);*/
|
|
padding: 0;
|
|
|
|
.mastodon {
|
|
padding-top: 0;
|
|
}
|
|
}
|
|
|
|
em {
|
|
font-style: italic;
|
|
}
|
|
|
|
strong {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.readmore {
|
|
font-style: italic;
|
|
}
|
|
|
|
.post-link,
|
|
.post a,
|
|
.page a {
|
|
@extend .link;
|
|
}
|
|
|
|
.post {
|
|
@extend .clearfix;
|
|
}
|
|
|
|
/* Post meta-data default style (e.g. index.html) */
|
|
.post-meta {
|
|
color: $medium-gray-color;
|
|
font-style: italic;
|
|
text-decoration: none;
|
|
border: none;
|
|
}
|
|
a {
|
|
@extend .link;
|
|
}
|
|
|
|
.post-item {
|
|
padding-bottom: $small-spacing;
|
|
margin-bottom: $base-spacing;
|
|
border-bottom: 1px solid lighten($light-gray-color, 5%);
|
|
|
|
.post-title {
|
|
font-weight: 700;
|
|
font-size: larger;
|
|
/* removes any border decoration */
|
|
border: none;
|
|
}
|
|
|
|
.post-item-header {
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
&:last-child {
|
|
border-bottom: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
}
|
|
|
|
/* Post meta-data style in the post itself */
|
|
.post-header {
|
|
|
|
margin-bottom: 2em;
|
|
|
|
.post-meta, a {
|
|
color: $secondary-color;
|
|
font-style: italic;
|
|
font-weight: bold;
|
|
text-decoration: none;
|
|
border: none;
|
|
}
|
|
}
|
|
|
|
/* Adds some space around the meta fields separator */
|
|
.post-meta-separator {
|
|
padding: 0 .5em;
|
|
}
|
|
|
|
.pagination {
|
|
li, a, span {
|
|
display: inline-block;
|
|
}
|
|
|
|
a, span {
|
|
font-size: rem(12);
|
|
padding: .5em;
|
|
}
|
|
|
|
.prev, .next {
|
|
@extend .link;
|
|
}
|
|
}
|
|
|
|
.share {
|
|
padding: $base-spacing 0 0;
|
|
|
|
@extend .pull-right;
|
|
|
|
h4 {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
|
|
aside.tags {
|
|
padding: $base-spacing 0 0;
|
|
|
|
@extend .pull-left;
|
|
|
|
/* tags & list of tags */
|
|
ul, li, a {
|
|
padding: 0;
|
|
list-style: none;
|
|
display: inline;
|
|
color: $secondary-color;
|
|
}
|
|
|
|
/* a tag */
|
|
li {
|
|
padding: .1em;
|
|
}
|
|
}
|
|
|
|
.tag-decoration {
|
|
color: $secondary-color;
|
|
}
|
|
|
|
.tag {
|
|
/* Tag links should not look like standard links, which are too much emphasized */
|
|
a {
|
|
text-decoration: none;
|
|
border: none;
|
|
}
|
|
}
|
|
|
|
h2.tag a {
|
|
@extend h2;
|
|
}
|
|
|
|
|
|
.site-footer {
|
|
@extend .clearfix;
|
|
|
|
padding: $base-spacing 0;
|
|
|
|
a {
|
|
@extend .link;
|
|
}
|
|
|
|
small {
|
|
display: block;
|
|
font-size: rem(12);
|
|
color: darken($medium-gray-color, 10%);
|
|
color: #000;
|
|
}
|
|
|
|
/* start @nicobo : color-inverted footer */
|
|
background-color: $footer-background-color;
|
|
background-image: $footer-background-image;
|
|
background-size: 100%;
|
|
|
|
.container {
|
|
* {
|
|
background-color: #fff;
|
|
padding: rem(5);
|
|
color: #000;
|
|
border-color: white;
|
|
font-weight: bolder;
|
|
}
|
|
}
|
|
/* end @nicobo */
|
|
}
|
|
|
|
/*
|
|
Mastodon timeline widget further customization
|
|
TODO Put specific mastodon widget style in a nicolabs/mastodon-widget.scss file
|
|
*/
|
|
|
|
/* any container after the 1st one (TODO with a CSS selector) */
|
|
.container-n {
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.mastodon-timeline {
|
|
padding-top: 0;
|
|
}
|
|
|
|
.mt-toot {
|
|
@extend .post-item;
|
|
padding-bottom: 1em;
|
|
}
|
|
|
|
.mt-user,
|
|
.mt-date {
|
|
display: inline;
|
|
|
|
a {
|
|
@extend .link;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
|
|
.mt-user:after {
|
|
content: " — ";
|
|
}
|
|
|
|
.toot-retoot {
|
|
display: inline;
|
|
margin-right: 1em;
|
|
}
|
|
|
|
.mt-header h4 {
|
|
@extend h2;
|
|
}
|
|
|
|
.mt-footer {
|
|
@extend .container;
|
|
@extend .readmore;
|
|
|
|
a {
|
|
@extend .post-link;
|
|
}
|
|
}
|