oliverbooth.dev/src/scss/app.scss

570 lines
8.8 KiB
SCSS

@use "sass:color";
@import "colors";
@import "markdown";
@import "blog";
html, body {
background: $background;
color: $foreground;
font-size: 16px;
}
@media (min-width: 768px) {
html {
font-size: 16px;
}
}
.keystroke {
background: color.adjust($foreground, $lightness: -20%);
color: $background;
border-radius: 2px;
border: color.adjust($foreground, $lightness: -30%);
box-shadow: #2b2b2b 2px 2px;
font-size: 12px;
padding: 2px 4px;
}
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
box-shadow: 0 0 0 0.1rem $ui-foreground, 0 0 0 0.25rem #258cfb;
}
html {
position: relative;
min-height: 100%;
}
body {
margin-bottom: 60px;
}
main.container {
background: #333;
padding: 20px;
border-radius: 5px;
}
a {
&:link, &:visited, &:hover, &:active {
text-decoration: none;
color: $link-text;
}
&:hover {
color: $link-hover;
}
}
#site-title {
a {
&:link, &:visited, &:hover, &:active {
text-decoration: none;
color: $ui-foreground;
* {
font-family: 'Roboto Mono', monospace;
text-decoration: none;
color: $ui-foreground;
}
}
}
}
hr.page-separator {
border-top: 5px dashed $ui-foreground;
opacity: 1;
margin: 50px 0;
}
@media (min-width: 992px) {
.container {
max-width: 700px !important;
}
}
ul.contact-reasons {
list-style-type: none;
padding: 0;
li {
margin-bottom: 10px;
margin-left: 0;
padding: 0;
&:last-child {
margin-bottom: 0;
}
a {
&:link, &:visited, &:hover, &:active {
text-decoration: none;
color: $ui-foreground;
}
&:hover {
text-decoration: underline;
}
}
}
}
.card {
background: #212121;
color: $ui-foreground;
a.btn, button {
color: $ui-foreground;
}
}
nav {
margin: 0 auto;
max-width: 960px;
text-align: center;
ul.site-nav {
list-style-type: none;
padding: 0;
margin: 20px auto 0 auto;
li {
display: inline-block;
margin-right: 20px;
&:last-child {
margin-right: 0;
}
a {
font-size: 20px;
&:link, &:visited, &:hover, &:active {
text-decoration: none;
color: $ui-foreground;
}
&:hover {
text-decoration: underline;
}
}
}
}
}
.blog-author-icon {
border-radius: 50%;
}
article {
background: $content-background;
padding: 20px;
border-radius: 5px;
*:last-child {
margin-bottom: 0;
}
blockquote {
border-left: 2px solid $blockquote;
padding-left: 10px;
}
p > img.img-fluid {
text-align: center;
}
iframe {
text-align: center;
}
div.math {
text-align: center;
font-size: 32px;
margin: 50px 0;
}
abbr {
text-decoration: none;
border-bottom: 1px dotted $link-hover;
}
span.timestamp {
background: lighten(#333333, 12.5%);
border-radius: 2px;
padding: 2px;
}
}
.project-card {
position: relative;
background: $project-background;
box-shadow: 0 0 15px rgba(0, 0, 0, .1);
&:hover {
.project-image {
img {
transform: scale(110%);
}
p.project-title {
font-size: 1.2em;
margin: calc(-35px - .2em) 0 0;
}
}
}
.project-image {
overflow: hidden;
img {
z-index: -2;
transform: scale(100%);
transition: transform 500ms;
}
a {
&:link, &:visited, &:hover &:active {
color: $ui-foreground;
}
}
p.project-title {
font-size: 1em;
transition: font-size 500ms, margin 500ms;
position: relative;
bottom: 0;
width: 100%;
margin: -34px 0 0;
padding: 5px;
background-color: rgba($project-background, 50%);
}
}
}
code:not([class*="language-"]) {
background: #1e1e1e !important;
color: #dcdcda !important;
font-size: inherit !important;
padding: 3px;
}
a:link, a:visited, a:hover, a:active {
code:not([class*="language-"]) {
color: #03a9f4 !important;
}
}
a:hover {
code:not([class*="language-"]) {
color: #fff !important;
}
}
pre {
background: #1e1e1e !important;
border-radius: 5px;
font-size: 0.9em !important;
code mark, code mark span {
background: #d8ba76 !important;
color: #000 !important;
}
}
code[class*="language-"] {
background: none !important;
}
:root {
color-scheme: light dark;
}
#disqus_thread iframe {
color-scheme: light;
}
div.alert *:last-child {
margin-bottom: 0 !important;
}
.spoiler {
background: #1e1e1e;
color: #1e1e1e;
cursor: pointer;
padding: 2px 10px;
border-radius: 5px;
margin: 10px 0;
&.spoiler-revealed {
background: lighten(#333333, 12.5%);
color: #ffffff;
}
}
#blog-loading-spinner {
margin: 20px;
height: auto;
opacity: 1;
&.removed {
margin: 0;
height: 0;
opacity: 0;
transition: all 0.5s ease-in-out;
}
}
a.bmc-btn {
&:link, &:visited, &:active {
color: #000;
}
&:hover {
color: #fff;
}
}
.text-orange {
color: #f60 !important;
}
.accordion.faq {
margin: 20px 0;
}
.footer-nav {
margin: 0;
padding: 0;
list-style-type: none;
li {
display: inline-block;
margin-right: 20px;
&:last-child {
margin-right: 0;
}
}
}
a.brand-mastodon {
&:link, &:visited, &:hover, &:active {
text-decoration: none;
color: #5a48dd;
}
&:hover {
color: #fff;
}
}
a.brand-linkedin {
&:link, &:visited, &:hover, &:active {
text-decoration: none;
color: #0077b5;
}
&:hover {
color: #fff;
}
}
table.reading-list {
th, td {
vertical-align: middle;
}
}
.book-cover {
width: 50px;
vertical-align: middle;
}
td.trim-p p:last-child {
margin-bottom: 0;
}
#usa-countdown {
background-image: url('/img/us-flag-cover_512x166.png');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
border-radius: 10px;
cursor: pointer;
* {
cursor: pointer;
}
.usa-countdown-element {
margin: 10px 0;
padding: 5px;
font-family: "Gabarito", sans-serif;
font-weight: 500;
text-align: center;
font-size: 3em;
border-right: 2px solid #fff;
border-left: 2px solid #fff;
&:first-child {
border-left: none;
}
&:last-child {
border-right: none;
}
}
}
.post-tags a.badge {
transition: color 250ms, background-color 250ms;
&:link, &:visited, &:active {
background-color: #2D2D2D !important;
color: #fff;
}
&:hover {
color: $accent;
background-color: #1E1E1E !important;
}
}
.legacy-comment {
font-size: 14px !important;
.blog-author-icon {
height: 28px;
}
margin-bottom: 20px;
&:last-child {
margin-bottom: 0;
}
.comment {
font-size: 14px !important;
margin-left: 30px;
background: #1d1d1d;
padding: 10px;
border-radius: 5px;
p:last-child {
margin-bottom: 0;
}
blockquote.blockquote {
font-size: 14px !important;
border-left: 3px solid #687a86;
padding-left: 15px;
}
}
}
.mastodon-update-card.card {
background-color: desaturate(darken(#6364FF, 50%), 50%);
margin-bottom: 20px;
border-radius: 3px;
border: none;
.card-body, .card-footer {
border: none;
}
p:last-child {
margin-bottom: 0;
}
button.btn.btn-mastodon {
background-color: #6364FF;
}
}
#landing-page-intro {
text-align: left;
h1.display-4 {
font-family: "Titillium Web", sans-serif;
font-weight: 600;
font-style: normal;
}
p.lead {
font-family: "Titillium Web", sans-serif;
font-weight: 400;
font-style: normal;
}
}
#landing-page-headshot {
text-align: right;
img {
transition: border-radius .4s;
&:hover {
border-radius: 5px !important;
}
}
}
@media (max-width: 768px) {
#landing-page-intro {
text-align: center;
}
#landing-page-headshot {
text-align: center;
}
}
#index-headshot {
cursor: pointer;
}
.headshot-spin {
animation-delay: 0s;
animation-iteration-count: 1;
animation-direction: normal;
animation-fill-mode: none;
&.headshot-spin-start {
animation-duration: .4s;
animation-timing-function: ease-in;
animation-name: headshot-spin-start;
}
&.headshot-spin-end {
animation-duration: .8s;
animation-timing-function: ease-out;
animation-name: headshot-spin-end;
}
}
@keyframes headshot-spin-start {
0% {
transform: rotateY(0) scale(1.0);
box-shadow: none;
}
100% {
transform: rotateY(90deg) scale(1.2);
box-shadow: 0 5px 5px rgba(#000, 15%);
}
}
@keyframes headshot-spin-end {
0% {
transform: rotateY(90deg) scale(1.2);
box-shadow: 0 5px 5px rgba(#000, 15%);
}
80% {
transform: rotateY(360deg) scale(1.5);
box-shadow: 0 5px 6.25px rgba(#000, 15%);
}
100% {
transform: scale(1.0);
box-shadow: none;
}
}