danieltslz commited on
Commit
3c7e1fb
·
verified ·
1 Parent(s): df8f829

Refine theme toggle appearance

Browse files
Files changed (1) hide show
  1. style.css +11 -9
style.css CHANGED
@@ -358,7 +358,7 @@ html {
358
  /* THEME TOGGLE */
359
 
360
  .theme-toggle {
361
- position: fixed;
362
  top: 16px;
363
  right: 18px;
364
  z-index: 1000;
@@ -366,19 +366,21 @@ html {
366
  display: inline-flex;
367
  align-items: center;
368
  justify-content: center;
369
- min-width: 104px;
370
 
371
- padding: 9px 13px;
 
 
 
372
  border: 1px solid rgba(23, 32, 51, .22);
373
- border-radius: 999px;
374
 
375
  color: #172033;
376
  background: rgba(255, 255, 255, .94);
377
  box-shadow: 0 5px 18px rgba(0, 0, 0, .15);
378
 
379
  font: inherit;
380
- font-size: .86rem;
381
- font-weight: 700;
382
  cursor: pointer;
383
 
384
  transition:
@@ -420,8 +422,8 @@ html[data-theme="night"] .theme-toggle {
420
  .theme-toggle {
421
  top: 10px;
422
  right: 10px;
423
- min-width: 92px;
424
- padding: 8px 11px;
425
- font-size: .8rem;
426
  }
427
  }
 
358
  /* THEME TOGGLE */
359
 
360
  .theme-toggle {
361
+ position: absolute;
362
  top: 16px;
363
  right: 18px;
364
  z-index: 1000;
 
366
  display: inline-flex;
367
  align-items: center;
368
  justify-content: center;
 
369
 
370
+ width: 42px;
371
+ height: 42px;
372
+ padding: 0;
373
+
374
  border: 1px solid rgba(23, 32, 51, .22);
375
+ border-radius: 50%;
376
 
377
  color: #172033;
378
  background: rgba(255, 255, 255, .94);
379
  box-shadow: 0 5px 18px rgba(0, 0, 0, .15);
380
 
381
  font: inherit;
382
+ font-size: 1.25rem;
383
+ line-height: 1;
384
  cursor: pointer;
385
 
386
  transition:
 
422
  .theme-toggle {
423
  top: 10px;
424
  right: 10px;
425
+ width: 38px;
426
+ height: 38px;
427
+ font-size: 1.1rem;
428
  }
429
  }