Skip to content

Commit 59254fa

Browse files
committed
console: Fix styling
1 parent 06761ad commit 59254fa

File tree

5 files changed

+24
-23
lines changed

5 files changed

+24
-23
lines changed

pkg/webui/components/panel/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ const Panel = ({
3737
<div className={styles.panel}>
3838
<div className="d-flex j-between mb-cs-xl">
3939
<div className="d-flex gap-cs-xs al-center">
40-
{icon && <Icon icon={icon} className={styles.icon} />}
41-
<Message content={title} className={styles.title} />
40+
{icon && <Icon icon={icon} className={styles.panelHeaderIcon} />}
41+
<Message content={title} className={styles.panelHeaderTitle} />
4242
</div>
4343
{toggleOptions ? (
4444
<Toggle options={toggleOptions} active={activeToggle} onToggleChange={onToggleClick} />

pkg/webui/components/panel/panel.styl

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@
2121
box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.09)
2222
padding: $cs.xl
2323

24+
&-header
25+
&-title
26+
font-weight: $fwv2.bold
27+
font-size: $fsv2.l
28+
line-height: 1
29+
2430
.button
2531
reset-button()
2632
color: #1E5DFF
@@ -29,10 +35,5 @@
2935
&:hover
3036
text-decoration: underline
3137

32-
.icon
33-
font-size: 1.5rem !important
34-
35-
.title
36-
font-weight: $fwv2.bold
37-
font-size: $fsv2.l
38-
line-height: 1
38+
span.panel-header-icon
39+
font-size: 1.5rem

pkg/webui/components/panel/toggle/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import styles from './toggle.styl'
2424
const Toggle = ({ options, onToggleChange, active }) => (
2525
<div className={classnames(styles.toggle, 'd-flex j-center al-center gap-cs-xxs p-cs-xxs')}>
2626
{options.map(({ label, value }) => {
27-
const buttonClassName = classnames(styles.button, {
28-
[styles.buttonActive]: value === active,
27+
const buttonClassName = classnames(styles.toggleButton, {
28+
[styles.toggleButtonActive]: value === active,
2929
})
3030

3131
return (

pkg/webui/components/panel/toggle/toggle.styl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
border: 1px solid $c.grey-200
1818
background: $c-focus
1919

20-
.button
20+
&-button
2121
reset-button()
2222
border-radius: $br.m
2323
padding: 0 $cs.s
@@ -28,5 +28,5 @@
2828
background: $c.white
2929
font-weight: $fwv2.regular
3030

31-
&:hover:not(.button-active)
32-
background: $c.grey-100
31+
&:hover:not(.toggle-button-active)
32+
background: $c.grey-100

pkg/webui/components/shortcut-panel/shortcut-item/shortcut-item.styl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
font-size: $fs.s
2323
font-weight: $fwv2.semibold
2424

25-
.icon
26-
font-size: 2rem !important
25+
span.icon
26+
font-size: 2rem
2727
display: block
2828

29-
.add-icon
30-
font-size: 2.5rem !important
29+
span.add-icon
30+
font-size: 2.5rem
3131
display: none
3232

3333
.title
@@ -39,10 +39,10 @@
3939
.title
4040
display: none
4141

42-
.icon
43-
font-size: 2rem !important
42+
span.icon
43+
font-size: 2rem
4444
display: none
4545

46-
.add-icon
47-
font-size: 2.5rem !important
48-
display: block
46+
span.add-icon
47+
font-size: 2.5rem
48+
display: block

0 commit comments

Comments
 (0)