aboutsummaryrefslogtreecommitdiff
path: root/src/styles/global.scss
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-07-07 12:46:08 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-07-07 12:46:08 +0530
commita7965136d75c97bb6e2696c46a7d4a27dc33996c (patch)
treecbcec33c13b088a9b8260a6068aa911ec885e27e /src/styles/global.scss
parent1b5622ba01eb30768c49dcb9b7ac155cca0504e2 (diff)
create basic menu for adding transport info
Diffstat (limited to 'src/styles/global.scss')
-rw-r--r--src/styles/global.scss38
1 files changed, 24 insertions, 14 deletions
diff --git a/src/styles/global.scss b/src/styles/global.scss
index fde6aed..1987e9f 100644
--- a/src/styles/global.scss
+++ b/src/styles/global.scss
@@ -31,6 +31,24 @@ body {
font-family: $defFont;
}
+@mixin defFloatingMenu {
+ position: absolute;
+
+ height: 32rem;
+ box-sizing: border-box;
+
+ top: 0; bottom: 0;
+ left: 0; right: 0;
+ margin: auto;
+ z-index: 2;
+
+ background-color: $background3;
+ box-shadow: $floatingShadow;
+ border: 1px solid $border2;
+
+ padding: 1.5rem;
+}
+
.root-content {
width: 95%;
margin: auto;
@@ -60,23 +78,15 @@ body {
}
.floatingMenu {
- position: absolute;
-
+ @include defFloatingMenu();
width: 95%;
max-width: 1920px;
- height: 32rem;
- box-sizing: border-box;
-
- top: 0; bottom: 0;
- left: 0; right: 0;
- margin: auto;
- z-index: 2;
-
- background-color: $background3;
- box-shadow: $floatingShadow;
- border: 1px solid $border2;
+}
- padding: 1.5rem;
+.smallFloatingMenu {
+ @include defFloatingMenu();
+ width: 50%;
+ max-width: 960px;
}