aboutsummaryrefslogtreecommitdiff
path: root/src_web/style/main.scss
diff options
context:
space:
mode:
authorbozokopic <bozo.kopic@gmail.com>2018-04-15 19:14:15 +0200
committerbozokopic <bozo.kopic@gmail.com>2018-04-15 19:14:15 +0200
commitbb67223abd3d4a5c3654393b4a962daae0588741 (patch)
tree90e0f4add9764f565b1c9dc2d2dc21db0bc50770 /src_web/style/main.scss
parentdc7cc767859a82a087e258eead7d59e177b30d0f (diff)
WIP web frontend
Diffstat (limited to 'src_web/style/main.scss')
-rw-r--r--src_web/style/main.scss52
1 files changed, 32 insertions, 20 deletions
diff --git a/src_web/style/main.scss b/src_web/style/main.scss
index 6b848b4..612c2a7 100644
--- a/src_web/style/main.scss
+++ b/src_web/style/main.scss
@@ -1,8 +1,11 @@
@import '~normalize.css/normalize';
+@import '~izitoast/dist/css/iziToast.min';
@import './fonts/fontawesome';
@import './fonts/roboto';
@import './color';
+@import './shadow';
+@import './grid';
html, body {
@@ -20,19 +23,12 @@ html, body {
.left-panel {
- width: 300px;
+ @include shadow-4dp();
+ width: 400px;
display: flex;
flex-direction: column;
background-color: $color-grey-100;
- .group {
- flex-shrink: 0;
- display: flex;
- flex-direction: column;
- margin: 10px;
- margin-bottom: 0px;
- }
-
.header {
flex-shrink: 0;
margin: 10px;
@@ -60,33 +56,49 @@ html, body {
}
}
- .list {
+ .group {
+ flex-shrink: 0;
+ display: flex;
+ flex-direction: column;
+ margin: 10px;
+ margin-bottom: 0px;
+ }
+
+ .content {
flex-grow: 1;
display: flex;
flex-direction: column;
margin: 10px;
margin-bottom: 0px;
+ align-items: stretch;
+ overflow: auto;
- & > * {
- flex-shrink: 0;
- }
+ table.grid {
+ width: 100%;
- .content {
- flex-grow: 1;
- flex-shrink: 1;
- overflow: auto;
+ .fixed {
+ width: 50px
+ }
+
+ tbody td:last-child {
+ text-align: center;
+ }
}
- .add {
- align-self: flex-end;
+ & > *:not(:last-child) {
+ margin-bottom: 10px;
}
}
- .submit {
+ .calculate {
flex-shrink: 0;
margin: 10px;
padding: 10px;
}
+
+ .invalid {
+ background-color: rgba(red, 0.2);
+ }
}