aboutsummaryrefslogtreecommitdiff
path: root/scss/main.scss
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-11-13 10:17:46 +0100
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-11-13 10:17:46 +0100
commit42edbe27329cb094895b8e9c558639ff52611eca (patch)
treef15b16a373d0e79addb6d5747d6ee1831461768f /scss/main.scss
parentc79556fa850f1672953d36ff383278f3b8bef623 (diff)
feat(tag): supports little screen
Diffstat (limited to 'scss/main.scss')
-rw-r--r--scss/main.scss38
1 files changed, 6 insertions, 32 deletions
diff --git a/scss/main.scss b/scss/main.scss
index b768480..042b972 100644
--- a/scss/main.scss
+++ b/scss/main.scss
@@ -1,7 +1,6 @@
@use "../node_modules/reset-css/reset.css";
-
-$bp-mid: 1000px;
-$bp-little: 650px;
+@use "tag";
+@import "vars";
:root {
--text-color: #000;
@@ -69,6 +68,9 @@ main {
padding: 2rem;
border-radius: 32px;
box-shadow: 0 0 70px 2px rgba(0,0,0,0.75);
+ transition: .3s;
+ max-height: 75vh;
+ overflow: auto;
& h1, h2, h3 {
margin: 0;
}
@@ -79,6 +81,7 @@ main {
box-sizing: border-box;
width: 100%;
min-height: 100vh;
+ max-height: none;
border-radius: 0;
}
}
@@ -199,35 +202,6 @@ h4 {
}
}
-.tags {
- display: grid;
- grid-template-columns: 1fr 1fr;
- margin-top: 1rem;
- column-gap: 2rem;
- row-gap: 1rem;
- & h4 {
- //text-align: center;
- }
- & p {
- display: none;
- }
-}
-
-.tag {
- cursor: pointer;
- & h4:hover {
- text-decoration: underline;
- }
- &.active {
- & h4 {
- margin-bottom: 0.5rem;
- }
- & p {
- display: block;
- }
- }
-}
-
.credits-legal {
width: 70%;
}