Skip to content

Commit

Permalink
use correct pesudo-element selector
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkokari-gtyih committed Jul 11, 2024
1 parent d278f30 commit 4bc2b85
Show file tree
Hide file tree
Showing 16 changed files with 47 additions and 47 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/src/components/MkAchievements.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ onMounted(() => {
background: linear-gradient(0deg, #ffee20, #eb7018);
}

&:before {
&::before {
content: "";
display: block;
position: absolute;
Expand All @@ -173,7 +173,7 @@ onMounted(() => {
background: linear-gradient(0deg, #e1e1e1, #7c7c7c);
}

&:before {
&::before {
content: "";
display: block;
position: absolute;
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/components/MkCwButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ function toggle() {
.label {
margin-left: 4px;

&:before {
&::before {
content: '(';
}

&:after {
&::after {
content: ')';
}
}
Expand Down
32 changes: 16 additions & 16 deletions packages/frontend/src/components/MkDrive.file.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ function onDragend() {
background: rgba(#000, 0.05);

> .label {
&:before,
&:after {
&::before,
&::after {
background: #0b65a5;
}

&.red {
&:before,
&:after {
&::before,
&::after {
background: #c12113;
}
}
Expand All @@ -133,14 +133,14 @@ function onDragend() {
background: rgba(#000, 0.1);

> .label {
&:before,
&:after {
&::before,
&::after {
background: #0b588c;
}

&.red {
&:before,
&:after {
&::before,
&::after {
background: #ce2212;
}
}
Expand All @@ -159,8 +159,8 @@ function onDragend() {
}

> .label {
&:before,
&:after {
&::before,
&::after {
display: none;
}
}
Expand All @@ -181,32 +181,32 @@ function onDragend() {
left: 0;
pointer-events: none;

&:before,
&:after {
&::before,
&::after {
content: "";
display: block;
position: absolute;
z-index: 1;
background: #0c7ac9;
}

&:before {
&::before {
top: 0;
left: 57px;
width: 28px;
height: 8px;
}

&:after {
&::after {
top: 57px;
left: 0;
width: 8px;
height: 28px;
}

&.red {
&:before,
&:after {
&::before,
&::after {
background: #c12113;
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkDrive.folder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ function onContextmenu(ev: MouseEvent) {
cursor: pointer;

&.draghover {
&:after {
&::after {
content: "";
pointer-events: none;
position: absolute;
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/components/MkGalleryPostPreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function leaveHover(): void {

> article {
> footer {
&:before {
&::before {
opacity: 1;
}
}
Expand Down Expand Up @@ -139,7 +139,7 @@ function leaveHover(): void {
text-shadow: 0 0 8px #000;
background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));

&:before {
&::before {
content: "";
display: block;
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkNotification.vue
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ function getActualReactedUsersCount(notification: Misskey.entities.Notification)
margin-right: 4px;
position: relative;

&:before {
&::before {
position: absolute;
transform: rotate(180deg);
}
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/components/MkRadio.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function toggle(): void {
> .button {
border-color: var(--accent);

&:after {
&::after {
background-color: var(--accent);
transform: scale(1);
opacity: 1;
Expand All @@ -110,7 +110,7 @@ function toggle(): void {
border-radius: 100%;
transition: inherit;

&:after {
&::after {
content: '';
display: block;
position: absolute;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const exampleCWNote = reactive<Misskey.entities.Note>({
font-weight: bold;
text-align: left;

&:before {
&::before {
content: "";
display: block;
width: calc(100% - 38px);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const exampleNote = reactive<Misskey.entities.Note>({
font-weight: bold;
text-align: left;

&:before {
&::before {
content: "";
display: block;
width: calc(100% - 38px);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import { i18n } from '@/i18n.js';
font-weight: bold;
text-align: left;

&:before {
&::before {
content: "";
display: block;
width: calc(100% - 38px);
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ rt {
vertical-align: -12%;
line-height: 1em;

&:before {
&::before {
font-size: 128%;
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/ui/_common_/common.vue
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ if ($i) {
right: 15px;
pointer-events: none;

&:before {
&::before {
content: "";
display: block;
width: 18px;
Expand Down
6 changes: 3 additions & 3 deletions packages/frontend/src/ui/_common_/navbar-for-mobile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function more() {
font-weight: bold;
text-align: left;

&:before {
&::before {
content: "";
display: block;
width: calc(100% - 38px);
Expand All @@ -155,7 +155,7 @@ function more() {
}

&:hover, &.active {
&:before {
&::before {
background: var(--accentLighten);
}
}
Expand Down Expand Up @@ -226,7 +226,7 @@ function more() {
}

&:hover, &.active {
&:before {
&::before {
content: "";
display: block;
width: calc(100% - 24px);
Expand Down
20 changes: 10 additions & 10 deletions packages/frontend/src/ui/_common_/navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ function more(ev: MouseEvent) {
font-weight: bold;
text-align: left;

&:before {
&::before {
content: "";
display: block;
width: calc(100% - 38px);
Expand All @@ -219,14 +219,14 @@ function more(ev: MouseEvent) {
&:focus-visible {
outline: none;

&:before {
&::before {
outline: 2px solid var(--fgOnAccent);
outline-offset: -4px;
}
}

&:hover, &.active {
&:before {
&::before {
background: var(--accentLighten);
}
}
Expand Down Expand Up @@ -311,7 +311,7 @@ function more(ev: MouseEvent) {
&:focus-visible {
outline: none;

&:before {
&::before {
outline: 2px solid var(--focus);
outline-offset: -2px;
}
Expand All @@ -320,7 +320,7 @@ function more(ev: MouseEvent) {
&:hover, &.active, &:focus {
color: var(--accent);

&:before {
&::before {
content: "";
display: block;
width: calc(100% - 34px);
Expand Down Expand Up @@ -420,7 +420,7 @@ function more(ev: MouseEvent) {
height: 52px;
text-align: center;

&:before {
&::before {
content: "";
display: block;
position: absolute;
Expand All @@ -438,14 +438,14 @@ function more(ev: MouseEvent) {
&:focus-visible {
outline: none;

&:before {
&::before {
outline: 2px solid var(--fgOnAccent);
outline-offset: -4px;
}
}

&:hover, &.active {
&:before {
&::before {
background: var(--accentLighten);
}
}
Expand Down Expand Up @@ -506,7 +506,7 @@ function more(ev: MouseEvent) {
&:focus-visible {
outline: none;

&:before {
&::before {
outline: 2px solid var(--focus);
outline-offset: -2px;
}
Expand All @@ -516,7 +516,7 @@ function more(ev: MouseEvent) {
text-decoration: none;
color: var(--accent);

&:before {
&::before {
content: "";
display: block;
height: 100%;
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/ui/deck/column.vue
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ function onDrop(ev) {
border-radius: 10px;

&.draghover {
&:after {
&::after {
content: "";
display: block;
position: absolute;
Expand All @@ -285,7 +285,7 @@ function onDrop(ev) {
}

&.dragging {
&:after {
&::after {
content: "";
display: block;
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/widgets/WidgetCalendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ defineExpose<WidgetComponentExpose>({
.root {
padding: 16px 0;

&:after {
&::after {
content: "";
display: block;
clear: both;
Expand Down

0 comments on commit 4bc2b85

Please sign in to comment.