Skip to content

Commit f800738

Browse files
committed
Aligned CSS vars
1 parent 3334b77 commit f800738

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

chatgpt.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,11 @@ const chatgpt = {
183183
}
184184
modalStyle.textContent = ( // update prev/new style contents
185185
`.chatgpt-modal { /* vars */
186-
--transition: opacity 0.65s cubic-bezier(.165,.84,.44,1), /* for fade-in */
187-
transform 0.55s cubic-bezier(.165,.84,.44,1) ; /* for move-in */
188-
--bg-transition: background-color 0.25s ease ; /* for bg dim */
189-
--btn-transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out ; /* for smooth zoom */
190-
--btn-shadow: 2px 1px ${ scheme == 'dark' ? '54px #00cfff' : '30px #9cdaff' }}`
186+
--transition: opacity 0.65s cubic-bezier(.165,.84,.44,1), /* for fade-in */
187+
transform 0.55s cubic-bezier(.165,.84,.44,1) ; /* for move-in */
188+
--bg-transition: background-color 0.25s ease ; /* for bg dim */
189+
--btn-transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out ; /* for smooth zoom */
190+
--btn-shadow: 2px 1px ${ scheme == 'dark' ? '54px #00cfff' : '30px #9cdaff' }}`
191191

192192
+ '.no-mobile-tap-outline { outline: none ; -webkit-tap-highlight-color: transparent }'
193193

@@ -212,7 +212,7 @@ const chatgpt = {
212212
border: 1px solid ${ scheme == 'dark' ? 'white' : '#b5b5b5' };
213213
transform: translateX(-3px) translateY(7px) ; /* offset to move-in from */
214214
max-width: 75vw ; word-wrap: break-word ; border-radius: 15px ;
215-
--shadow: 0 30px 60px rgba(0,0,0,0.12) ; box-shadow: var(--shadow) ;
215+
--shadow: 0 30px 60px rgba(0,0,0,0.12) ; box-shadow: var(--shadow) ;
216216
-webkit-box-shadow: var(--shadow) ; -moz-box-shadow: var(--shadow) ;
217217
user-select: none ; -webkit-user-select: none ; -moz-user-select: none ;
218218
-o-user-select: none ; -ms-user-select: none ;

docs/assets/styles/src/style.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ $font-families: (
112112
/* VARIABLES */
113113

114114
:root {
115-
--fade-transition: 0.2s cubic-bezier(0.165,0.84,0.44,1),
116-
transform 0.5s cubic-bezier(0.165,0.84,0.44,1) 0.15s }
115+
--fade-transition: 0.2s cubic-bezier(0.165,0.84,0.44,1),
116+
transform 0.5s cubic-bezier(0.165,0.84,0.44,1) 0.15s }
117117
$green: lime; $blue: #64ffff; $kudo-depth: .225vw;
118118
$no-select: (
119119
user-select: none, -webkit-user-select: none, -khtml-user-select: none, -moz-user-select: none, -ms-user-select: none,

0 commit comments

Comments
 (0)