aboutsummaryrefslogtreecommitdiff
path: root/src/styles/global.scss
blob: 769f07af2a3380f318a0f576eb1e832ed8d75ad7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/*
 * OpenBills - Self hosted browser app to generate and keep track of simple invoices
 * Version - 0
 * Licensed under the MIT license - https://opensource.org/licenses/MIT
 *
 * Copyright (c) 2021 Vidhu Kant Sharma
*/

@import "theme";

/* 
  TODO: check if full width elements show properly on other browsers
  also style scrollbars
*/

/* scrollbar styling */
::-webkit-scrollbar {
  width: 1vw;
}

* {
  scrollbar-width: 1vw;  /* Firefox */
}

body {
  background-color: $background1;
  color: $foreground1;
  margin: 0;
}

* {
  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;
  margin-bottom: 3rem;
  max-width: 1920px;
}

.floatingMenuBG {
  height: 100%;
  width: 100%;
  position: fixed;
  top: 0; left: 0;
  z-index: 1;
  background-color: $background0;
}

.floatingMenu {
  @include defFloatingMenu();
  width: 95%;
  max-width: 1920px;
}

.smallFloatingMenu {
  @include defFloatingMenu();
  width: 40%;
  height: 40%;
  max-height: 22rem;
  min-width: 28rem;
  max-width: 960px;
}

@media only screen and (max-device-width: 480px) {
  .floatingMenu {
    width: 95%;
    height: 80vh;
  
    padding: 0.5rem;
  }
}