aboutsummaryrefslogtreecommitdiff
path: root/scss/tag.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/tag.scss
parentc79556fa850f1672953d36ff383278f3b8bef623 (diff)
feat(tag): supports little screen
Diffstat (limited to 'scss/tag.scss')
-rw-r--r--scss/tag.scss42
1 files changed, 42 insertions, 0 deletions
diff --git a/scss/tag.scss b/scss/tag.scss
new file mode 100644
index 0000000..9c36f3d
--- /dev/null
+++ b/scss/tag.scss
@@ -0,0 +1,42 @@
+@import "vars";
+
+.tags {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ margin-top: 1rem;
+ column-gap: 2rem;
+ row-gap: 1rem;
+ @media only screen and (max-width: $bp-little) {
+ grid-template-columns: 1fr;
+ row-gap: 2rem;
+ }
+ & h4 {
+ @media only screen and (max-width: $bp-little) {
+ margin-bottom: 0.5rem;
+ }
+ }
+ & p {
+ display: none;
+ @media only screen and (max-width: $bp-little) {
+ display: block;
+ }
+ }
+}
+
+.tag {
+ cursor: pointer;
+ @media only screen and (max-width: $bp-little) {
+ cursor: auto;
+ }
+ & h4:hover {
+ text-decoration: underline;
+ }
+ &.active {
+ & h4 {
+ margin-bottom: 0.5rem;
+ }
+ & p {
+ display: block;
+ }
+ }
+}