Skip to content

Commit

Permalink
修复关闭按钮错位的问题,为按钮添加透明边框
Browse files Browse the repository at this point in the history
  • Loading branch information
dsy4567 committed Sep 17, 2023
1 parent f52377d commit 7f0494f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 54 deletions.
61 changes: 8 additions & 53 deletions src/css/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,58 +16,10 @@
--red: rgb(128, 0, 0);
}
}
/* @media (forced-colors: active) {
html {
--theme-color1: black;
--theme-color2: white;
--green: rgb(0, 255, 0);
--red: rgb(255, 0, 0);
}
::selection {
background-color: white !important;
color: black;
}
body,
html {
background-color: black !important;
color: white !important;
}
a {
color: yellow !important;
}
a:hover {
text-decoration: 1px underline white !important;
}
.iconButton,
#tools > button,
.settingItem {
border: 2px solid var(--theme-color4) !important;
color: white;
}
.iconButton:hover,
.iconButton:focus-visible-visible,
#tools > button:hover,
#tools > button:focus-visible,
.settingItem:hover,
.settingItem:focus-visible {
border: 2px dashed var(--theme-color4) !important;
}
#tools > button,
.settingItem,
.iconButton {
background-color: rgba(0, 0, 0, 0) !important;
}
.notification {
border: 2px solid;
background-color: black !important;
}
.notification:hover {
border-style: dashed;
}
} */

html {
--theme-color4: #66ccff;
--theme-color4:
rgb(0 200 255);
}
::selection {
background-color: var(--theme-color3);
Expand Down Expand Up @@ -103,7 +55,7 @@ a:hover {

#tools > button {
background-color: var(--theme-color4);
border: none;
border: 2px solid #0000;
border-radius: 8px;
font-size: 16px;
margin: 4px;
Expand All @@ -120,14 +72,17 @@ a:hover {
#tools > button:focus-visible,
.settingItem:focus-visible,
.iconButton:focus-visible {
border: 2px dashed #0000;
filter: brightness(1.2);
}

.iconButton {
border: none;
cursor: pointer;
background-color: rgba(0, 0, 0, 0);
border: 2px solid #0000;
border-radius: 50%;
display: flex;
align-items: center;
padding: 8px;
padding-left: 9.5px;
padding-right: 9.5px;
Expand All @@ -141,7 +96,7 @@ a:hover {
height: 24px;
}
.settingItem {
border: none;
border: 2px solid #0000;
font-size: 16px;
height: 50px;
width: 95%;
Expand Down
2 changes: 1 addition & 1 deletion src/css/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ p {
}

.notification {
border: 2px solid #0000;
border-radius: 8px;
display: flex;
font-size: large;
Expand All @@ -127,7 +128,6 @@ p {
height: 24px;
}
.notification > .iconButton {
border: none;
padding: 0;
}

Expand Down

0 comments on commit 7f0494f

Please sign in to comment.