From 552ad1423e3ca3dae336a95617ec8bafc5050077 Mon Sep 17 00:00:00 2001
From: alexanderdavide <alexeble1998@gmail.com>
Date: Sun, 20 Feb 2022 14:27:51 +0000
Subject: [PATCH] refactor: languageswitch list spacing

---
 assets/scss/partials/components/_languageswitch.scss |   34 ++++++++++++++--------------------
 1 files changed, 14 insertions(+), 20 deletions(-)

diff --git a/assets/scss/partials/components/_languageswitch.scss b/assets/scss/partials/components/_languageswitch.scss
index df47877..4c60bba 100644
--- a/assets/scss/partials/components/_languageswitch.scss
+++ b/assets/scss/partials/components/_languageswitch.scss
@@ -13,38 +13,31 @@
     position: relative;
 
     @include desktop {
+      border-radius: 5px;
+      position: absolute;
+      top: 32px;
+
       @include themed() {
         background: t('primary-lighter');
         box-shadow: t('shadow');
       }
-      border-radius: 5px;
-      position: absolute;
-      top: 32px;
     }
 
     &-item {
-      @include themed() {
-        color: t('primary');
-      }
       background: transparent;
       display: block;
       line-height: 1;
       bottom: 0;
       text-align: center;
       white-space: nowrap;
-      padding: 20px 0;
+      padding-top: 24px;
 
-      &:last-child {
-        padding-bottom: 0;
+      @include themed() {
+        color: t('primary');
       }
 
       @include desktop {
-        $p-desktop: 12px;
-        padding: $p-desktop;
-
-        &:last-child {
-          padding-bottom: $p-desktop;
-        }
+        padding: 12px;
       }
     }
   }
@@ -53,11 +46,6 @@
     display: none;
 
     &::before {
-      @include themed() {
-        background: t('primary-lighter');
-        box-shadow: t('shadow');
-        border-color: t('primary-lighter');
-      }
       content: '';
       border-radius: 2px 0px 0px 0px;
       height: 14px;
@@ -66,6 +54,12 @@
       position: absolute;
       transform: rotate(45deg) translateY(0px) translatex(10px);
       width: 14px;
+
+      @include themed() {
+        background: t('primary-lighter');
+        box-shadow: t('shadow');
+        border-color: t('primary-lighter');
+      }
     }
   }
 

--
Gitblit v1.10.0