website/_assets/stylesheets/_layout.scss
2022-01-13 12:47:49 +01:00

468 lines
7.3 KiB
SCSS

/**
* Site header
*/
.site-header {
background: #333;
border-top: 5px solid $title-color;
border-bottom: 1px solid $gray-800;
min-height: 56px;
// Positioning context for the mobile navigation icon
//position: relative;
}
.site-title {
font-family: sans-serif; //'Raleway', sans-serif;
font-size: 32px;
font-weight: 300;
line-height: 40px;
margin-bottom: 0;
color: #333;
&,
&:visited {
color: $title-color;
}
}
/**
* Site footer
*/
.site-footer {
min-height: 300px;
padding: $spacing-unit 0;
text-align: center;
color: #fff;
line-height: 1.3;
background-color: #333;
border-top: 3px dashed $body-bg;
box-shadow: 0px 250px #333;
li.list-inline-item {
img {
margin-top: -3px;
}
}
}
// .footer-heading {
// font-size: 18px;
// margin-bottom: $spacing-unit / 2;
// }
ul.social-buttons {
margin-bottom: 0;
}
ul.social-buttons li a {
font-size: 20px;
line-height: 40px;
display: block;
width: 40px;
height: 40px;
transition: all 0.3s;
color: #222;
border-radius: 100%;
outline: 0;
background-color: #fff;
}
ul.social-buttons li a:active,
ul.social-buttons li a:focus,
ul.social-buttons li a:hover {
background-color: $brand-color-secondary-hover;
}
/**
* Page content
*/
aside.aside {
padding: 5rem 0;
}
.page-content {
padding: $spacing-unit 0;
background-attachment: fixed;
background-size: cover;
background-repeat: no-repeat;
}
.page-heading {
font-size: 20px;
}
.post-list {
margin-left: 0;
list-style: none;
}
.post-meta {
color: $grey-color;
}
.post-link {
display: block;
font-family: sans-serif; //'Raleway', sans-serif;
@include media-query($on-palm) {
font-size: 1.1em;
}
}
/**
* Posts
*/
.post-header {
margin-bottom: $spacing-unit;
}
.post-title {
color: $grey-color;
font-family: sans-serif; //'Raleway', sans-serif;
font-size: 42px;
letter-spacing: -1px;
line-height: 1;
@include media-query($on-laptop) {
font-size: 36px;
}
}
.post-content {
margin-bottom: $spacing-unit;
h2 {
font-size: 32px;
@include media-query($on-laptop) {
font-size: 28px;
}
}
h3 {
font-size: 26px;
@include media-query($on-laptop) {
font-size: 22px;
}
}
h4 {
font-size: 20px;
@include media-query($on-laptop) {
font-size: 18px;
}
}
}
#post-nav {
display: block;
.next,
.previous {
float: left;
margin: 1rem 0;
width: 50%;
span:before,
span:after {
border: solid transparent 4px;
content: '';
display: inline-block;
height: 0;
margin: 0 0.5rem;
top: 0.8em;
width: 0;
}
}
.previous {
span:before {
border-left: 0;
border-right-color: $grey-color;
}
}
.next {
text-align: right;
span:after {
border-left-color: $grey-color;
border-right: 0;
}
}
@include media-query($on-palm) {
padding: initial;
.next,
.previous {
text-align: center;
width: 100%;
}
}
span {
color: $brand-color;
display: block;
font-family: Montserrat;
font-size: 0.75rem;
font-style: normal;
letter-spacing: 1px;
text-transform: uppercase;
}
a {
color: $grey-color;
font-style: italic;
}
}
/**
* Index
*/
.home {
h1 {
color: $brand-color;
display: block;
font-family: sans-serif; //'Raleway', sans-serif;
font-size: 44px;
text-align: center;
@include media-query($on-laptop) {
font-size: 36px;
}
}
}
/**
* Error pages
*/
.error {
text-align: center;
}
/**
* Bootstrap Override
*/
@media (min-width: 1200px) {
.container {
max-width: 960px;
}
}
// .card td.img {
// width: 220px;
// background-size: cover;
// background-repeat: no-repeat;
// }
// .btn {
// transition: box-shadow 0.3s ease-out, border-color 0.2s ease-out, color 0.3s ease-out;
// text-decoration: none;
// }
.btn-secondary {
background-color: transparent;
border-color: $brand-color-secondary;
box-shadow: inset 0px -0.3rem 0 $brand-color-secondary;
color: $text-color;
&:hover {
background-color: transparent;
border-color: $brand-color-secondary-hover;
box-shadow: inset 0px -100px 0 $brand-color-secondary-hover;
color: white;
}
&:focus {
box-shadow: inset 0 0 5px $brand-color-secondary;
color: $text-color;
}
&:not(:disabled):not(.disabled):active {
background-color: $brand-color-secondary;
border-color: $brand-color-secondary;
}
&:not(:disabled):not(.disabled):active:focus {
box-shadow: inset 0 0 5px $brand-color-secondary;
}
}
.btn-outline-primary {
border-color: $brand-color;
color: $brand-color;
&:hover {
background-color: $brand-color !important;
border-color: $brand-color !important;
}
&:active {
background-color: $brand-color !important;
border-color: $brand-color !important;
}
}
.btn-primary {
background-color: transparent;
border-color: $brand-color;
box-shadow: inset 0px -0.3rem 0 $brand-color, $box-shadow;
color: $text-color;
&:hover {
background-color: transparent;
border-color: $brand-color-hover;
box-shadow: inset 0px -100px 0 $brand-color;
}
&:focus {
box-shadow: inset 0 0 5px $brand-color;
color: $text-color;
}
&:not(:disabled):not(.disabled):active {
background-color: $brand-color;
border-color: $brand-color;
}
&:not(:disabled):not(.disabled):active:focus {
box-shadow: inset 0 0 5px $brand-color;
}
}
.btn-success {
background-color: transparent;
border-color: $success-color;
box-shadow: inset 0px -0.3rem 0 $success-color, $box-shadow;
color: $text-color;
&:hover {
background-color: transparent;
border-color: $success-color-hover;
box-shadow: inset 0px -100px 0 $success-color;
}
&:focus {
box-shadow: inset 0 0 5px $success-color;
color: $text-color;
}
&:not(:disabled):not(.disabled):active {
background-color: $success-color;
border-color: $success-color;
}
&:not(:disabled):not(.disabled):active:focus {
box-shadow: inset 0 0 5px $success-color;
}
}
// .bg-primary {
// background-color: $brand-color !important;
// }
// .border-primary {
// border-color: $brand-color !important;
// }
// .border-secondary {
// border-color: $brand-color-secondary !important;
// }
// .text-primary {
// color: $brand-color !important;
// }
// .card-columns {
// @media (max-width: 1199.98px) {
// column-count: 2;
// }
// @media (max-width: 991.98px) {
// column-count: 1;
// }
// }
// .dropdown-toggle:after {
// content: none;
// }
// .list-inline-item:not(:last-child) {
// margin-right: 0.25rem;
// }
.content-bottom {
background-color: rgba(0, 0, 0, 0.65);
bottom: 0;
width: 100%;
padding: 100px 15px 100px;
}
// .shadow {
// box-shadow: $box-shadow !important;
// }
.header {
min-height: 80vh;
background-size: cover;
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
}
.header-index {
margin-top: -30px;
margin-bottom: 0;
background-image: asset_url('header-space.webp');
}
.header-peertube {
background-image: asset_url('header-peertube.webp');
}
.header-libreboot {
background-image: asset_url('libreboot.webp');
}
.header-radio {
background-image: asset_url('header-radio.webp');
}
.header-aboutus {
background-image: asset_url('header-aboutus.webp');
}
.header-technical_assistance {
background-image: asset_url('header-technical_assistance.webp');
}
.header-cybersecurity {
background-image: asset_url('header-cybersecurity.webp');
}
.header-communications {
background-image: asset_url('header-communications.webp');
}
.min-height-500 {
min-height: 500px !important;
}
.fix-icon-mt {
margin-top: -3px;
}
.border-thicker {
border-width: 2px;
}