-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR Convert most files to css. It refactors the addons to use pure css. It also converts the base tokens and light mode tokens to not use mixins. Additionally, the dark mode tokens were removed in favor of use the `light-dark()` function for better control
- Loading branch information
1 parent
fae03f1
commit bbb6c36
Showing
48 changed files
with
2,080 additions
and
1,388 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
.panel { | ||
--op-panel-width: 40%; | ||
|
||
position: absolute; | ||
z-index: var(--op-z-index-sidebar); | ||
width: var(--op-panel-width); | ||
height: 100vh; | ||
background-color: var(--op-color-background); | ||
color: var(--op-color-on-background); | ||
inset-inline-end: calc(-1 * var(--op-panel-width)); /* this pushes the panel off the screen to the right */ | ||
overflow-y: scroll; | ||
padding-block-end: var(--op-space-large); | ||
transition: var(--op-transition-panel); | ||
} | ||
|
||
.panel--active { | ||
box-shadow: var(--op-shadow-x-large); | ||
inset-inline-end: 0; | ||
} | ||
|
||
.panel__close { | ||
display: flex; | ||
padding: var(--op-space-medium); | ||
border-radius: 100%; | ||
cursor: pointer; | ||
float: right; | ||
|
||
&:hover { | ||
background-color: var(--op-color-neutral-plus-seven); | ||
} | ||
} | ||
|
||
#panel-content { | ||
padding-block: var(--op-space-large); | ||
} | ||
|
||
/* Follow system preference unless forced to light */ | ||
@media (prefers-color-scheme: dark) { | ||
:root:not([data-theme-mode='light']) { | ||
.panel { | ||
background-color: var(--op-color-neutral-plus-seven); | ||
color: var(--op-color-neutral-on-plus-seven); | ||
} | ||
|
||
.panel__close { | ||
&:hover { | ||
background-color: var(--op-color-background); | ||
} | ||
} | ||
} | ||
} | ||
|
||
/* Force design system to dark */ | ||
:root[data-theme-mode='dark'] { | ||
.panel { | ||
background-color: var(--op-color-neutral-plus-seven); | ||
color: var(--op-color-neutral-on-plus-seven); | ||
} | ||
|
||
.panel__close { | ||
&:hover { | ||
background-color: var(--op-color-background); | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
// Look up icons at: https://fonts.google.com/icons?icon.set=Material+Symbols | ||
// Instead of hosting the font files locally which requires the compiler to handle them, we pull the icons | ||
// from Googles CDN like we do for our other fonts | ||
// https://developers.google.com/fonts/docs/material_symbols#variable_font_with_google_fonts | ||
/* | ||
Look up icons at: https://fonts.google.com/icons?icon.set=Material+Symbols | ||
Instead of hosting the font files locally which requires the compiler to handle them, we pull the icons | ||
from Googles CDN like we do for our other fonts | ||
https://developers.google.com/fonts/docs/material_symbols#variable_font_with_google_fonts | ||
*/ | ||
|
||
@import 'https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200&display=block'; | ||
|
||
|
@@ -22,7 +24,7 @@ | |
vertical-align: middle; | ||
} | ||
|
||
// Fill | ||
/* Fill */ | ||
.icon--outlined { | ||
--op-mso-fill: 0; | ||
} | ||
|
@@ -31,7 +33,7 @@ | |
--op-mso-fill: 1; | ||
} | ||
|
||
// Weight | ||
/* Weight */ | ||
.icon--weight-light { | ||
--op-mso-weight: var(--op-font-weight-light); | ||
} | ||
|
@@ -48,7 +50,7 @@ | |
--op-mso-weight: var(--op-font-weight-bold); | ||
} | ||
|
||
// Emphasis | ||
/* Emphasis */ | ||
.icon--low-emphasis { | ||
--op-mso-grade: -20; | ||
} | ||
|
@@ -61,7 +63,7 @@ | |
--op-mso-grade: 200; | ||
} | ||
|
||
// Size | ||
/* Size */ | ||
.icon--medium { | ||
font-size: var(--op-font-medium); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.