Skip to content

Commit 4672a20

Browse files
committed
Moved non-baseline features to @support blocks to suppress unuseful errors from new ESLint feat to avoid hacking config (eslint/css#33) ↞ [auto-sync from https://github.com/KudoAI/chatgpt.js-chrome-starter]
1 parent afb1748 commit 4672a20

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

starters/chrome/extension/popup/style.css

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/* General size */
22
html { height: fit-content ; min-height: 89px }
3-
body { width: max-content ; margin: 0 ; overflow: clip }
3+
body { width: max-content ; margin: 0 }
44

55
/* General font */
66
body, button, input, select, textarea {
77
font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto,
88
"PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif ;
9-
font-size: .905rem ; user-select: none
9+
font-size: .905rem
1010
}
1111
a { color: #999 ; text-decoration: none }
1212
a:focus, a:hover { text-decoration: underline ; color: inherit }
@@ -49,7 +49,7 @@ a:focus, a:hover { text-decoration: underline ; color: inherit }
4949
display: flex ; min-height: 2rem ; padding: 0 14px 0 2px ; white-space: nowrap ; font-size: 91%
5050
}
5151
.menu-icon { padding: 8px }
52-
.menu-area:focus, .menu-area:hover { background: rgb(100,149,237) ; cursor: pointer } /* add hover color/cursor */
52+
.menu-area:focus, .menu-area:hover { background: rgb(100,149,237) } /* add hover color/cursor */
5353
.menu-item:hover span:not(.slider) { filter: invert(1) } /* invert setting labels on hover */
5454
.menu-item > label > .slider { transform: scale(0.95) ; top: 1px } /* make child toggles smaller */
5555
.menu-prompt { margin-left: 2px } /* align non-toggle items */
@@ -58,7 +58,7 @@ a:focus, a:hover { text-decoration: underline ; color: inherit }
5858
.toggle-switch input[type="checkbox"] { display: none } /* hide checkbox from toggles */
5959
.toggle-switch .slider { /* style sliders */
6060
background-color: white; display: block; border: 1px solid black; border-radius: 7px ;
61-
position: relative ; top: 0.05rem ; height: 10px ; width: 18px ; cursor: pointer ;
61+
position: relative ; top: 0.05rem ; height: 10px ; width: 18px ;
6262
}
6363
.toggle-switch .slider::before { /* style slider knobs */
6464
position: absolute ; height: 0.625rem ; width: 0.625rem ; left: -0.04rem ; top: -0.05rem ;
@@ -70,8 +70,14 @@ a:focus, a:hover { text-decoration: underline ; color: inherit }
7070
/* Footer */
7171
footer { font-size: 12px ; text-align: center ; color: #999 ; background: #f5f5f5 ; height: 40px ; line-height: 40px }
7272
footer > .menu-icon { position: absolute ; bottom: -10px ; opacity: 0.7 }
73-
.chatgpt-js { position: absolute ; bottom: -.25rem ; left: 0.7rem ; cursor: pointer }
73+
.chatgpt-js { position: absolute ; bottom: -.25rem ; left: 0.7rem }
7474

7575
/* Master toggle effects */
7676
.disabled { opacity: 0.3 ; pointer-events: none }
7777
.enabled { opacity: 1 }
78+
79+
/* Non-baseline features */
80+
@supports (overflow: clip) { body { overflow: clip }}
81+
@supports (user-select: none) { body, button, input, select, textarea { user-select: none }}
82+
@supports (cursor: pointer) {
83+
.menu-area:focus, .menu-area:hover, .toggle-switch .slider, .chatgpt-js { cursor: pointer }}

0 commit comments

Comments
 (0)