1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
rshyn-site/css/default.scss

273 lines
3.7 KiB

@import url(/fonts/fonts.css);
$themes: (
"light": (
"background": #F3F8F1,
"primary": #D7263D,
"secondary": #984EA3,
"text": black,
"filter": invert(0)
),
"dark": (
"primary": #88d498,
"secondary": #db5375,
"background": #161616,
"text": white,
"filter": invert(1)
)
);
@each $theme-name, $properties in $themes {
body[data-theme="#{$theme-name}"] {
// define a css variable for each property
@each $name, $property in $properties {
--#{$name}: #{$property};
}
}
}
html {
font-family: "SpaceGrotesk";
}
a {
color: var(--primary);
text-decoration: none;
}
a:hover {
color : var(--secondary);
}
a:visited {
color: var(--secondary);
}
body {
font-size: 1.6rem;
color: var(--text);
background-color: var(--background);
}
header {
border-bottom: 0.2rem solid var(--text);
}
nav a {
font-size: 1.8rem;
font-weight: bold;
color: var(--text);
text-decoration: none;
text-transform: uppercase;
}
nav a:visited {
color: var(--text);
text-decoration: none;
}
#btn-switch {
background: none;
color: inherit;
border: none;
font: inherit;
cursor: pointer;
}
#btn-switch:hover {
color : var(--secondary);
}
h1 {
font-size: 2.4rem;
}
h2 {
font-size: 2rem;
}
article .header {
font-size: 1.4rem;
font-style: italic;
color: #555;
}
.logo a {
font-weight: bold;
color: var(--text);
text-decoration: none;
}
@media (max-width: 319px) {
body {
width: 90%;
margin: 0;
padding: 0 5%;
}
header {
margin: 4.2rem 0;
}
nav {
margin: 0 auto 3rem;
text-align: center;
}
footer {
text-align: center;
}
.logo {
text-align: center;
margin: 1rem auto 3rem;
}
.logo a {
font-size: 2.4rem;
}
nav a {
display: block;
line-height: 1.6;
}
}
@media (min-width: 320px) {
body {
width: 90%;
margin: 0;
padding: 0 5%;
}
header {
margin: 4.2rem 0;
}
nav {
margin: 0 auto 3rem;
text-align: center;
}
footer {
text-align: center;
}
.logo {
text-align: center;
margin: 1rem auto 3rem;
}
.logo a {
font-size: 2.4rem;
}
nav a {
display: inline;
margin: 0 0.6rem;
}
}
@media (min-width: 640px) {
body {
width: 90%;
margin: 0 auto;
padding: 0;
}
header {
margin: 0 0 3rem;
padding: 1.2rem 0;
}
nav {
margin: 0;
text-align: right;
}
nav a {
margin: 0 0 0 1.2rem;
display: inline;
}
footer {
text-align: right;
}
.logo {
margin: 0;
text-align: left;
}
.logo a {
float: left;
font-size: 1.8rem;
}
}
/* Next & previous buttons */
.prev, .next {
cursor: pointer;
width: auto;
padding: 16px;
color: var(--text);
font-weight: bold;
font-size: 18px;
transition: 0.6s ease;
border-radius: 0 3px 3px 0;
user-select: none;
}
/* Position the "next button" to the right */
.next {
right: 0;
border-radius: 3px 0 0 3px;
}
.prev:hover, .next:hover {
background-color: rgba(0,0,0,0.8);
}
.gallery {
align-items: center;
display: flex;
gap: 10px;
}
.photo {
display: none;
flex: 1;
}
.photo > img {
max-width: 100%;
height: 50vh;
object-fit: contain;
}
.svg-img {
border: none;
margin: none;
filter: var(--filter);
height: 1.4rem;
display: inline;
}
footer {
font-size: 1.4rem;
border-top: 1px dotted;
text-align: left;
align-content: left;
}
img {
border: 1px solid;
margin: auto;
display: block;
max-width:75%;
}
.modded {
color: grey;
}
p > code {
padding: .1rem .3rem .2rem;
}
pre {
background-color: #212121;
word-wrap: break-word;
box-decoration-break: clone;
overflow-x: auto;
}
code {
background-color: #212121;
color: white;
font-family: "PressStart";
font-size: 1rem;
}