adjustment
This commit is contained in:
@ -1,15 +1,15 @@
|
||||
@import "./functions/checkbox.scss";
|
||||
@import "./functions/func.scss";
|
||||
|
||||
.checkbox-image {
|
||||
.ui-check-image-wrapper {
|
||||
>input[type="checkbox"] {
|
||||
display: none;
|
||||
|
||||
&:checked {
|
||||
&~.checked {
|
||||
~.checked {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
&~.unchecked {
|
||||
~.unchecked {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
@ -24,17 +24,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
.checkbox-wrapper {
|
||||
.ui-check-wrapper {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 0 8px;
|
||||
height: 36px;
|
||||
@include check-box();
|
||||
@include ui-check();
|
||||
|
||||
.check-box-inner {
|
||||
.ui-check-inner {
|
||||
flex: 0 0 auto;
|
||||
|
||||
&+* {
|
||||
+* {
|
||||
flex: 1 1 auto;
|
||||
font-weight: 400;
|
||||
font-size: var(--font-size);
|
||||
|
@ -1,4 +1,4 @@
|
||||
@import "../css/functions/func.scss";
|
||||
@import "./functions/func.scss";
|
||||
|
||||
.ui-text,
|
||||
.ui-input[type] {
|
||||
|
@ -10,7 +10,7 @@ $searchInputHeight: 26px;
|
||||
$searchIconSize: 13px;
|
||||
$listMaxHeight: 210px;
|
||||
|
||||
.drop-wrapper {
|
||||
.ui-drop-wrapper {
|
||||
display: inline-block;
|
||||
border: none;
|
||||
border-radius: unset;
|
||||
@ -19,14 +19,14 @@ $listMaxHeight: 210px;
|
||||
font-size: var(--font-size);
|
||||
font-family: var(--font-family);
|
||||
|
||||
>.drop-header {
|
||||
>.ui-drop-header {
|
||||
background-color: var(--bg-color);
|
||||
display: flex;
|
||||
height: $headerHeight;
|
||||
|
||||
@include outborder();
|
||||
|
||||
>.drop-text {
|
||||
>.ui-drop-text {
|
||||
flex: 1 1 auto;
|
||||
cursor: pointer;
|
||||
font-size: var(--font-size);
|
||||
@ -40,7 +40,7 @@ $listMaxHeight: 210px;
|
||||
@include outline();
|
||||
}
|
||||
|
||||
>input.drop-text {
|
||||
>input.ui-drop-text {
|
||||
cursor: initial;
|
||||
|
||||
&::placeholder {
|
||||
@ -49,7 +49,7 @@ $listMaxHeight: 210px;
|
||||
}
|
||||
}
|
||||
|
||||
>.drop-caret {
|
||||
>.ui-drop-caret {
|
||||
flex: 0 0 auto;
|
||||
width: $caretWidth;
|
||||
display: flex;
|
||||
@ -78,14 +78,14 @@ $listMaxHeight: 210px;
|
||||
// box-shadow: none;
|
||||
}
|
||||
|
||||
>.drop-text,
|
||||
>.drop-caret {
|
||||
>.ui-drop-text,
|
||||
>.ui-drop-caret {
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
>.drop-box {
|
||||
>.ui-drop-box {
|
||||
position: absolute;
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
@ -114,7 +114,7 @@ $listMaxHeight: 210px;
|
||||
transform: scaleY(1);
|
||||
}
|
||||
|
||||
>.drop-search {
|
||||
>.ui-drop-search {
|
||||
box-sizing: border-box;
|
||||
height: $searchBarHeight;
|
||||
line-height: $searchBarHeight;
|
||||
@ -150,7 +150,7 @@ $listMaxHeight: 210px;
|
||||
}
|
||||
}
|
||||
|
||||
>.drop-list {
|
||||
>.ui-drop-list {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
@ -179,7 +179,7 @@ $listMaxHeight: 210px;
|
||||
background-color: var(--hover-bg-color);
|
||||
}
|
||||
|
||||
>.checkbox-wrapper {
|
||||
>.ui-check-wrapper {
|
||||
height: $dropItemHeight;
|
||||
display: flex;
|
||||
}
|
||||
|
@ -1,70 +0,0 @@
|
||||
@import "./func.scss";
|
||||
|
||||
@mixin check-box() {
|
||||
.check-box-inner {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
padding: 0;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
background-color: #fff;
|
||||
user-select: none;
|
||||
cursor: pointer;
|
||||
|
||||
@include outborder();
|
||||
|
||||
>svg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
fill: #fff;
|
||||
transform: scale(0);
|
||||
opacity: 0;
|
||||
transition: all .08s cubic-bezier(.78, .14, .15, .86);
|
||||
}
|
||||
}
|
||||
|
||||
&.radiobox-wrapper {
|
||||
.check-box-inner {
|
||||
box-sizing: border-box;
|
||||
border-radius: 8px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
>input[type="checkbox"],
|
||||
>input[type="radio"] {
|
||||
display: none;
|
||||
|
||||
&:checked+.check-box-inner {
|
||||
border-color: var(--link-color);
|
||||
background-color: var(--link-color);
|
||||
|
||||
>svg {
|
||||
transform: scale(1);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
&+.check-box-inner {
|
||||
border-color: var(--disabled-border-color);
|
||||
background-color: var(--disabled-bg-color);
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
&:checked+.check-box-inner {
|
||||
border-color: var(--disabled-border-color);
|
||||
background-color: var(--disabled-border-color);
|
||||
}
|
||||
|
||||
&~span {
|
||||
color: var(--disabled-border-color);
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -42,4 +42,74 @@
|
||||
color: var(--disabled-color);
|
||||
background-color: var(--disabled-bg-color);
|
||||
}
|
||||
}
|
||||
|
||||
@mixin ui-check() {
|
||||
.ui-check-inner {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
padding: 0;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
background-color: #fff;
|
||||
user-select: none;
|
||||
cursor: pointer;
|
||||
|
||||
@include outborder();
|
||||
|
||||
>svg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
fill: #fff;
|
||||
transform: scale(0);
|
||||
opacity: 0;
|
||||
transition: all .08s cubic-bezier(.78, .14, .15, .86);
|
||||
}
|
||||
}
|
||||
|
||||
&.ui-radio-wrapper {
|
||||
.ui-check-inner {
|
||||
box-sizing: border-box;
|
||||
border-radius: 8px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
>input[type="checkbox"],
|
||||
>input[type="radio"] {
|
||||
display: none;
|
||||
|
||||
&:checked+.ui-check-inner {
|
||||
border-color: var(--link-color);
|
||||
background-color: var(--link-color);
|
||||
|
||||
>svg {
|
||||
transform: scale(1);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
|
||||
&:checked+.ui-check-inner {
|
||||
border-color: var(--disabled-border-color);
|
||||
background-color: var(--disabled-border-color);
|
||||
}
|
||||
|
||||
+.ui-check-inner {
|
||||
border-color: var(--disabled-border-color);
|
||||
background-color: var(--disabled-bg-color);
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
~span {
|
||||
color: var(--disabled-border-color);
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
@import "./functions/func.scss";
|
||||
|
||||
.grid {
|
||||
.ui-grid {
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
@ -52,14 +52,14 @@
|
||||
font-family: var(--font-family);
|
||||
}
|
||||
|
||||
>.grid-sizer {
|
||||
>.ui-grid-sizer {
|
||||
position: absolute;
|
||||
white-space: nowrap;
|
||||
font-weight: bold;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
>.grid-header {
|
||||
>.ui-grid-header {
|
||||
width: 100%;
|
||||
min-width: 100%;
|
||||
margin: 0;
|
||||
@ -187,20 +187,20 @@
|
||||
}
|
||||
}
|
||||
|
||||
>.grid-body {
|
||||
>.ui-grid-body {
|
||||
flex: 1 1 auto;
|
||||
overflow: auto;
|
||||
color: var(--cell-fore-color);
|
||||
@include scrollbar();
|
||||
|
||||
.grid-body-content {
|
||||
.ui-grid-body-content {
|
||||
position: absolute;
|
||||
min-width: 100%;
|
||||
table-layout: fixed;
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
|
||||
>.grid-row {
|
||||
>.ui-grid-row {
|
||||
line-height: var(--line-height);
|
||||
white-space: nowrap;
|
||||
background-color: var(--row-bg-color);
|
||||
@ -254,11 +254,11 @@
|
||||
@include scrollbar();
|
||||
}
|
||||
|
||||
.checkbox-wrapper {
|
||||
.ui-check-wrapper {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
.check-box-inner {
|
||||
.ui-check-inner {
|
||||
|
||||
&,
|
||||
>svg {
|
||||
@ -267,22 +267,22 @@
|
||||
}
|
||||
}
|
||||
|
||||
.drop-wrapper {
|
||||
.ui-drop-wrapper {
|
||||
height: var(--row-height);
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
>.drop-header {
|
||||
>.ui-drop-header {
|
||||
border: none;
|
||||
height: 100%;
|
||||
|
||||
>.drop-text {
|
||||
>.ui-drop-text {
|
||||
padding: var(--spacing-cell);
|
||||
}
|
||||
}
|
||||
|
||||
>.drop-box {
|
||||
>.ui-drop-box {
|
||||
top: calc(var(--row-height) + 2px);
|
||||
|
||||
&.slide-up {
|
||||
@ -323,7 +323,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.grid-hover-holder {
|
||||
.ui-grid-hover-holder {
|
||||
box-sizing: border-box;
|
||||
position: absolute;
|
||||
line-height: var(--line-height);
|
||||
@ -343,7 +343,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
>.grid-loading {
|
||||
>.ui-grid-loading {
|
||||
position: absolute;
|
||||
@include inset(0, 0, 0, 0);
|
||||
visibility: hidden;
|
||||
@ -367,4 +367,23 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.ui-grid {
|
||||
--hover-bg-color: yellow;
|
||||
--header-border-color: #525456;
|
||||
--header-bg-color: #050505;
|
||||
--header-fore-color: #fff;
|
||||
--cell-border-color: #0f0f0f;
|
||||
--cell-fore-color: #ccc;
|
||||
--dark-border-color: #999;
|
||||
--split-border-color: #4c4c4c;
|
||||
--dragger-bg-color: #000;
|
||||
--dragger-cursor-color: #ccc;
|
||||
--row-bg-color: #000;
|
||||
--row-active-bg-color: #050505;
|
||||
--row-selected-bg-color: #190d04;
|
||||
--text-disabled-color: gray;
|
||||
}
|
||||
}
|
@ -3,7 +3,7 @@
|
||||
$headerLineHeight: 24px;
|
||||
$buttonHeight: 28px;
|
||||
|
||||
.popup-mask {
|
||||
.ui-popup-mask {
|
||||
position: fixed;
|
||||
@include inset(0, 0, 0, 0);
|
||||
background-color: rgba(0 0 0 /20%);
|
||||
@ -20,27 +20,29 @@ $buttonHeight: 28px;
|
||||
--loading-border-radius: 10px;
|
||||
}
|
||||
|
||||
&.popup-active .popup-container {
|
||||
&.ui-popup-active .ui-popup-container {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
&.popup-transparent {
|
||||
&.ui-popup-transparent {
|
||||
right: unset;
|
||||
bottom: unset;
|
||||
}
|
||||
|
||||
.popup-container {
|
||||
.ui-popup-container {
|
||||
min-width: 400px;
|
||||
max-width: 800px;
|
||||
background-color: var(--bg-color);
|
||||
border-radius: var(--corner-radius);
|
||||
box-shadow: 0 2px 8px rgba(0 0 0 /11%);
|
||||
box-shadow: 0 2px 8px var(--shadow-color);
|
||||
transition: opacity .12s ease, transform .12s ease;
|
||||
position: absolute;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.popup-header {
|
||||
@include outline();
|
||||
|
||||
.ui-popup-header {
|
||||
flex: 0 0 auto;
|
||||
padding: 10px 12px 6px;
|
||||
border-radius: var(--corner-radius) var(--corner-radius) 0 0;
|
||||
@ -56,7 +58,7 @@ $buttonHeight: 28px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
>.popup-header-title {
|
||||
>.ui-popup-header-title {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@ -86,14 +88,14 @@ $buttonHeight: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
.popup-body {
|
||||
.ui-popup-body {
|
||||
margin: 6px 10px;
|
||||
flex: 1 1 auto;
|
||||
line-height: $headerLineHeight;
|
||||
position: relative;
|
||||
min-height: 100px;
|
||||
|
||||
>.popup-loading {
|
||||
>.ui-popup-loading {
|
||||
position: absolute;
|
||||
@include inset(0, 0, -46px, 0);
|
||||
visibility: hidden;
|
||||
@ -168,7 +170,7 @@ $buttonHeight: 28px;
|
||||
text-indent: var(--text-indent);
|
||||
}
|
||||
|
||||
+.checkbox-wrapper {
|
||||
+.ui-check-wrapper {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
@ -176,21 +178,21 @@ $buttonHeight: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
.popup-footer {
|
||||
.ui-popup-footer {
|
||||
flex: 0 0 auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
padding: 4px 10px 16px 2px;
|
||||
|
||||
.popup-button {
|
||||
.ui-popup-button {
|
||||
margin-left: 12px;
|
||||
border: none;
|
||||
height: $buttonHeight;
|
||||
// height: $buttonHeight;
|
||||
line-height: $buttonHeight;
|
||||
color: var(--title-color);
|
||||
border-radius: var(--corner-radius);
|
||||
padding: 0 16px;
|
||||
padding: 4px 16px;
|
||||
box-sizing: border-box;
|
||||
min-width: 70px;
|
||||
text-align: center;
|
||||
@ -208,75 +210,75 @@ $buttonHeight: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
.popup-border {
|
||||
.ui-popup-border {
|
||||
position: absolute;
|
||||
|
||||
&.popup-border-left,
|
||||
&.popup-border-right {
|
||||
&.ui-popup-border-left,
|
||||
&.ui-popup-border-right {
|
||||
width: 6px;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
cursor: ew-resize;
|
||||
}
|
||||
|
||||
&.popup-border-top,
|
||||
&.popup-border-bottom {
|
||||
&.ui-popup-border-top,
|
||||
&.ui-popup-border-bottom {
|
||||
width: 100%;
|
||||
height: 6px;
|
||||
left: 0;
|
||||
cursor: ns-resize;
|
||||
}
|
||||
|
||||
&.popup-border-top-left,
|
||||
&.popup-border-top-right,
|
||||
&.popup-border-bottom-right,
|
||||
&.popup-border-bottom-left {
|
||||
&.ui-popup-border-top-left,
|
||||
&.ui-popup-border-top-right,
|
||||
&.ui-popup-border-bottom-right,
|
||||
&.ui-popup-border-bottom-left {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
&.popup-border-top-left,
|
||||
&.popup-border-bottom-right {
|
||||
&.ui-popup-border-top-left,
|
||||
&.ui-popup-border-bottom-right {
|
||||
cursor: nwse-resize;
|
||||
}
|
||||
|
||||
&.popup-border-top-right,
|
||||
&.popup-border-bottom-left {
|
||||
&.ui-popup-border-top-right,
|
||||
&.ui-popup-border-bottom-left {
|
||||
cursor: nesw-resize;
|
||||
}
|
||||
|
||||
&.popup-border-left,
|
||||
&.popup-border-top-left,
|
||||
&.popup-border-bottom-left {
|
||||
&.ui-popup-border-left,
|
||||
&.ui-popup-border-top-left,
|
||||
&.ui-popup-border-bottom-left {
|
||||
left: -4px;
|
||||
}
|
||||
|
||||
&.popup-border-right,
|
||||
&.popup-border-top-right,
|
||||
&.popup-border-bottom-right {
|
||||
&.ui-popup-border-right,
|
||||
&.ui-popup-border-top-right,
|
||||
&.ui-popup-border-bottom-right {
|
||||
right: -4px;
|
||||
}
|
||||
|
||||
&.popup-border-top,
|
||||
&.popup-border-top-left,
|
||||
&.popup-border-top-right {
|
||||
&.ui-popup-border-top,
|
||||
&.ui-popup-border-top-left,
|
||||
&.ui-popup-border-top-right {
|
||||
top: -4px;
|
||||
}
|
||||
|
||||
&.popup-border-bottom,
|
||||
&.popup-border-bottom-right,
|
||||
&.popup-border-bottom-left {
|
||||
&.ui-popup-border-bottom,
|
||||
&.ui-popup-border-bottom-right,
|
||||
&.ui-popup-border-bottom-left {
|
||||
bottom: -4px;
|
||||
}
|
||||
}
|
||||
|
||||
&.popup-collapse {
|
||||
&.ui-popup-collapse {
|
||||
min-height: 40px;
|
||||
min-width: 160px;
|
||||
|
||||
.popup-body,
|
||||
.popup-footer,
|
||||
.popup-border {
|
||||
.ui-popup-body,
|
||||
.ui-popup-footer,
|
||||
.ui-popup-border {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
@import "./functions/func.scss";
|
||||
|
||||
.tooltip-color {
|
||||
.ui-tooltip-color {
|
||||
background-color: #fff;
|
||||
color: #323130;
|
||||
border-color: rgba(204, 204, 204, .8);
|
||||
@ -8,7 +8,7 @@
|
||||
@include outline();
|
||||
}
|
||||
|
||||
.tooltip-wrapper {
|
||||
.ui-tooltip-wrapper {
|
||||
position: absolute;
|
||||
word-wrap: break-word;
|
||||
height: auto;
|
||||
@ -21,7 +21,7 @@
|
||||
box-shadow: 0 3.2px 7.2px 0 rgba(0, 0, 0, .13), 0 0.6px 1.8px 0 rgba(0, 0, 0, .11);
|
||||
transition: visibility 0s linear 120ms, opacity 120ms ease;
|
||||
|
||||
>.tooltip-pointer {
|
||||
>.ui-tooltip-pointer {
|
||||
box-sizing: border-box;
|
||||
box-shadow: 0 5px 15px 2px rgba(0, 0, 0, .3);
|
||||
border: 1px solid #fff;
|
||||
@ -35,14 +35,14 @@
|
||||
transform-origin: center;
|
||||
}
|
||||
|
||||
>.tooltip-curtain {
|
||||
>.ui-tooltip-curtain {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
>.tooltip-content {
|
||||
>.ui-tooltip-content {
|
||||
font-size: var(--font-smaller-size);
|
||||
line-height: 1rem;
|
||||
white-space: normal;
|
||||
|
@ -10,10 +10,13 @@
|
||||
}
|
||||
|
||||
:root {
|
||||
color-scheme: light dark;
|
||||
|
||||
--color: #201f1e;
|
||||
--bg-color: #fff;
|
||||
--border-color: #b9b9b9;
|
||||
--focus-border-color: #666;
|
||||
--shadow-color: rgba(0 0 0 /11%);
|
||||
--disabled-color: #aaa;
|
||||
--disabled-bg-color: #e9e9e9;
|
||||
--disabled-border-color: #d9d9d9;
|
||||
@ -31,8 +34,30 @@
|
||||
--text-indent: 4px;
|
||||
--line-height: 24px;
|
||||
|
||||
--font-size: .8125rem; // 13px
|
||||
--font-smaller-size: .75rem; // 12px
|
||||
--font-larger-size: .875rem; // 14px
|
||||
--font-size: .8125rem; // 13px
|
||||
--font-smaller-size: .75rem; // 12px
|
||||
--font-larger-size: .875rem; // 14px
|
||||
--font-family: "Franklin Gothic Book", "San Francisco", "Segoe UI", "Open Sans", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei UI", sans-serif;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--color: rgb(255 255 255/87%);
|
||||
--bg-color: #141414;
|
||||
--border-color: #464646;
|
||||
--focus-border-color: #999;
|
||||
--shadow-color: rgba(128 128 128 /8%);
|
||||
--disabled-color: #555;
|
||||
--disabled-bg-color: #161616;
|
||||
--disabled-border-color: #262626;
|
||||
|
||||
--red-color: #c80000;
|
||||
--title-color: #ddd;
|
||||
--title-bg-color: rgb(40, 89, 173);
|
||||
--hover-bg-color: #222;
|
||||
--link-color: #0177e6;
|
||||
--primary-color: rgb(123, 28, 33);
|
||||
--loading-bg-color: rgb(20 20 20/40%);
|
||||
--loading-fore-color: rgb(255 255 255/20%);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user