Skip to content

Commit ea3f0d6

Browse files
committed
reduced size of dark theme toggle
1 parent ffe67f4 commit ea3f0d6

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/app/styles/components/_buttons.scss

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
}
5656
}
5757

58-
/* sidebar button open and closing functionality */
5958
.record-button-container {
6059
display: flex;
6160
align-items: center;
@@ -121,8 +120,8 @@
121120
/* Theme toggle button styling */
122121
.theme-toggle {
123122
position: relative;
124-
width: 64px;
125-
height: 32px;
123+
width: 48px;
124+
height: 24px;
126125
border-radius: 16px;
127126
border: 2px solid var(--border-color);
128127
background-color: var(--bg-tertiary);
@@ -138,8 +137,8 @@
138137

139138
.theme-toggle-slider {
140139
position: relative;
141-
width: 24px;
142-
height: 24px;
140+
width: 16px;
141+
height: 16px;
143142
border-radius: 50%;
144143
background-color: var(--bg-primary);
145144
transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
@@ -150,7 +149,7 @@
150149
}
151150

152151
.theme-toggle.dark .theme-toggle-slider {
153-
transform: translateX(32px);
152+
transform: translateX(24px);
154153
background-color: var(--color-primary);
155154
}
156155

@@ -163,13 +162,13 @@
163162
display: flex;
164163
align-items: center;
165164
justify-content: space-between;
166-
padding: 4px 8px;
165+
padding: 0 4px;
167166
pointer-events: none;
168167
}
169168

170169
.theme-toggle-icon {
171-
width: 16px;
172-
height: 16px;
170+
width: 14px;
171+
height: 14px;
173172
transition: color 300ms ease;
174173
}
175174

0 commit comments

Comments
 (0)