Skip to content

Commit ad6d27b

Browse files
Merge branch 'master' into US287490-reduce-padding-on-the-pfe-jump-link
2 parents 35832c7 + 5304f20 commit ad6d27b

File tree

15 files changed

+1946
-1295
lines changed

15 files changed

+1946
-1295
lines changed

CHANGELOG-1.x.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# 1.3.4 (TBD)
2+
3+
- [5304f20](https://github.com/patternfly/patternfly-elements/commit/5304f20638db60a7c48028a39b49dfbc42f7acc7) fix: pfe-tabs padding
24
- [](https://github.com/patternfly/patternfly-elements/commit/) fix: reduce padding on the pfe jump link
35

46
# 1.3.3 (2021-03-18)

elements/pfe-tabs/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Add the content for your tab panel here.
4343
Possible values are:
4444
- `wind`: Borders are removed, only an accent colored indicator appears under the active heading.
4545
- `earth`: Headings are encased in a block. The active heading has an accent colored border on one side.
46+
* Note - when using earth with a white background you should set the padding-left, padding-right, and padding-bottom to 0, so it lines up with the wind variant.
4647

4748
```html
4849
<pfe-tabs variant="wind">
@@ -161,6 +162,10 @@ Fires when a selected tab is no longer the selected tab. The `event.detail.tab`
161162
| `--pfe-tabs__indicator--Height` | Tab indicator height | 4px |
162163
| `--pfe-tabs__indicator--Width` | Tab indicator width | 22px |
163164
| `--pfe-tabs__tab--TextTransform` | Tab text transform | none |
165+
| `--pfe-tabs__panel--PaddingTop` | Tab panel padding-top |
166+
| `--pfe-tabs__panel--PaddingRight` | Tab panel padding-right |
167+
| `--pfe-tabs__panel--PaddingBottom` | Tab panel padding-bottom |
168+
| `--pfe-tabs__panel--PaddingLeft` | Tab panel padding-left |
164169

165170
## Test
166171

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
html {
2+
scroll-behavior: smooth;
3+
4+
}
5+
6+
@media screen and (max-width: 899px) {
7+
.toc {
8+
--pfe-card--PaddingTop: 5px;
9+
--pfe-card--PaddingBottom: 5px;
10+
--pfe-card--PaddingLeft: 32px;
11+
}
12+
13+
.toc>a {
14+
display: none;
15+
}
16+
}
17+
18+
@media screen and (min-width: 900px) {
19+
.toc {
20+
position: fixed;
21+
top: 0;
22+
right: 0;
23+
z-index: 5;
24+
}
25+
26+
.scroll-up {
27+
display: none;
28+
}
29+
}
30+
31+
.scroll-up {
32+
border-radius: 3px;
33+
padding: 3px;
34+
background-color: rgba(0, 0, 0, 0.6);
35+
position: fixed;
36+
bottom: 10px;
37+
right: 10px;
38+
}
39+
40+
.scroll-up pfe-icon {
41+
--pfe-icon--Color: #fff;
42+
}
43+
44+
[class^="example"],
45+
section.pfe-l-grid {
46+
margin: 32px 0;
47+
padding: 0 0;
48+
}
49+
50+
@media screen and (min-width: 900px) {
51+
[class^="example"],
52+
section.pfe-l-grid {
53+
margin-right: 385px !important;
54+
}
55+
}
56+
57+
58+
.example>h2 {
59+
text-align: right;
60+
}
61+
section>h2 {
62+
margin-top: 2em;
63+
}
64+
65+
.subheading {
66+
margin: 40px 0 15px;
67+
font-size: 18px;
68+
}
69+
.inner {
70+
margin: 0 0 0 10px;
71+
max-width:1140px;
72+
padding: 50px 20px;
73+
}
74+
.toc {
75+
position: fixed;
76+
top: 0;
77+
right: 0;
78+
z-index: 5;
79+
width: 250px;
80+
background: white;
81+
}
82+
.toc ul {
83+
font-size: 11px;
84+
list-style: disc;
85+
}
86+
@media screen and (max-width: 1240px) {
87+
.toc {
88+
display: none;
89+
}
90+
}
91+
.light-background {
92+
background-color: rgb(252, 250, 244);
93+
--context: light;
94+
}
95+
.dark-background {
96+
background-color: #000;
97+
--context: dark;
98+
}
99+
.saturated-background {
100+
background-color: #006069;
101+
--context: saturated;
102+
}
103+
104+
105+
.floating-card {
106+
float: left;
107+
width: 48%;
108+
margin-right: 2%;
109+
border: #eee solid 1px;
110+
padding: 20px;
111+
}
112+
113+
.form-ui+.form-ui {
114+
margin-top: 5px;
115+
}
116+
117+
pfe-tabs+button {
118+
background-color: #eee;
119+
border: 1px solid #ddd;
120+
padding: 5px 10px;
121+
margin-top: 10px;
122+
}
123+
124+
pfe-tabs+button:hover {
125+
background-color: #ddd;
126+
}
127+
128+
button {
129+
font-size: 16px;
130+
border: 1px solid #ddd;
131+
padding: 5px 10px;
132+
}
133+
134+
.form {
135+
width: fit-content;
136+
margin-top: 10px;
137+
}
138+
139+
button.form-ui {
140+
background-color: #fff;
141+
float: right;
142+
margin-top: 15px;
143+
margin-right: 22px;
144+
}
145+
146+
.form-ui label {
147+
font-weight: bold;
148+
min-width: 60px;
149+
display: block;
150+
float: left;
151+
line-height: 2em;
152+
}
153+
154+
.form-ui input {
155+
height: 2em;
156+
font-size: 1em;
157+
padding: 2px 5px;
158+
}

0 commit comments

Comments
 (0)