moved some CSS properties to variables
This commit is contained in:
@@ -21,11 +21,11 @@
|
|||||||
font-family: var(--font-mono);
|
font-family: var(--font-mono);
|
||||||
font-size: var(--font-size-mono);
|
font-size: var(--font-size-mono);
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
border: dashed 2px var(--color-highlight);
|
border: dashed var(--border-dash-size) var(--color-highlight);
|
||||||
color: var(--color-highlight);
|
color: var(--color-highlight);
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background-color 0.05s ease-out;
|
transition: background-color var(--duration-animation) ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.outlined-button:hover {
|
.outlined-button:hover {
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-size: 1.0rem;
|
font-size: 1.0rem;
|
||||||
line-height: 1.4rem;
|
line-height: 1.4rem;
|
||||||
transition: color 0.1s ease-out, font-weight 0.1s ease-out;
|
transition: color var(--duration-animation) ease-out, font-weight var(--duration-animation) ease-out;
|
||||||
}
|
}
|
||||||
a:link, a:visited, span {
|
a:link, a:visited, span {
|
||||||
color: var(--color-highlight);
|
color: var(--color-highlight);
|
||||||
|
|||||||
@@ -43,10 +43,10 @@
|
|||||||
.subtitled-img-container {
|
.subtitled-img-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
border: 2px var(--color-highlight) dashed;
|
border: var(--border-dash-size) var(--color-highlight) dashed;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
transition: background-color 0.1s ease-out;
|
transition: background-color var(--duration-animation) ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subtitled-img-container-centred {
|
.subtitled-img-container-centred {
|
||||||
|
|||||||
@@ -32,8 +32,6 @@
|
|||||||
.row-container {
|
.row-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
/* margin-bottom: 8px;
|
|
||||||
gap: 8px; */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.row-entry {
|
.row-entry {
|
||||||
@@ -42,10 +40,10 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
transition: background-color 0.1s ease-out,
|
transition: background-color var(--duration-animation) ease-out,
|
||||||
border-color 0.1s ease-out,
|
border-color var(--duration-animation) ease-out,
|
||||||
backdrop-filter 0.2s ease-out;
|
backdrop-filter var(--duration-blur) ease-out;
|
||||||
border: 2px dashed transparent;
|
border: var(--border-dash-size) dashed transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.row-entry:hover {
|
.row-entry:hover {
|
||||||
@@ -69,7 +67,7 @@
|
|||||||
.row-img {
|
.row-img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
transition: scale 0.1s ease-out;
|
transition: scale var(--duration-animation) ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.row-text-container {
|
.row-text-container {
|
||||||
|
|||||||
@@ -71,7 +71,7 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
/* filter: grayscale(60%); */
|
/* filter: grayscale(60%); */
|
||||||
transition: margin 0.1s ease-out;
|
transition: margin var(--duration-animation) ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gallery-img-placeholder {
|
.gallery-img-placeholder {
|
||||||
@@ -88,17 +88,17 @@
|
|||||||
border-style: dashed;
|
border-style: dashed;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
border-color: transparent;
|
border-color: transparent;
|
||||||
border-width: 2px;
|
border-width: var(--border-dash-size);
|
||||||
border-left: none;
|
border-left: none;
|
||||||
transition: border-color 0.1s ease-out,
|
transition: border-color var(--duration-animation) ease-out,
|
||||||
padding-right 0.1s ease-out,
|
padding-right var(--duration-animation) ease-out,
|
||||||
background-color 0.1s ease-out,
|
background-color var(--duration-animation) ease-out,
|
||||||
backdrop-filter 0.2s ease-out;
|
backdrop-filter var(--duration-blur) ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gallery-title, .gallery-subtitle {
|
.gallery-title, .gallery-subtitle {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
transition: color 0.1s ease-out;
|
transition: color var(--duration-animation) ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gallery-title {
|
.gallery-title {
|
||||||
|
|||||||
@@ -45,7 +45,6 @@
|
|||||||
/* mouse over link */
|
/* mouse over link */
|
||||||
a:hover {
|
a:hover {
|
||||||
color: var(--color-highlight);
|
color: var(--color-highlight);
|
||||||
/* text-decoration: underline dashed 2px var(--color-highlight); */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 500px) {
|
@media screen and (max-width: 500px) {
|
||||||
|
|||||||
@@ -96,6 +96,7 @@
|
|||||||
|
|
||||||
:global {
|
:global {
|
||||||
:root {
|
:root {
|
||||||
|
/* colours */
|
||||||
--color-text: #d0d0d0;
|
--color-text: #d0d0d0;
|
||||||
--color-text-secondary: #b0b0b0;
|
--color-text-secondary: #b0b0b0;
|
||||||
--color-text-img: invert(98%) sepia(1%) saturate(4643%) hue-rotate(297deg) brightness(115%) contrast(76%);
|
--color-text-img: invert(98%) sepia(1%) saturate(4643%) hue-rotate(297deg) brightness(115%) contrast(76%);
|
||||||
@@ -113,15 +114,20 @@
|
|||||||
|
|
||||||
--color-waters: #242424;
|
--color-waters: #242424;
|
||||||
|
|
||||||
--notch-size: 32px;
|
|
||||||
--notch-size-small: 16px;
|
|
||||||
|
|
||||||
--color-link-unvisited: #c2e8ff;
|
--color-link-unvisited: #c2e8ff;
|
||||||
--color-link-visited: #ffd7f0;
|
--color-link-visited: #ffd7f0;
|
||||||
--color-link-hovered: #ffdad5;
|
--color-link-hovered: #ffdad5;
|
||||||
|
|
||||||
|
/* blurs */
|
||||||
--blur-radius-background: 6px;
|
--blur-radius-background: 6px;
|
||||||
|
|
||||||
|
/* borders */
|
||||||
|
--border-dash-sizing: 2px;
|
||||||
|
|
||||||
|
/* durations */
|
||||||
|
--duration-animation: 0.1s;
|
||||||
|
--duration-blur: 0.2s;
|
||||||
|
|
||||||
/* fonts */
|
/* fonts */
|
||||||
--font-line-height: 1.6rem;
|
--font-line-height: 1.6rem;
|
||||||
|
|
||||||
@@ -147,6 +153,10 @@
|
|||||||
--screen-width-mobile: 800px;
|
--screen-width-mobile: 800px;
|
||||||
|
|
||||||
--margin-content-side: 24px;
|
--margin-content-side: 24px;
|
||||||
|
|
||||||
|
/* misc */
|
||||||
|
--notch-size: 32px;
|
||||||
|
--notch-size-small: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
@@ -254,7 +264,7 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
border: none;
|
border: none;
|
||||||
border-top: 2px dashed var(--color-highlight);
|
border-top: var(--border-dash-size) dashed var(--color-highlight);
|
||||||
margin: 8px 0;
|
margin: 8px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -105,14 +105,15 @@
|
|||||||
|
|
||||||
.changelog-container {
|
.changelog-container {
|
||||||
padding: 8px 24px;
|
padding: 8px 24px;
|
||||||
border: 2px var(--color-highlight) dashed;
|
border: var(--border-dash-size) var(--color-highlight) dashed;
|
||||||
|
backdrop-filter: blur(var(--blur-radius-background));
|
||||||
}
|
}
|
||||||
|
|
||||||
.changelog-header-link {
|
.changelog-header-link {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
.changelog-header-link:hover {
|
.changelog-header-link:hover {
|
||||||
text-decoration: underline dashed 2px var(--color-highlight);
|
text-decoration: underline dashed var(--border-dash-size) var(--color-highlight);
|
||||||
}
|
}
|
||||||
|
|
||||||
.changelog-header {
|
.changelog-header {
|
||||||
|
|||||||
Reference in New Issue
Block a user