Skip to content

Commit b1059e3

Browse files
author
castastrophe
committed
minor syntax updates
1 parent 0528246 commit b1059e3

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

elements/pfe-sass/mixins/_mixins.scss

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ $pfe-expand_chevron--placement: #{$pfe-expand_button--LineHeight / 2 - $pfe
219219
width: 100%;
220220
height: auto;
221221
font-family: inherit;
222-
font-weight: 700;
222+
font-weight: #{pfe-var(font-weight--bold)};
223223
text-align: left;
224224
cursor: pointer;
225225
z-index: 1;
@@ -237,7 +237,7 @@ $pfe-expand_chevron--placement: #{$pfe-expand_button--LineHeight / 2 - $pfe
237237

238238
&:hover {
239239
outline: none;
240-
border-left-color: #{pfe-local(BorderLeftColor--focus)};
240+
border-left-color: #{pfe-local(BorderLeftColor--focus)};
241241
z-index: 2;
242242
}
243243

@@ -251,15 +251,12 @@ $pfe-expand_chevron--placement: #{$pfe-expand_button--LineHeight / 2 - $pfe
251251
&::-moz-focus-inner {
252252
border: 0;
253253
}
254+
254255
@if $align == right {
255256
padding: #{$pfe-expand_button--padding} #{$pfe-expand_button--padding--wide} #{$pfe-expand_button--padding} 50px;
256257
} @else {
257258
padding: #{$pfe-expand_button--padding} 50px #{$pfe-expand_button--padding} #{$pfe-expand_button--padding--wide};
258259
}
259-
// @TODO later, type scale support
260-
//[scale="large"] & {
261-
// font-size: calc((#{pfe-var(font-size)} * 1.3));
262-
//}
263260
}
264261

265262
@mixin pfe-trigger-button-last($theme: light) {
@@ -300,16 +297,17 @@ $pfe-expand_chevron--placement: #{$pfe-expand_button--LineHeight / 2 - $pfe
300297
@if $theme == dark {
301298
--pfe-#{$component-name}--main: #{pfe-color(surface--darker)};
302299
--pfe-#{$component-name}--aux: #{pfe-color(surface--darkest--text)};
300+
--pfe-#{$component-name}--BorderLeft: #{pfe-var(surface--border-width-heavy)} #{pfe-var(surface--border-style)} #{pfe-color(surface--border-darkest)};
301+
--pfe-#{$component-name}--BorderRight: #{pfe-var(surface--border-width)} #{pfe-var(surface--border-style)} #{pfe-color(surface--border-darkest)};
302+
303303
--pfe-#{$component-name}--BorderLeftColor--focus: #{pfe-color(surface--lightest)};
304-
--pfe-#{$component-name}--BorderLeft: #{pfe-var(surface--border-width-heavy)} #{pfe-var(surface--border-style)} #{pfe-color(surface--border-darkest)};
305-
--pfe-#{$component-name}--BorderRight: #{pfe-var(surface--border-width)} #{pfe-var(surface--border-style)} #{pfe-color(surface--border-darkest)};
306304
}
307305
@else {
308306
--pfe-#{$component-name}--main: #{pfe-color(surface--lightest)};
309307
--pfe-#{$component-name}--aux: #{pfe-color(surface--lightest--text)};
310308
--pfe-#{$component-name}--focus: #{pfe-color(surface--lightest--link)};
311-
--pfe-#{$component-name}--BorderLeft: #{pfe-var(surface--border-width-heavy)} #{pfe-var(surface--border-style)} #{pfe-color(surface--lightest--link)};
312-
--pfe-#{$component-name}--BorderRight: #{pfe-var(surface--border-width)} #{pfe-var(surface--border-style)} #{pfe-color(surface--border--lightest)};
309+
--pfe-#{$component-name}--BorderLeft: #{pfe-var(surface--border-width-heavy)} #{pfe-var(surface--border-style)} #{pfe-color(surface--lightest--link)};
310+
--pfe-#{$component-name}--BorderRight: #{pfe-var(surface--border-width)} #{pfe-var(surface--border-style)} #{pfe-color(surface--border--lightest)};
313311
}
314312
}
315313

@@ -323,8 +321,8 @@ $pfe-expand_chevron--placement: #{$pfe-expand_button--LineHeight / 2 - $pfe
323321
top: calc((#{pfe-var(container-spacer)} * #{$pfe-expand_button--padding--factor}) + #{$pfe-expand_chevron--placement} );
324322
display: block;
325323
border-style: #{pfe-var(surface--border-style)};
326-
height: $pfe-expand_chevron--size;
327-
width: $pfe-expand_chevron--size;
324+
height: #{$pfe-expand_chevron--size};
325+
width: #{$pfe-expand_chevron--size};
328326
text-align: center;
329327
transition: transform 0.15s;
330328
@if $state {

0 commit comments

Comments
 (0)