Skip to content

Commit

Permalink
♻️ #13281
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Nov 26, 2024
1 parent e850189 commit 8feb03a
Show file tree
Hide file tree
Showing 17 changed files with 62 additions and 69 deletions.
2 changes: 1 addition & 1 deletion app/appearance/themes/daylight/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
}

/* https://github.com/siyuan-note/siyuan/issues/6440 */
.protyle-action--order:after {
.protyle-action--order::after {
mix-blend-mode: multiply;
}

Expand Down
2 changes: 1 addition & 1 deletion app/appearance/themes/midnight/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
}

/* https://github.com/siyuan-note/siyuan/issues/6440 */
.protyle-action--order:after {
.protyle-action--order::after {
mix-blend-mode: screen;
}

Expand Down
6 changes: 3 additions & 3 deletions app/src/assets/scss/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ html {
opacity: .38;
}

.dragover__top:after,
.dragover__bottom:after {
.dragover__top::after,
.dragover__bottom::after {
content: "";
width: var(--file-toggle-width);
height: 4px;
Expand All @@ -341,7 +341,7 @@ html {
z-index: 1;
}

.dragover__top:after {
.dragover__top::after {
top: -3px;
bottom: auto;
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/assets/scss/business/_av.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
background: var(--b3-border-color);
border-radius: var(--b3-border-radius);

&:after {
&::after {
content: " ";
border-radius: var(--b3-border-radius);
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion app/src/assets/scss/business/_export.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
position: relative;
z-index: 1;

[data-node-id].li[fold="1"] > .protyle-action:after {
[data-node-id].li[fold="1"] > .protyle-action::after {
background-color: transparent;
border: 1px solid var(--b3-list-hover);
box-sizing: border-box;
Expand Down
16 changes: 8 additions & 8 deletions app/src/assets/scss/business/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
overflow-y: hidden; // https://github.com/siyuan-note/siyuan/issues/6706

&__wnd--active .layout-tab-bar .item--focus {
&:after {
&::after {
background-color: var(--b3-theme-primary);
}

Expand Down Expand Up @@ -111,11 +111,11 @@
position: relative;
z-index: 4; // 需大于 #sidebarContainer https://github.com/siyuan-note/siyuan/issues/11759

&:hover:after {
&:hover::after {
background-color: var(--b3-scroll-color);
}

&:after {
&::after {
content: "";
width: 100%;
height: .5px;
Expand All @@ -133,7 +133,7 @@
margin: 0 -6px 0 0;
height: auto;

&:after {
&::after {
top: 0;
width: .5px;
left: 0;
Expand Down Expand Up @@ -226,7 +226,7 @@
max-width: none;
flex: 1;

&.item--focus:after {
&.item--focus::after {
background-color: var(--b3-theme-primary);
}
}
Expand Down Expand Up @@ -268,7 +268,7 @@
}
}

&--focus:after {
&--focus::after {
content: "";
width: 100%;
height: 3px;
Expand Down Expand Up @@ -384,12 +384,12 @@
padding: 0;

.dock__item {
&[data-index="0"]:after {
&[data-index="0"]::after {
top: -32px;
bottom: auto;
}

&[data-index="1"]:after {
&[data-index="1"]::after {
bottom: 100%;
}
}
Expand Down
6 changes: 3 additions & 3 deletions app/src/assets/scss/business/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
margin: 0 -6px 0 0;
height: auto;

&:after {
&::after {
width: .5px;
height: 100%;
}
Expand Down Expand Up @@ -104,7 +104,7 @@
position: relative;
z-index: 2;

&:after {
&::after {
content: "";
display: block;
background-color: var(--b3-theme-surface-lighter);
Expand All @@ -116,7 +116,7 @@
height: .5px;
}

&:hover:after {
&:hover::after {
background-color: var(--b3-scroll-color);
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/assets/scss/component/_list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
position: relative;
}

.b3-list__panel:before {
.b3-list__panel::before {
content: "";
height: 100%;
top: 0;
Expand Down
2 changes: 1 addition & 1 deletion app/src/assets/scss/component/_snackbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
&--error .b3-snackbar__content {
padding-left: 47px;

&:after {
&::after {
content: "";
position: absolute;
left: 16px;
Expand Down
20 changes: 10 additions & 10 deletions app/src/assets/scss/component/_switch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
align-self: center;
}

&:after {
&::after {
width: 8px;
height: 8px;
border-radius: 50%;
Expand All @@ -40,7 +40,7 @@
transition: left 80ms linear, background-color 80ms linear, width 80ms linear, height 80ms linear;
}

&:before {
&::before {
z-index: 2;
content: "";
left: 7px;
Expand All @@ -59,28 +59,28 @@
background-color: var(--b3-switch-checked-background);
border-color: transparent;

&:after {
&::after {
background-color: var(--b3-switch-checked);
height: 12px;
width: 12px;
}

&:before,
&:after {
&::before,
&::after {
left: 17px;
}

&:hover:not(:disabled) {
&:after {
&::after {
background-color: var(--b3-switch-checked-hover);
}

&:before {
&::before {
background-color: var(--b3-switch-checked-hover2);
}
}

&:active:not(:disabled):after {
&:active:not(:disabled)::after {
height: 14px;
width: 14px;
}
Expand All @@ -91,12 +91,12 @@
cursor: auto;
}

&:active:not(:disabled):after {
&:active:not(:disabled)::after {
height: 10px;
width: 10px;
}

&:hover:not(:disabled):before {
&:hover:not(:disabled)::before {
display: inline-block;
}
}
4 changes: 2 additions & 2 deletions app/src/assets/scss/component/_tooltips.scss
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@
}

@media screen and (max-width: 520px) {
.b3-tooltips:before,
.b3-tooltips:after {
.b3-tooltips::before,
.b3-tooltips::after {
content: none;
}
}
4 changes: 2 additions & 2 deletions app/src/assets/scss/component/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@

blockquote,
.bq {
&:before {
&::before {
content: '';
background-color: var(--b3-theme-surface-lighter);
width: .25em;
Expand Down Expand Up @@ -345,7 +345,7 @@
display: flex;
align-items: baseline; // https://ld246.com/article/1645933216334

&:before {
&::before {
content: "";
flex: 1;
}
Expand Down
4 changes: 2 additions & 2 deletions app/src/assets/scss/pdf/_pdf.scss
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
cursor: ew-resize;
right: -6px;

&:after {
&::after {
content: "";
width: 1px;
height: 100%;
Expand All @@ -244,7 +244,7 @@
left: 3px;
}

&:hover:after {
&:hover::after {
background-color: var(--b3-scroll-color);
}
}
Expand Down
6 changes: 3 additions & 3 deletions app/src/assets/scss/protyle/_protyle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@
padding: 0 4px 0 2px;
white-space: break-spaces;

&:empty:after {
&:empty::after {
content: attr(data-tip);
color: var(--b3-theme-on-surface-light);
cursor: text;
Expand Down Expand Up @@ -420,11 +420,11 @@ table[contenteditable="true"] + .protyle-action__table {
cursor: col-resize;
z-index: 2;

&:hover:after {
&:hover::after {
background-color: var(--b3-theme-primary-light);
}

&:after {
&::after {
top: 0;
width: 2px;
left: 2px;
Expand Down
Loading

0 comments on commit 8feb03a

Please sign in to comment.