aboutsummaryrefslogtreecommitdiff
path: root/src_scss/main.scss
diff options
context:
space:
mode:
authorbozo.kopic <bozo@kopic.xyz>2021-11-07 15:52:44 +0100
committerbozo.kopic <bozo@kopic.xyz>2021-12-18 02:38:50 +0100
commit0702d13263bf501c1db074ce1544e60b95161210 (patch)
treeebca76946cead0ffcc742a64c15dd6f5e79958fa /src_scss/main.scss
parent56a75fcb8f5a9e4c05ccec8eb4a3345a115da441 (diff)
major rewritev0.3.0
Diffstat (limited to 'src_scss/main.scss')
-rw-r--r--src_scss/main.scss303
1 files changed, 167 insertions, 136 deletions
diff --git a/src_scss/main.scss b/src_scss/main.scss
index 897847c..80cb0ab 100644
--- a/src_scss/main.scss
+++ b/src_scss/main.scss
@@ -1,173 +1,204 @@
-@import '~normalize.css/normalize';
@import '~izitoast/dist/css/iziToast.min';
-@import './fonts/fontawesome';
-@import './fonts/roboto';
-@import './color';
-@import './shadow';
-@import './grid';
+@import 'color';
+@import 'shadow';
+@import 'fonts/fontawesome';
+@import 'fonts/inter';
-html, body {
- font-size: 10pt;
- font-family: 'Roboto';
- height: 100%;
- margin: 0px;
+html, body, button, input, select {
+ font-family: 'Inter';
+ font-size: 12pt;
}
-
-.window {
+html, body {
+ margin: 0;
+ user-select: none;
height: 100%;
- display: flex;
+ overflow: hidden;
}
-
-.left-panel {
- @include shadow-4dp();
- width: 450px;
- display: flex;
- flex-direction: column;
- background-color: $color-grey-100;
-
- .header {
- flex-shrink: 0;
- margin: 10px;
+body {
+ & > .main {
+ height: 100%;
display: flex;
- align-items: center;
- .title {
- flex-grow: 1;
- font-size: 18pt;
- font-weight: 500;
- color: $color-grey-800;
+ & > .panel-resizer {
+ cursor: ew-resize;
+ width: 0.4rem;
}
- a {
- font-size: 24pt;
- color: $color-grey-800;
-
- &:visited {
- color: $color-grey-800;
- }
-
- &:hover {
- color: black;
- }
- }
- }
+ & > .left-panel {
+ @include shadow-4dp;
+ width: 35rem;
+ display: flex;
+ flex-direction: column;
+ background-color: $color-grey-100;
+ overflow: auto;
+
+ & > .header {
+ flex-shrink: 0;
+ margin: 1rem;
+ display: flex;
+ align-items: center;
+
+ & > .title {
+ flex-grow: 1;
+ font-size: 18pt;
+ font-weight: 500;
+ color: $color-grey-800;
+ }
- .group {
- flex-shrink: 0;
- display: flex;
- flex-direction: column;
- margin: 10px;
- margin-bottom: 0px;
- }
+ & > .github {
+ font-size: 24pt;
+ color: $color-grey-800;
- .content {
- flex-grow: 1;
- display: flex;
- flex-direction: column;
- margin: 10px;
- margin-bottom: 0px;
- align-items: stretch;
- overflow: auto;
+ &:visited {
+ color: $color-grey-800;
+ }
- table.grid {
- width: 100%;
+ &:hover {
+ color: black;
+ }
+ }
+ }
- .fixed {
- width: 55px
+ & > .group {
+ flex-shrink: 0;
+ display: flex;
+ flex-direction: column;
+ margin: 1rem;
+ margin-bottom: 0;
}
- tbody td:last-child {
- text-align: center;
+ & > .content {
+ flex-grow: 1;
+ display: flex;
+ flex-direction: column;
+ margin: 1rem;
+ margin-bottom: 0;
+ align-items: stretch;
+ overflow: auto;
+
+ & > div {
+ margin-bottom: 1rem;
+
+ & > table {
+ width: 100%;
+
+ .col-quantity, .col-height, .col-width, .col-rotate {
+ width: 5rem;
+
+ input {
+ text-align: right;
+ }
+ }
+
+ .col-delete {
+ width: 2rem;
+ }
+
+ & > tbody {
+ td {
+ div {
+ display: flex;
+ align-content: stretch;
+
+ & > * {
+ flex-shrink: 1;
+ flex-grow: 1;
+ width: 1rem;
+ }
+
+ }
+ }
+ }
+
+ & > tfoot {
+ td {
+ & > div {
+ display: flex;
+
+ & > .spacer {
+ flex-grow: 1;
+ }
+ }
+ }
+ }
+ }
+ }
}
- .grid-col-width, .grid-col-height, .grid-col-quantity {
- text-align: right;
+ & > .calculate {
+ flex-shrink: 0;
+ margin: 1rem;
+ padding: 1rem;
+ }
- input {
- text-align: right;
- }
+ .invalid {
+ background-color: rgba(red, 0.2);
}
}
- & > *:not(:last-child) {
- margin-bottom: 10px;
+ & > .center-panel {
+ flex-grow: 1;
+ overflow: auto;
+ padding: 1.5rem;
+ display: flex;
+ justify-content: center;
+ align-items: center;
}
- }
-
- .calculate {
- flex-shrink: 0;
- margin: 10px;
- padding: 10px;
- }
- .invalid {
- background-color: rgba(red, 0.2);
- }
-}
-
-
-.center-panel {
- flex-grow: 1;
- overflow: auto;
- padding: 15px;
- display: flex;
- justify-content: center;
- align-items: center;
-}
-
-
-.right-panel {
- @include shadow-4dp();
- width: 200px;
- display: flex;
- flex-direction: column;
- background-color: $color-grey-100;
- overflow: auto;
+ & > .right-panel {
+ @include shadow-4dp;
+ width: 20rem;
+ display: flex;
+ flex-direction: column;
+ background-color: $color-grey-100;
+ overflow: auto;
+
+ .toolbar {
+ display: flex;
+ justify-content: center;
+ margin: 1rem;
+ flex-shrink: 0;
+ }
- .toolbar {
- display: flex;
- justify-content: center;
- margin: 10px;
- flex-shrink: 0;
- }
+ .panel {
+ margin: 1.5rem 0;
- .panel {
- margin: 15px 0px;
+ & > *:hover {
+ background-color: $color-grey-400;
+ cursor: pointer;
+ }
+ }
- & > *:hover {
- background-color: $color-grey-400;
- cursor: pointer;
- }
- }
+ .panel-name {
+ padding: 0.4rem 1rem;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ font-weight: 600;
+ color: $color-grey-800;
+ }
- .panel-name {
- padding: 3px 10px;
- overflow: hidden;
- text-overflow: ellipsis;
- font-weight: 600;
- color: $color-grey-800;
- }
+ .item {
+ padding: 0.4rem 1rem 0.4rem 2rem;
+ display: flex;
- .item {
- padding: 3px 10px 3px 20px;
- display: flex;
+ .item-name {
+ flex-grow: 1;
+ }
- .item-name {
- flex-grow: 1;
- }
+ .item-rotate, .item-x, .item-y {
+ margin-left: 0.4rem;
+ font-weight: 600;
+ color: $color-grey-800;
+ }
+ }
- .item-rotate, .item-x, .item-y {
- margin-left: 3px;
- font-weight: 600;
- color: $color-grey-800;
+ .selected {
+ background-color: $color-grey-400;
+ }
}
}
-
- .selected {
- background-color: $color-grey-400;
- }
}