123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251 |
- *,
- *:before,
- *:after {
- box-sizing: border-box;
- }
- body {
- margin: 0;
- height: 100vh;
- }
- #app {
- width: 100vw;
- height: 100vh;
- }
- .wrapper {
- width: 100%;
- height: 100%;
- }
- .relative {
- position: relative;
- }
- .absolute {
- position: absolute;
- }
- .sticky {
- position: sticky;
- }
- .grid,
- .flex {
- &.center {
- justify-content: center;
- align-items: center;
- }
- > .fit-size {
- min: {
- width: 0;
- height: 0;
- }
- }
- > .fit-width {
- min-width: 0;
- }
- > .fit-height {
- min-height: 0;
- }
- }
- .flex {
- display: flex;
- &.column {
- flex-direction: column;
- &.align-left {
- align-items: flex-start;
- }
- &.align-center {
- align-items: center;
- }
- &.align-right {
- align-items: flex-end;
- }
- &.valign-top {
- justify-content: flex-start;
- }
- &.valign-center {
- justify-content: center;
- }
- &.valign-bottom {
- justify-content: flex-end;
- }
- }
- &:not(.column) {
- &.align-left {
- justify-content: flex-start;
- }
- &.align-center {
- justify-content: center;
- }
- &.align-right {
- justify-content: flex-end;
- }
- &.valign-top {
- align-items: flex-start;
- }
- &.valign-center {
- align-items: center;
- }
- &.valign-bottom {
- align-items: flex-end;
- }
- }
- &.flex-wrap {
- flex-wrap: wrap;
- }
- }
- .flex-1 {
- flex: 1;
- }
- .flex-auto {
- flex: 0 0 auto;
- }
- .grid {
- display: grid;
- &.label-input {
- grid-template-columns: repeat(var(--columns-repeat), max-content auto);
- }
- }
- .nowrap {
- white-space: nowrap;
- }
- .gap-1em {
- > * + * {
- margin-left: 1em;
- }
- }
- .font-size-12 {
- font-size: 12px;
- }
- .font-size-14 {
- font-size: 14px;
- }
- .number {
- text-align: right;
- }
- .text {
- text-align: left;
- }
- .text-right {
- text-align: right;
- }
- ul {
- list-style: none;
- }
- i {
- font-style: normal;
- }
- label {
- cursor: inherit;
- }
- input {
- &::-webkit-outer-spin-button,
- &::-webkit-inner-spin-button {
- -webkit-appearance: none;
- }
- &[type="number"] {
- -moz-appearance: textfield;
- }
- }
- .overflow-auto {
- overflow: auto;
- }
- .overflow-hidden {
- overflow: hidden;
- }
- .text-ellipsis {
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .text-center {
- text-align: center;
- }
- .origin-table {
- --border-color: #999999;
- width: 100%;
- > :first-child,
- colgroup + * {
- > tr:first-child {
- th,
- td {
- border-top: 1px solid var(--border-color);
- }
- }
- }
- th,
- td {
- border: {
- right: 1px solid var(--border-color);
- bottom: 1px solid var(--border-color);
- }
- &:first-child {
- border: {
- left: 1px solid var(--border-color);
- }
- }
- }
- .cell {
- min-height: 40px;
- padding: 8px 10px;
- }
- tr {
- &:not(:first-child) {
- td {
- border-top: 0;
- }
- }
- }
- }
- ::-webkit-scrollbar {
- width: 8px;
- height: 8px;
- }
|