This repository has been archived on 2024-11-13. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity_website/themes/nluug/assets/scss/styles.scss

477 lines
8.1 KiB
SCSS
Raw Normal View History

$color-button: #1D3160;
$color-button-hover: #17274d;
2023-05-15 21:58:14 +02:00
$color-button-call-to-action: #138808;
$color-button-call-to-action-hover: #0F6D06; // %25 donkerder dan #138808 met encycolorpedia
$color-header: #6A2060;
$color-highlight-box-border: #6A2060;
$color-highlight-box-background: #EBBCE5; // omgezet naar lichtere kleur via https://encycolorpedia.com/6a2060
$color-border: #6A2060;
$color-text-inverse: white;
2023-05-15 21:58:14 +02:00
*, :after, :before {
box-sizing: border-box;
padding: 0;
}
body {
2023-05-15 21:58:14 +02:00
//font: 1rem/1.5 -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica,helvetica neue,ubuntu,roboto,noto,segoe ui,arial,sans-serif;
font: 1rem/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
padding: 1.2rem;
// background: hsla(93, 0%, 96%, 1.00);
2023-05-15 21:58:14 +02:00
color: #2E2E2E;
}
.skip-link {
position: absolute;
top: -40px;
left: 0;
//margin: 1.5rem 0;
background: #eee;
//color: white;
//padding: 1.5rem;
z-index: 100;
}
.skip-link:focus {
top: 0;
}
figure {
margin-inline-start: 10px;
margin-inline-end: 10px;
}
2023-05-15 21:58:14 +02:00
footer {
background-color: #E3E9F7;
border-top: 1px solid #99AFE2;
margin-top: 40px;
padding: 20px;
}
.grid-team-members {
display: grid;
grid-template-columns: repeat(3, 1fr);
column-gap: 1px;
}
.grid-team-members-small-photos {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
column-gap: 1px;
}
h1, h2, h3, h4, h5, strong, b {
font-size: inherit;
font-weight: 600;
//text-transform: uppercase;
}
.header{
background-color: $color-header;
box-shadow: 1px 1px 5px 0px grey;
position: sticky;
//top: 100px;
width: 100%;
line-height: 2;
}
/* Nav menu */
.nav{
width: 100%;
height: 100%;
position: fixed;
background-color: $color-header;
overflow: hidden;
max-height: 0;
transition: max-height .5s ease-out;
}
.menu a {
display: block;
padding: 10px;
color: $color-text-inverse;
}
.menu a:visited {
color: $color-text-inverse;
}
.menu a:hover{
background-color: $color-header;
color: gray;
text-decoration: none;
}
/* Menu Icon */
.hamb{
cursor: pointer;
float: right;
padding: 40px 20px;
}
.hamb-line {
background: white;
display: block;
height: 2px;
position: relative;
width: 24px;
}
.hamb-line::before,
.hamb-line::after{
background: white;
content: '';
display: block;
height: 100%;
position: absolute;
transition: all .2s ease-out;
width: 100%;
}
.hamb-line::before{
top: 5px;
}
.hamb-line::after{
top: -5px;
}
.side-menu {
display: none;
} /* Hide checkbox */
/* Toggle menu icon */
.side-menu:checked ~ nav{
max-height: 100%;
}
.side-menu:checked ~ .hamb .hamb-line {
background: transparent;
}
.side-menu:checked ~ .hamb .hamb-line::before {
transform: rotate(-45deg);
top:0;
}
.side-menu:checked ~ .hamb .hamb-line::after {
transform: rotate(45deg);
top:0;
}
/* Sub nav */
.subnav-content {
background-color: $color-header;
color: black;
width: 100%;
z-index: 1;
padding: 10px 0 ;
//display: none;
}
.subnav-content a {
color: $color-text-inverse;
text-decoration: none;
padding: 0;
margin: 10px 0;
text-align: center;
}
.subnav-content a:visited {
color: $color-text-inverse;
}
.subnav:hover .subnav-content {
display: block;
}
/* Responsiveness */
@media (min-width: 768px) {
/* Sub nav */
.subnav-content {
padding: 8px 0;
display: none;
background-color: $color-header;
color: $color-text-inverse;
}
.header ul {
float: right;
}
.nav{
max-height: none;
top: 0;
position: relative;
float: right;
//width: fit-content;
background-color: transparent;
}
.menu li{
float: left;
}
2023-05-12 16:44:58 +02:00
.menu a {
color: $color-text-inverse;
}
.menu a:hover {
background-color: transparent;
color: gray;
}
.hamb{
display: none;
}
}
// Highlight-box om bijvoorbeeld onze evenementen opvallend op homepage te laten zien
.highlight-box {
background-color: $color-highlight-box-background;
padding: 10px;
margin: 2px;
border: 2px solid $color-highlight-box-border;
border-radius: 4px;
}
.link {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-decoration: none;
}
a.button:link, a.button:visited {
background-color: $color-button;
border-radius: 4px;
color: white;
padding: 14px 25px;
text-align: center;
text-decoration: none;
display: inline-block;
}
a.button:hover, a.button:active {
background-color: $color-button-hover;
}
2023-05-15 21:58:14 +02:00
// Button
.btn:link, .btn:visited {
border-radius: 4px;
color: white;
padding: 14px 25px;
text-align: center;
text-decoration: none;
display: inline-block;
}
// Button voor call-to-action, <a href="#" class="btn btn-cta">#</a>
.btn-cta:link, .btn-cta:visited {
background-color: $color-button-call-to-action;
}
.btn-cta:hover, .btn-cta:active {
background-color: $color-button-call-to-action-hover;
}
.time {
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
blockquote {
border-left: 5px solid #eee;
padding-left: 1rem;
margin: 0;
}
a,
a:visited {
color: inherit;
}
a:hover,
a.heading-link {
2023-05-12 16:44:58 +02:00
color: inherit;
text-decoration: underline;
}
pre {
padding: .5rem;
overflow: auto;
overflow-x: scroll;
overflow-wrap: normal;
}
code, pre {
font-family: San Francisco Mono, Monaco, "Consolas", "Lucida Console","DejaVu Sans Mono", "Bitstream Vera Sans Mono", monospace;
font-size: small;
background: #eee
}
code {
margin: .1rem;
border: none;
}
ul {
list-style-type: square;
}
ul, ol {
padding-left: 1.2rem;
}
.list {
line-height: 2;
list-style-type: none;
padding-left: 0;
}
.list li {
padding-bottom: .1rem
}
.meta {
color: #777
}
.content {
max-width: 800px;
margin: 0 auto;
// text-align: justify;
}
header {
line-height: 2;
//flex-basis: 10rem;
//flex-grow: 1;
//position: relative;
display: flex;
justify-content: space-between;
padding-bottom: 1rem;
}
header a {
text-decoration: none;
}
header ul {
list-style-type: none;
padding: 0;
}
header li, header a {
//margin-bottom: .2rem;
//text-align: right;
//margin-right: 2rem;
display: inline;
}
h2.post {
padding-top: .5rem;
}
header ul a:first-child {
padding-left: 1rem;
}
.list li {
display: flex;
align-items: baseline;
}
.list li time {
flex: 0 1 auto;
}
.hr-list {
margin-top: 0;
margin-bottom: 0;
margin-right: .5rem;
margin-left: .5rem;
height: 1px;
border: 0;
border-bottom: 1px dotted #ccc;
flex: 1 0 1rem;
//opacity: .25;
}
2023-05-12 20:44:14 +02:00
.m,hr {
border: 0;
2023-05-16 20:24:54 +02:00
margin: 3rem 0;
}
2023-05-16 20:24:54 +02:00
.m-sm {
margin: 1rem;
}
img {
max-width: 100%;
height: auto;
}
.post-date {
margin: 5% 0 5%;
}
.index-date {
color: #9a9a9a;
}
.tags {
display: flex;
justify-content: space-between;
}
.tags ul {
padding: 0;
margin: 0;
}
.tags li {
display: inline;
}
2023-05-16 20:24:54 +02:00
.w-10 { width: 10%; }
.w-20 { width: 20%; }
.w-30 { width: 30%; }
.w-40 { width: 40%; }
.w-50 { width: 50%; }
2023-05-15 13:11:28 +02:00
/* Table Styles */
.table-wrapper{
margin: 10px 10px 30px;
box-shadow: 0px 10px 20px rgba( 0, 0, 0, 0.2 );
overflow-x:auto;
2023-05-15 13:11:28 +02:00
}
.fl-table {
border-radius: 5px;
2023-05-16 20:24:54 +02:00
font-size: 14px;
2023-05-15 13:11:28 +02:00
font-weight: normal;
border: none;
border-collapse: collapse;
width: 100%;
max-width: 100%;
background-color: white;
}
.fl-table td, .fl-table th {
text-align: left;
2023-05-15 13:11:28 +02:00
padding: 8px;
2023-05-16 20:24:54 +02:00
vertical-align: top;
2023-05-15 13:11:28 +02:00
}
.fl-table td {
border-right: 1px solid #f8f8f8;
2023-05-16 20:24:54 +02:00
font-size: 14px;
2023-05-15 13:11:28 +02:00
}
.fl-table thead th {
color: #ffffff;
background: #324960;
}
.fl-table thead th:nth-child(odd) {
color: #ffffff;
background: #324960;
}
.fl-table tr:nth-child(even) {
background: #F8F8F8;
}