Skip to content

Commit 1cf6412

Browse files
committed
set-accordion-placeholders revert change to font size based on header tag
1 parent ede6a4d commit 1cf6412

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

elements/pfe-accordion/demo/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
<head>
44
<meta charset="utf-8">
55
<title>PFElements: pfe-accordion Demo</title>
6+
<!--
67
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap-reboot.css">
78
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/typebase.css/0.5.0/typebase.css">
9+
-->
810
<link rel="stylesheet" href="http://overpass-30e2.kxcdn.com/overpass.css" />
911
<noscript>
1012
<link href="../../pfelement/pfelement-noscript.min.css" rel="stylesheet">

elements/pfe-sass/mixins/_mixins.scss

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -240,18 +240,6 @@ $pfe-expand_button--padding: calc(#{pfe-var(container-spacer)} * #{$pfe-expand_b
240240
button {
241241
-webkit-appearance: button;
242242
}
243-
h2 button {
244-
font-size: calc((#{pfe-var(font-size)} * 1.5));
245-
}
246-
h3 button {
247-
font-size: calc((#{pfe-var(font-size)} * 1.35));
248-
}
249-
h4 button {
250-
font-size: calc((#{pfe-var(font-size)} * 1.2));
251-
}
252-
h5 button {
253-
font-size: calc((#{pfe-var(font-size)} * 1));
254-
}
255243
> * {
256244
margin: 0;
257245
}
@@ -270,6 +258,7 @@ $pfe-expand_button--padding: calc(#{pfe-var(container-spacer)} * #{$pfe-expand_b
270258
height: auto;
271259
font-family: inherit;
272260
font-weight: 700;
261+
font-size: calc((#{pfe-var(font-size)} * 1.1));
273262
line-height: #{pfe-var(line-height)};
274263
text-align: left;
275264
cursor: pointer;
@@ -299,6 +288,9 @@ $pfe-expand_button--padding: calc(#{pfe-var(container-spacer)} * #{$pfe-expand_b
299288
@else {
300289
padding: $pfe-expand_button--padding 50px $pfe-expand_button--padding $pfe-expand_button--padding;
301290
}
291+
//[scale="large"] & { @TODO later, type scale support
292+
// font-size: calc((#{pfe-var(font-size)} * 1.3));
293+
//}
302294
}
303295

304296
@mixin pfe-trigger-button-last($theme: light) {

0 commit comments

Comments
 (0)