mirror of
https://github.com/FJurmanovic/wallet-web.git
synced 2026-02-06 06:08:10 +00:00
styles without thorn
This commit is contained in:
@@ -34,7 +34,9 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@typescript-eslint/eslint-plugin": "^4.26.0",
|
"@typescript-eslint/eslint-plugin": "^4.26.0",
|
||||||
"@typescript-eslint/parser": "^4.26.0",
|
"@typescript-eslint/parser": "^4.26.0",
|
||||||
|
"compression-webpack-plugin": "^8.0.0",
|
||||||
"eslint": "^7.27.0",
|
"eslint": "^7.27.0",
|
||||||
|
"terser-webpack-plugin": "^5.1.3",
|
||||||
"webpack-cli": "^4.7.0"
|
"webpack-cli": "^4.7.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
207
src/styles/core/button.scss
Normal file
207
src/styles/core/button.scss
Normal file
@@ -0,0 +1,207 @@
|
|||||||
|
.btn {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 6px 12px;
|
||||||
|
text-align: center;
|
||||||
|
vertical-align: middle;
|
||||||
|
cursor: pointer;
|
||||||
|
user-select: none;
|
||||||
|
background-color: transparent;
|
||||||
|
border: $border-width $border-style transparent;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: $font-weight-semibold;
|
||||||
|
border-radius: 0.25em;
|
||||||
|
appearance: none;
|
||||||
|
line-height: 20px;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:disabled,
|
||||||
|
&.disabled,
|
||||||
|
&[aria-disabled="true"] {
|
||||||
|
cursor: default;
|
||||||
|
background-position: 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&.selected,
|
||||||
|
&[aria-selected="true"] {
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.btn-squared {
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.btn-rounder {
|
||||||
|
border-radius: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
@each $color, $value in $button-map {
|
||||||
|
&.btn-#{$color} {
|
||||||
|
background-color: nth($value, 1);
|
||||||
|
color: nth($value, 2);
|
||||||
|
&:hover {
|
||||||
|
background-color: darken(nth($value, 1), 10%);
|
||||||
|
color: lighten(nth($value, 2), 5%);
|
||||||
|
}
|
||||||
|
|
||||||
|
&-transparent {
|
||||||
|
background: transparent;
|
||||||
|
color: $black;
|
||||||
|
&:hover {
|
||||||
|
background-color: nth($value, 1);
|
||||||
|
color: nth($value, 2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.btn-link {
|
||||||
|
color: $blue-07;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.btn-sm {
|
||||||
|
padding: 3px 10px;
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.btn-lg {
|
||||||
|
padding: 14px 1.25em;
|
||||||
|
font-size: inherit;
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.btn-block {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-icon {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 5px;
|
||||||
|
margin-left: 5px;
|
||||||
|
line-height: 2px;
|
||||||
|
color: gray-04;
|
||||||
|
vertical-align: middle;
|
||||||
|
background: transparent;
|
||||||
|
border: $border-width $border-style transparent;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $blue-01;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:disabled,
|
||||||
|
&[aria-disabled="true"] {
|
||||||
|
color: $gray-08;
|
||||||
|
cursor: default;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $gray-08;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&-round {
|
||||||
|
text-decoration: none;
|
||||||
|
outline: none;
|
||||||
|
cursor: pointer;
|
||||||
|
background: transparent;
|
||||||
|
border-radius: 100%;
|
||||||
|
overflow: none;
|
||||||
|
text-align: center;
|
||||||
|
padding: 5px;
|
||||||
|
border: $border-width $border-style transparent;
|
||||||
|
|
||||||
|
span,
|
||||||
|
div {
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
@each $color, $value in $button-map {
|
||||||
|
&.btn-#{$color} {
|
||||||
|
background-color: nth($value, 1);
|
||||||
|
color: nth($value, 2);
|
||||||
|
&:hover {
|
||||||
|
@if ($color == "black") {
|
||||||
|
background-color: lighten(nth($value, 1), 20%);
|
||||||
|
color: nth($value, 2);
|
||||||
|
} @else if ($color == "white") {
|
||||||
|
background-color: darken(nth($value, 1), 20%);
|
||||||
|
color: nth($value, 2);
|
||||||
|
} @else if ($color == "yellow") {
|
||||||
|
background-color: darken(nth($value, 1), 10%);
|
||||||
|
color: lighten(nth($value, 2), 5%);
|
||||||
|
} @else if (str-index($color, "light")) {
|
||||||
|
background-color: darken(nth($value, 1), 20%);
|
||||||
|
color: lighten(nth($value, 2), 5%);
|
||||||
|
} @else {
|
||||||
|
background-color: darken(nth($value, 1), 10%);
|
||||||
|
color: invert(nth($value, 2), 90%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&-transparent {
|
||||||
|
background: transparent;
|
||||||
|
color: $black;
|
||||||
|
&:hover {
|
||||||
|
background-color: nth($value, 1);
|
||||||
|
color: nth($value, 2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.hidden-text-expander {
|
||||||
|
display: block;
|
||||||
|
|
||||||
|
&.inline {
|
||||||
|
position: relative;
|
||||||
|
top: -1px;
|
||||||
|
display: inline-block;
|
||||||
|
margin-left: 5px;
|
||||||
|
line-height: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.hidden-text-expander a,
|
||||||
|
.ellipsis-expander {
|
||||||
|
display: inline-block;
|
||||||
|
height: 12px;
|
||||||
|
padding: 0 5px 5px;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: $font-weight-bold;
|
||||||
|
line-height: 6px;
|
||||||
|
color: $gray-07;
|
||||||
|
text-decoration: none;
|
||||||
|
vertical-align: middle;
|
||||||
|
background: lighten($gray-03, 5%);
|
||||||
|
border: 0;
|
||||||
|
border-radius: 1px;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
background-color: darken($gray-03, 4%);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
color: $white;
|
||||||
|
background-color: $blue-04;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,2 +1,6 @@
|
|||||||
@import "./colors.scss";
|
@import "./colors.scss";
|
||||||
|
@import "./variables.scss";
|
||||||
|
@import "./button.scss";
|
||||||
@import "./main.scss";
|
@import "./main.scss";
|
||||||
|
@import "./typography.scss";
|
||||||
|
@import "./normalize.scss";
|
||||||
|
|||||||
@@ -1,5 +1,66 @@
|
|||||||
app-main {
|
app-main {
|
||||||
* {
|
* {
|
||||||
font-family: Roboto;
|
font-family: Roboto;
|
||||||
|
font-size: 14px;
|
||||||
|
color: $white;
|
||||||
|
}
|
||||||
|
|
||||||
|
input,
|
||||||
|
select,
|
||||||
|
textarea,
|
||||||
|
button {
|
||||||
|
font-family: inherit;
|
||||||
|
font-size: inherit;
|
||||||
|
line-height: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: $blue-07;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
hr,
|
||||||
|
.line {
|
||||||
|
// Horizontal line should look more clean
|
||||||
|
height: 0;
|
||||||
|
margin: 15px 0;
|
||||||
|
overflow: hidden;
|
||||||
|
background: transparent;
|
||||||
|
border: 0;
|
||||||
|
border-bottom: $border-width $border-style $gray-03;
|
||||||
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
border-spacing: 0;
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
|
||||||
|
td,
|
||||||
|
th {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
cursor: pointer;
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
details {
|
||||||
|
summary {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
&:not([open]) {
|
||||||
|
> *:not(summary) {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[hidden][hidden] {
|
||||||
|
display: none !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
351
src/styles/core/normalize.scss
vendored
Normal file
351
src/styles/core/normalize.scss
vendored
Normal file
@@ -0,0 +1,351 @@
|
|||||||
|
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
||||||
|
|
||||||
|
/* Document
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Correct the line height in all browsers.
|
||||||
|
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
||||||
|
*/
|
||||||
|
|
||||||
|
html {
|
||||||
|
line-height: 1.15; /* 1 */
|
||||||
|
-webkit-text-size-adjust: 100%; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Sections
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the margin in all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Render the `main` element consistently in IE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
main {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Correct the font size and margin on `h1` elements within `section` and
|
||||||
|
* `article` contexts in Chrome, Firefox, and Safari.
|
||||||
|
*/
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 2em;
|
||||||
|
margin: 0.67em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Grouping content
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Add the correct box sizing in Firefox.
|
||||||
|
* 2. Show the overflow in Edge and IE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
hr {
|
||||||
|
box-sizing: content-box; /* 1 */
|
||||||
|
height: 0; /* 1 */
|
||||||
|
overflow: visible; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Correct the inheritance and scaling of font size in all browsers.
|
||||||
|
* 2. Correct the odd `em` font sizing in all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
pre {
|
||||||
|
font-family: monospace, monospace; /* 1 */
|
||||||
|
font-size: 1em; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Text-level semantics
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the gray background on active links in IE 10.
|
||||||
|
*/
|
||||||
|
|
||||||
|
a {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Remove the bottom border in Chrome 57-
|
||||||
|
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
||||||
|
*/
|
||||||
|
|
||||||
|
abbr[title] {
|
||||||
|
border-bottom: none; /* 1 */
|
||||||
|
text-decoration: underline; /* 2 */
|
||||||
|
text-decoration: underline dotted; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add the correct font weight in Chrome, Edge, and Safari.
|
||||||
|
*/
|
||||||
|
|
||||||
|
b,
|
||||||
|
strong {
|
||||||
|
font-weight: bolder;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Correct the inheritance and scaling of font size in all browsers.
|
||||||
|
* 2. Correct the odd `em` font sizing in all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
code,
|
||||||
|
kbd,
|
||||||
|
samp {
|
||||||
|
font-family: monospace, monospace; /* 1 */
|
||||||
|
font-size: 1em; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add the correct font size in all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
small {
|
||||||
|
font-size: 80%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prevent `sub` and `sup` elements from affecting the line height in
|
||||||
|
* all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
sub,
|
||||||
|
sup {
|
||||||
|
font-size: 75%;
|
||||||
|
line-height: 0;
|
||||||
|
position: relative;
|
||||||
|
vertical-align: baseline;
|
||||||
|
}
|
||||||
|
|
||||||
|
sub {
|
||||||
|
bottom: -0.25em;
|
||||||
|
}
|
||||||
|
|
||||||
|
sup {
|
||||||
|
top: -0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Embedded content
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the border on images inside links in IE 10.
|
||||||
|
*/
|
||||||
|
|
||||||
|
img {
|
||||||
|
border-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Forms
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Change the font styles in all browsers.
|
||||||
|
* 2. Remove the margin in Firefox and Safari.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button,
|
||||||
|
input,
|
||||||
|
optgroup,
|
||||||
|
select,
|
||||||
|
textarea {
|
||||||
|
font-family: inherit; /* 1 */
|
||||||
|
font-size: 100%; /* 1 */
|
||||||
|
line-height: 1.15; /* 1 */
|
||||||
|
margin: 0; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the overflow in IE.
|
||||||
|
* 1. Show the overflow in Edge.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button,
|
||||||
|
input {
|
||||||
|
/* 1 */
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
||||||
|
* 1. Remove the inheritance of text transform in Firefox.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button,
|
||||||
|
select {
|
||||||
|
/* 1 */
|
||||||
|
text-transform: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Correct the inability to style clickable types in iOS and Safari.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button,
|
||||||
|
[type="button"],
|
||||||
|
[type="reset"],
|
||||||
|
[type="submit"] {
|
||||||
|
-webkit-appearance: button;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the inner border and padding in Firefox.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button::-moz-focus-inner,
|
||||||
|
[type="button"]::-moz-focus-inner,
|
||||||
|
[type="reset"]::-moz-focus-inner,
|
||||||
|
[type="submit"]::-moz-focus-inner {
|
||||||
|
border-style: none;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Restore the focus styles unset by the previous rule.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button:-moz-focusring,
|
||||||
|
[type="button"]:-moz-focusring,
|
||||||
|
[type="reset"]:-moz-focusring,
|
||||||
|
[type="submit"]:-moz-focusring {
|
||||||
|
outline: 1px dotted ButtonText;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Correct the padding in Firefox.
|
||||||
|
*/
|
||||||
|
|
||||||
|
fieldset {
|
||||||
|
padding: 0.35em 0.75em 0.625em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Correct the text wrapping in Edge and IE.
|
||||||
|
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
||||||
|
* 3. Remove the padding so developers are not caught out when they zero out
|
||||||
|
* `fieldset` elements in all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
legend {
|
||||||
|
box-sizing: border-box; /* 1 */
|
||||||
|
color: inherit; /* 2 */
|
||||||
|
display: table; /* 1 */
|
||||||
|
max-width: 100%; /* 1 */
|
||||||
|
padding: 0; /* 3 */
|
||||||
|
white-space: normal; /* 1 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
||||||
|
*/
|
||||||
|
|
||||||
|
progress {
|
||||||
|
vertical-align: baseline;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the default vertical scrollbar in IE 10+.
|
||||||
|
*/
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Add the correct box sizing in IE 10.
|
||||||
|
* 2. Remove the padding in IE 10.
|
||||||
|
*/
|
||||||
|
|
||||||
|
[type="checkbox"],
|
||||||
|
[type="radio"] {
|
||||||
|
box-sizing: border-box; /* 1 */
|
||||||
|
padding: 0; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Correct the cursor style of increment and decrement buttons in Chrome.
|
||||||
|
*/
|
||||||
|
|
||||||
|
[type="number"]::-webkit-inner-spin-button,
|
||||||
|
[type="number"]::-webkit-outer-spin-button {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Correct the odd appearance in Chrome and Safari.
|
||||||
|
* 2. Correct the outline style in Safari.
|
||||||
|
*/
|
||||||
|
|
||||||
|
[type="search"] {
|
||||||
|
-webkit-appearance: textfield; /* 1 */
|
||||||
|
outline-offset: -2px; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the inner padding in Chrome and Safari on macOS.
|
||||||
|
*/
|
||||||
|
|
||||||
|
[type="search"]::-webkit-search-decoration {
|
||||||
|
-webkit-appearance: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Correct the inability to style clickable types in iOS and Safari.
|
||||||
|
* 2. Change font properties to `inherit` in Safari.
|
||||||
|
*/
|
||||||
|
|
||||||
|
::-webkit-file-upload-button {
|
||||||
|
-webkit-appearance: button; /* 1 */
|
||||||
|
font: inherit; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Interactive
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Add the correct display in Edge, IE 10+, and Firefox.
|
||||||
|
*/
|
||||||
|
|
||||||
|
details {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Add the correct display in all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
summary {
|
||||||
|
display: list-item;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Misc
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add the correct display in IE 10+.
|
||||||
|
*/
|
||||||
|
|
||||||
|
template {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add the correct display in IE 10.
|
||||||
|
*/
|
||||||
|
|
||||||
|
[hidden] {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
54
src/styles/core/typography.scss
Normal file
54
src/styles/core/typography.scss
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6 {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
b,
|
||||||
|
strong {
|
||||||
|
font-weight: $font-weight-bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
small {
|
||||||
|
font-size: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul,
|
||||||
|
ol {
|
||||||
|
padding-left: 0;
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
ol ol,
|
||||||
|
ul ol {
|
||||||
|
list-style-type: upper-roman;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul ul ol,
|
||||||
|
ul ol ol,
|
||||||
|
ol ul ol,
|
||||||
|
ol ol ol {
|
||||||
|
list-style-type: lower-latin;
|
||||||
|
}
|
||||||
|
|
||||||
|
dd {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon {
|
||||||
|
vertical-align: text-bottom;
|
||||||
|
}
|
||||||
36
src/styles/core/variables.scss
Normal file
36
src/styles/core/variables.scss
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
$border-width: 1px;
|
||||||
|
$border-style: solid;
|
||||||
|
|
||||||
|
$font-weight-semibold: 400;
|
||||||
|
$font-weight-bold: 600;
|
||||||
|
|
||||||
|
$button-map: (
|
||||||
|
"primary": (
|
||||||
|
$blue-08,
|
||||||
|
$white,
|
||||||
|
),
|
||||||
|
"disabled": (
|
||||||
|
$gray-08,
|
||||||
|
$white,
|
||||||
|
),
|
||||||
|
"secondary": (
|
||||||
|
$orange-08,
|
||||||
|
$white,
|
||||||
|
),
|
||||||
|
"alert": (
|
||||||
|
$red-08,
|
||||||
|
$white,
|
||||||
|
),
|
||||||
|
"black": (
|
||||||
|
$black,
|
||||||
|
$white,
|
||||||
|
),
|
||||||
|
"white": (
|
||||||
|
$white,
|
||||||
|
$black,
|
||||||
|
),
|
||||||
|
"yellow": (
|
||||||
|
$yellow-06,
|
||||||
|
$white,
|
||||||
|
),
|
||||||
|
);
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
@import "./core//index.scss";
|
@import "./core/index.scss";
|
||||||
@import "./thorn/index.scss";
|
|
||||||
@import "./menu-item/index.scss";
|
@import "./menu-item/index.scss";
|
||||||
@import "./sidebar/index.scss";
|
@import "./sidebar/index.scss";
|
||||||
@import "./modal/index.scss";
|
@import "./modal/index.scss";
|
||||||
@import "./table/index.scss";
|
@import "./table/index.scss";
|
||||||
@import "./app-loader/index.scss";
|
@import "./app-loader/index.scss";
|
||||||
@import "./circle-loader/index.scss";
|
@import "./circle-loader/index.scss";
|
||||||
|
@import "./page/index.scss";
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ menu-item {
|
|||||||
color: $gray-01;
|
color: $gray-01;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
padding: 2px 0;
|
padding: 2px 0;
|
||||||
height: 50px;
|
height: 44px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
padding-left: 80px;
|
padding-left: 80px;
|
||||||
&:hover {
|
&:hover {
|
||||||
@@ -51,7 +51,7 @@ menu-item {
|
|||||||
grid-area: custom;
|
grid-area: custom;
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 10px;
|
width: 10px;
|
||||||
height: 50px;
|
height: 100%;
|
||||||
background-color: $blue-09;
|
background-color: $blue-09;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
|||||||
1
src/styles/page/index.scss
Normal file
1
src/styles/page/index.scss
Normal file
@@ -0,0 +1 @@
|
|||||||
|
@import "./page.scss";
|
||||||
6
src/styles/page/page.scss
Normal file
6
src/styles/page/page.scss
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
.page {
|
||||||
|
&.--title {
|
||||||
|
font-size: 28px;
|
||||||
|
margin: 8px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||||
|
const TerserPlugin = require("terser-webpack-plugin");
|
||||||
const { DefinePlugin } = require('webpack');
|
const { DefinePlugin } = require('webpack');
|
||||||
|
|
||||||
const alias = {
|
const alias = {
|
||||||
@@ -30,7 +31,11 @@ module.exports = (env, args) => {
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
entry: {
|
entry: {
|
||||||
app: ['babel-polyfill', './src/index']
|
styles: ['./src/styles/main.scss'],
|
||||||
|
app: {
|
||||||
|
import: ['babel-polyfill', './src/index'],
|
||||||
|
dependOn: 'styles'
|
||||||
|
},
|
||||||
},
|
},
|
||||||
optimization: {
|
optimization: {
|
||||||
runtimeChunk: 'single',
|
runtimeChunk: 'single',
|
||||||
@@ -44,14 +49,11 @@ module.exports = (env, args) => {
|
|||||||
minSize: 200000,
|
minSize: 200000,
|
||||||
maxSize: 400000
|
maxSize: 400000
|
||||||
},
|
},
|
||||||
styles: {
|
|
||||||
name: 'styles',
|
|
||||||
test: /\.scss$/,
|
|
||||||
chunks: 'all'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
minimize: true,
|
||||||
|
minimizer: [new TerserPlugin()],
|
||||||
|
},
|
||||||
output: {
|
output: {
|
||||||
path: path.join(__dirname, 'public'),
|
path: path.join(__dirname, 'public'),
|
||||||
filename: '[name].[contenthash].js',
|
filename: '[name].[contenthash].js',
|
||||||
@@ -101,7 +103,7 @@ module.exports = (env, args) => {
|
|||||||
}),
|
}),
|
||||||
new DefinePlugin({
|
new DefinePlugin({
|
||||||
__CONFIG__: JSON.stringify(settings)
|
__CONFIG__: JSON.stringify(settings)
|
||||||
})
|
}),
|
||||||
],
|
],
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: ['.js', '.ts'],
|
extensions: ['.js', '.ts'],
|
||||||
|
|||||||
Reference in New Issue
Block a user