patek.cz/themes/patek/assets/css/main.scss
2019-09-08 10:58:03 +02:00

191 lines
3.2 KiB
SCSS

// Bulma customization
$primary: #0b2a37;
// /Bulma customization
// Bulma import
@import "./bulma/bulma.sass";
// /Bulma import
// Custom styles
.big-logo {
font-size: 80px;
color: $primary-invert;
&:hover {
color: darken($primary-invert, 10);
}
}
#home-navbar {
&:not(.is-fixed-top) {
patek-logo {
font-size: 0;
}
}
&.is-fixed-top {
patek-logo {
font-size: unset;
}
}
patek-logo {
transition: font-size 0.2s;
}
}
.is-fixed-top .navbar {
left: 0;
position: fixed;
right: 0;
z-index: 30;
top: 0;
}
.is-fixed-top .menu-placeholder {
height: 52px;
visibility: hidden;
}
.home-content, .home-content h1, .home-content h2, .home-content h3 {
background-color: $primary;
color: $primary-invert !important;
font-family: 'Fira Code';
}
.footer {
background-color: $primary;
color: $primary-invert;
text-align: center;
font-family: 'Fira Code';
font-size: smaller;
h2 {
color: $primary-invert;
}
}
.author-media {
margin-bottom: 15px;
}
.pageTitle.title {
font-weight: 300;
font-size: 40px;
margin-bottom: 10px;
}
.column .pageTitle.title {
font-size: 30px;
}
.pageHeader {
margin-bottom: 40px;
}
h1,h2,h3,h4,h5,h6,.title {
font-weight: 300;
}
h2 a {
color: $text;
}
.box h2 a {
color: $link;
&:hover {
color: $link-hover;
}
}
.separateWithCommas + .separateWithCommas:before {
content: ", ";
}
.content h1, .content h2, .content h3, .content h4, .content h5, .content h6, .content .title {
font-weight: 300;
padding-top: 60px;
margin-top: calc(1.1428em - 60px) !important;
&:first-child {
margin-top: -60px !important;
}
}
.header-link {
margin-right: 0.3em;
color: $link;
}
.dark-mode, .dark-mode * {
background-color: $black-ter !important;
color: white !important;
a {
color: $link !important;
}
}
#content {
min-height: 90vh;
}
.logo404 {
font-size: 150px;
}
@include mobile {
.logo404 {
font-size: 95px;
}
}
// "Stolen" from my own code for gbl.cz:
@include desktop {
.navbar-item {
&.is-active .navbar-dropdown, &.is-hoverable .navbar-dropdown {
display: block;
visibility: hidden;
filter: alpha(opacity=0);
opacity: 0;
-webkit-transition: 400ms ease;
-moz-transition: 400ms ease;
-o-transition: 400ms ease;
transition: 400ms ease;
}
&.is-hoverable:hover .navbar-dropdown {
opacity: 1;
filter: alpha(opacity=100);
visibility: visible;
}
}
}
// /Stolen
.is-construction {
position: relative;
padding: 12px 0;
text-align: center;
background-color: yellow;
color: black;
font-family: 'Fira Code';
&:before, &:after {
content: '';
position: absolute;
display: block;
height: 12px;
width: 100%;
background: repeating-linear-gradient(
-45deg,
black,
black 12px,
yellow 10px,
yellow 23px
);
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
border-bottom: 0;
}
&:before {
top: 0;
}
&:after {
bottom: 0;
}
}
.sponsors {
padding-top: 30px;
}
.sponsor {
display: flex;
justify-content: center;
a {
display: flex;
&:hover {
transform: scale(1.07);
transition: transform 0.4s;
}
}
}
// /Custom styles