website/_sass/base.scss

957 lines
14 KiB
SCSS

@charset "utf-8";
// @import url('https://fonts.googleapis.com/css?family=Rubik:400,700');
// @import url('Rubik-VariableFont_wght.ttf');
@font-face {
font-family: 'Rubik';
src: url('fonts/Rubik-VariableFont_wght.ttf') format('truetype');
}
/**
* Style variables
*/
$base-font-family: 'Rubik', monospace !default;
$base-font-size: 1.125rem !default;
$mobile-font-size: 1.125rem !default;
$base-line-height: 1.5 !default;
$container-width: 90% !default;
$container-max-width: 1000px !default;
/**
* Global
*/
body {
background-color: var(--background-color);
margin: 0 auto;
padding: 0;
font-family: $base-font-family;
font-size: $base-font-size;
color: var(--text-color);
text-align: left;
line-height: $base-line-height !important;
}
h1 {
font-size: 32px;
}
h2 {
font-size: 28px;
}
h3 {
font-size: 24px;
}
h4 {
font-size: 20px;
}
h5 {
font-size: 18px;
}
h6 {
font-size: 16px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0px;
margin-top: 12px;
margin-bottom: 12px;
font-weight: bold;
color: var(--text-color);
}
p,
ul,
ol {
margin: 0px;
color: var(--text-color);
}
a {
text-decoration: underline;
color: var(--link-color);
}
a:hover {
color: var(--background-color);
background-color: var(--base-color);
transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
@media only screen and (max-device-width: 500px) {
* {
font-size: $mobile-font-size;
}
}
/**
* Layout
*/
.container {
width: $container-width;
max-width: $container-max-width;
margin-right: auto;
margin-left: auto;
}
p {
word-wrap: break-word;
word-break: break-word;
white-space: pre-wrap;
margin-bottom: 15px;
}
footer {
color: var(--text-color);
border-top: var(--border);
margin-top: 0;
padding-top: 10px;
text-align: right;
}
header {
margin-top: 50px;
margin-bottom: 50px;
}
header p {
text-align: left;
margin: 0;
}
footer {
margin-bottom: 20px;
}
hr {
margin-top: 20px;
}
/**
* Navbar
*/
.menu-logo {
height: 60px;
}
#home-link:hover {
background: none;
text-decoration: none;
}
.header-page-links {
margin-right: 10%;
}
.header-page-links li:before {
content: ''
}
.header-page-links a {
margin: 0px 4px;
font-size: 1.1rem;
text-decoration: none;
}
.header-page-links a:hover {
background-color: transparent;
color: lightgrey;
}
.right-menu {
width: 70%;
display: flex;
justify-content: flex-end;
align-items: center;
}
.menu-button-container {
display: none;
width: 50px;
height: 50px;
cursor: pointer;
flex-direction: column;
justify-content: center;
align-items: center;
}
#menu-toggle {
display: none;
}
.menu-button,
.menu-button::before,
.menu-button::after {
display: block;
background-color: #fff;
position: absolute;
height: 4px;
width: 30px;
transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
border-radius: 2px;
}
.menu-button::before {
content: '';
margin-top: -8px;
}
.menu-button::after {
content: '';
margin-top: 8px;
}
#menu-toggle:checked+.menu-button-container .menu-button::before {
margin-top: 0px;
transform: rotate(405deg);
}
#menu-toggle:checked+.menu-button-container .menu-button {
background: rgba(255, 255, 255, 0);
}
#menu-toggle:checked+.menu-button-container .menu-button::after {
margin-top: 0px;
transform: rotate(-405deg);
}
.menu-content {
position: absolute;
display: none;
background: #282828;
text-align: right;
margin-top: 100px;
width: 100%;
z-index: 2;
}
.inner-menu-content {
border-bottom: 1px solid white;
}
.menu-content div {
margin: 50px 30px 50px 30px;
}
@media (max-width: 1020px) {
.right-menu {
width: 40px;
height: 40px;
}
.menu-button-container {
display: flex;
}
#menu-toggle~.menu li {
height: 0;
margin: 0;
padding: 0;
border: 0;
transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
}
#menu-toggle:checked~.menu li {
border: 1px solid #333;
height: 2.5em;
padding: 0.5em;
transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
}
.menu>li {
display: flex;
justify-content: center;
margin: 0;
padding: 0.5em 0;
width: 100%;
color: white;
background-color: #222;
}
.menu>li:not(:last-child) {
border-bottom: 1px solid #444;
}
}
/**
* Buttons
*/
.action-button {
display: inline-block;
padding: 10px 20px 9px 20px;
margin-top: 10px;
border-color: white;
border: solid 1px;
color: black;
background-color: white;
text-decoration: none;
}
.action-button:hover {
background-color: transparent;
border-color: white;
border: solid 1px;
color: white;
}
.button-container {
padding: 30px 0px;
}
/**
* Highlight/Markup
*/
::selection {
background: var(--selection-background);
color: var(--selection-text);
}
::-moz-selection {
background: var(--selection-background);
color: var(--selection-text);
}
/**
* Lists
*/
:not(.menu)>ul {
list-style: none;
}
:not(.menu)>ul {
list-style-type: none;
}
:not(.menu)>ul>li:before {
content: "-";
margin-right: 9px;
}
.right-menu>ul>li:before {
content: "" !important;
margin-right: 4px;
}
/**
* Header/Navigation
*/
.menu {
border-bottom: var(--border);
margin-bottom: 20px;
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 25px;
}
.menu ul {
margin-top: 12px;
margin-bottom: 12px;
padding-left: 0px;
list-style-type: none;
text-align: right;
}
.menu ul li {
display: inline;
margin-left: 10px;
}
/**
* Form
*/
input,
select,
textarea {
padding: 0;
margin: 0;
-webkit-appearance: none;
-webkit-border-radius: 0;
border: none;
}
input[type=text],
select,
textarea {
width: 100%;
resize: none;
background-color: var(--background-color);
color: var(--text-color);
caret-color: var(--text-color);
font-size: $base-font-size;
font-family: $base-font-family;
line-height: $base-line-height;
}
input,
select,
textarea,
textarea::-webkit-input-placeholder {
text-indent: 0px;
}
::placeholder {
color: var(--placeholder-color);
opacity: 1;
}
:-ms-input-placeholder {
color: var(--placeholder-color);
}
::-ms-input-placeholder {
color: var(--placeholder-color);
}
input[type=submit] {
font-size: $base-font-size;
font-family: $base-font-family;
line-height: $base-line-height;
cursor: pointer;
color: var(--link-color);
background-color: var(--background-color);
}
input[type=submit]:hover {
color: var(--background-color);
background-color: var(--base-color);
}
*:focus {
outline: none;
}
textarea {
vertical-align: top;
}
/**
* Homepage
*/
.particles-wrapper {
background-color: #222;
width: 100%;
height: 100%;
padding: 0;
margin: 0;
overflow: hidden;
}
.flex-container {
display: flex;
justify-content: space-between;
align-items: center;
}
.flex-container-inner {
width: 100%;
}
section {
padding-top: 100px;
padding-bottom: 100px;
}
.companies {
display: flex;
justify-content: space-between;
align-items: center;
margin: 30px 0px;
}
.companies div {
width: 27%;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
height: 120px;
border-bottom: 1px solid;
}
.companies a img {
height: 45px;
filter: grayscale(100%);
text-align: center;
}
.companies a:hover {
background-color: none;
background: none;
text-decoration: none;
}
.text-well {
max-width: 600px;
padding-right: 35px;
}
/**
* Code and syntax highlighting
*/
.lineno {
color: var(--code-color-1);
margin-right: 15px;
}
figure.highlight {
margin: 5px 0;
}
pre {
background-color: var(--background-color);
border: none;
padding: 0;
margin: 0;
overflow: auto;
font-size: $base-font-size;
color: var(--text-color);
line-height: 1.7 !important;
font-family: $base-font-family !important;
}
.highlight .hll {
background-color: var(--code-color-2);
}
.highlight .c {
color: var(--code-color-1);
font-style: italic
}
/* Comment */
.highlight .err {
color: var(--code-color-3);
background-color: var(--code-color-4);
}
/* Error */
.highlight .k {
color: var(--code-color-5);
}
/* Keyword */
.highlight .cm {
color: var(--code-color-1);
font-style: italic
}
/* Comment.Multiline */
.highlight .cp {
color: var(--code-color-6);
}
/* Comment.Preproc */
.highlight .c1 {
color: var(--code-color-1);
font-style: italic
}
/* Comment.Single */
.highlight .cs {
color: var(--code-color-5);
font-style: italic
}
/* Comment.Special */
.highlight .gd {
color: var(--code-color-7);
}
/* Generic.Deleted */
.highlight .ge {
font-style: italic
}
/* Generic.Emph */
.highlight .gr {
color: var(--code-color-7);
}
/* Generic.Error */
.highlight .gh {
color: var(--code-color-8);
font-weight: bold
}
/* Generic.Heading */
.highlight .gi {
color: var(--code-color-9);
}
/* Generic.Inserted */
.highlight .go {
color: var(--code-color-10);
}
/* Generic.Output */
.highlight .gp {
color: var(--code-color-11);
}
/* Generic.Prompt */
.highlight .gs {
font-weight: bold
}
/* Generic.Strong */
.highlight .gu {
color: var(--code-color-12);
font-weight: bold
}
/* Generic.Subheading */
.highlight .gt {
color: var(--code-color-7);
}
/* Generic.Traceback */
.highlight .kc {
color: var(--code-color-5);
}
/* Keyword.Constant */
.highlight .kd {
color: var(--code-color-5);
}
/* Keyword.Declaration */
.highlight .kn {
color: var(--code-color-5);
}
/* Keyword.Namespace */
.highlight .kp {
color: var(--code-color-5);
}
/* Keyword.Pseudo */
.highlight .kr {
color: var(--code-color-5);
}
/* Keyword.Reserved */
.highlight .kt {
color: var(--code-color-13);
}
/* Keyword.Type */
.highlight .m {
color: var(--code-color-14);
}
/* Literal.Number */
.highlight .s {
color: var(--code-color-15);
}
/* Literal.String */
.highlight .na {
color: var(--code-color-16);
}
/* Name.Attribute */
.highlight .nb {
color: var(--code-color-13);
}
/* Name.Builtin */
.highlight .nc {
color: var(--code-color-9);
text-decoration: underline
}
/* Name.Class */
.highlight .no {
color: var(--code-color-7);
}
/* Name.Constant */
.highlight .nd {
color: var(--code-color-10);
}
/* Name.Decorator */
.highlight .ni {
color: var(--code-color-17);
font-weight: bold
}
/* Name.Entity */
.highlight .nf {
color: var(--code-color-9);
}
/* Name.Function */
.highlight .nn {
color: var(--code-color-13);
text-decoration: underline
}
/* Name.Namespace */
.highlight .nt {
color: var(--code-color-16);
font-weight: bold
}
/* Name.Tag */
.highlight .nv {
color: var(--code-color-7);
}
/* Name.Variable */
.highlight .ow {
color: var(--code-color-5);
}
/* Operator.Word */
.highlight .w {
color: var(--code-color-18);
}
/* Text.Whitespace */
.highlight .mf {
color: var(--code-color-14);
}
/* Literal.Number.Float */
.highlight .mh {
color: var(--code-color-14);
}
/* Literal.Number.Hex */
.highlight .mi {
color: var(--code-color-14);
}
/* Literal.Number.Integer */
.highlight .mo {
color: var(--code-color-14);
}
/* Literal.Number.Oct */
.highlight .sb {
color: var(--code-color-15);
}
/* Literal.String.Backtick */
.highlight .sc {
color: var(--code-color-15);
}
/* Literal.String.Char */
.highlight .sd {
color: var(--code-color-15);
}
/* Literal.String.Doc */
.highlight .s2 {
color: var(--code-color-15);
}
/* Literal.String.Double */
.highlight .se {
color: var(--code-color-15);
}
/* Literal.String.Escape */
.highlight .sh {
color: var(--code-color-15);
}
/* Literal.String.Heredoc */
.highlight .si {
color: var(--code-color-15);
}
/* Literal.String.Interpol */
.highlight .sx {
color: var(--code-color-15);
}
/* Literal.String.Other */
.highlight .sr {
color: var(--code-color-14);
}
/* Literal.String.Regex */
.highlight .s1 {
color: var(--code-color-15);
}
/* Literal.String.Single */
.highlight .ss {
color: var(--code-color-5);
}
/* Literal.String.Symbol */
.highlight .bp {
color: var(--code-color-13);
}
/* Name.Builtin.Pseudo */
.highlight .vc {
color: var(--code-color-7);
}
/* Name.Variable.Class */
.highlight .vg {
color: var(--code-color-7);
}
/* Name.Variable.Global */
.highlight .vi {
color: var(--code-color-7);
}
/* Name.Variable.Instance */
.highlight .il {
color: var(--code-color-14);
}
/* Literal.Number.Integer.Long */
.hide {
display: none;
width: 100%;
}
.show {
display: inline-block;
}
/**
* Carousel
*/
.carousel-container {
padding-left: 80px;
}
#carousel {
display: flex;
flex-direction: column;
align-items: center;
overflow: hidden;
height: 320px;
padding-left: 100px;
position: relative;
}
.carousel-item {
display: flex;
justify-content: center;
align-items: center;
max-width: 400px;
height: 80px;
width: 100%;
font-size: 16px;
opacity: 0.5;
margin: 5px 0;
position: absolute;
left: 0;
right: 0;
transition: transform 1s ease, font-size 1s ease, opacity 1s ease;
transform-origin: center;
visibility: hidden;
overflow: hidden;
}
.carousel-link {
text-align: left;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
text-overflow: ellipsis;
line-height: 1.2;
max-height: 2.4em;
width: 100%;
margin: 0 10px;
white-space: normal;
}
.carousel-item.active {
transform: translateY(0) scale(1.2);
font-size: 20px;
opacity: 1;
visibility: visible;
}
/** end carousel */
*,
*::before,
*::after {
box-sizing: border-box;
}
body {
font-family: 'Work Sans', sans-serif;
font-weight: 400;
width: 100%;
}
.wrapper {
background: linear-gradient(60deg, #420285, #08BDBD);
height: 100%;
width: 100%;
display: flex;
justify-content: center;
}
.title {
text-transform: uppercase;
font-size: 20px;
margin-top: 10px;
}
/**
* media queries
*/
@media (max-width: 1020px) {
.flex-container-inner {
width: 100% !important;
}
.flex-container {
display: inline-block;
}
.hide {
display: inline-block;
}
.show {
display: none;
}
}
@media (max-width: 600px) {
.companies {
flex-wrap: wrap;
}
.companies div {
width: 100%;
height: 170px;
border-bottom: none;
}
.carousel-container {
padding-top: 50px;
padding-left: 10px;
}
}