Skip to content

Commit

Permalink
💄 优化弹出层输入框样式
Browse files Browse the repository at this point in the history
  • Loading branch information
Licoy committed Jan 29, 2023
1 parent 9b8fe27 commit ff159e9
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 34 deletions.
17 changes: 8 additions & 9 deletions assets/dist/js/libs.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/dist/style/common.min.css

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions assets/dist/style/libs.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/dist/style/screen.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/dist/style/style.min.css

Large diffs are not rendered by default.

46 changes: 32 additions & 14 deletions assets/style/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ a {
--bs-alert-padding-x: .7rem;
--bs-alert-padding-y: .7rem;

&.alert-outline{
&.alert-outline {
border: 1px dashed;
background-color: transparent !important;
color: var(--pk-c-font) !important;
Expand All @@ -274,10 +274,10 @@ a {
}
}

.list-group{
--bs-list-group-bg:var(--pk-bg-box);
--bs-list-group-color:var(--pk-c-font);
--bs-list-group-border-color:var(--pk-c-border);
.list-group {
--bs-list-group-bg: var(--pk-bg-box);
--bs-list-group-color: var(--pk-c-font);
--bs-list-group-border-color: var(--pk-c-border);
}

.mtb10 {
Expand Down Expand Up @@ -469,6 +469,15 @@ a {
cursor: pointer;
}

.curph {
transition: all .3s;
cursor: pointer;

&:hover {
opacity: 0.8;
}
}

.h-scroll {
white-space: nowrap;
overflow-y: auto;
Expand Down Expand Up @@ -585,9 +594,11 @@ a {

.pk-skeleton {
animation: skeleton-loading 1s linear infinite;
&:not(:last-child){

&:not(:last-child) {
margin-bottom: var(--pk-g-basic-distance);
}

&._comment {
display: flex;
align-items: flex-start;
Expand Down Expand Up @@ -637,24 +648,31 @@ a {
}
}
}
&._default{
&>div{
@h:12px;
&:nth-child(1){

&._default {
& > div {
@h: 12px;

&:nth-child(1) {
.--pk-wh(50%, @h);
}
&:nth-child(2){

&:nth-child(2) {
.--pk-wh(57%, @h);
}
&:nth-child(3){

&:nth-child(3) {
.--pk-wh(45%, @h);
}
&:nth-child(4){

&:nth-child(4) {
.--pk-wh(78%, @h);
}
&:nth-child(5){

&:nth-child(5) {
.--pk-wh(64%, @h);
}

background-color: var(--pk-bg-skeleton);
border-radius: 6px;

Expand Down
10 changes: 9 additions & 1 deletion assets/style/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,14 @@ blockquote {
}
}
}

&.layui-layer-prompt .layui-layer-input{
background-color: var(--pk-bg-box-content) !important;
border: none !important;
color: var(--pk-c-font);
border-radius: var(--pk-g-box-radius);
font-size: 14px;
}
}

.layui-layer-loading {
Expand Down Expand Up @@ -652,7 +660,7 @@ a:hover {
}

.btn:hover,
.btn:focus, .form-control:hover, .form-control:focus, button:focus, .abc-checkbox label:focus, .form-check-input:focus {
.btn:focus, .form-control:hover, .form-control:focus, button:focus, .abc-checkbox label:focus, .form-check-input:focus,.layui-layer-input,.layui-layer-input:focus {
outline: none;
box-shadow: none;
}
Expand Down

0 comments on commit ff159e9

Please sign in to comment.