Skip to content

Commit de0ef5e

Browse files
authored
[A11y] Modified homepage circuit board labels to accommodate text spacing (#9059)
* [A11y] Adjusted homepage circuit board label sizes to accomodate text spacing * Widened package downloads label container * Reduced width of some containers to avoid unnecessary whitespace * Made elements use padding to expand, anchored labels to account for expansion, moved unique packages label down to allow more space once labels expand
1 parent 00606e5 commit de0ef5e

3 files changed

Lines changed: 842 additions & 21 deletions

File tree

src/Bootstrap/dist/css/bootstrap-theme.css

Lines changed: 9 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Bootstrap/less/theme/page-home.less

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
.circuit-board {
4343
margin-top: 20px;
44-
width: 768px;
44+
width: 900px;
4545
height: 396px;
4646
position: relative;
4747
margin: 0 auto;
@@ -52,6 +52,8 @@
5252
.circuit-board-label {
5353
position: absolute;
5454
height: 75px;
55+
padding-left: 25px;
56+
padding-right: 25px;
5557
background-color: #fff;
5658
color: @text-color;
5759
box-shadow: 0 0 3px black;
@@ -62,35 +64,32 @@
6264
}
6365

6466
.circuit-board-pd {
65-
left: 377px;
67+
left: 443px;
6668
top: 10px;
6769
float: left;
68-
width: 230px;
6970

7071
&.triangle:after {
7172
left: 20px;
7273
}
7374
}
7475

7576
.circuit-board-pv {
76-
left: 0;
77+
right: 675px;
7778
top: 63px;
7879
float: left;
79-
width: 144px;
8080

8181
&.triangle:after {
82-
right: 30px;
82+
right: 45px;
8383
}
8484
}
8585

8686
.circuit-board-up {
87-
right: 0;
88-
top: 87px;
87+
left: 675px;
88+
top: 105px;
8989
float: right;
90-
width: 144px;
9190

9291
&.triangle:after {
93-
left: 30px;
92+
left: 45px;
9493
}
9594
}
9695
}

0 commit comments

Comments
 (0)