Skip to content

Commit ae33801

Browse files
committed
Final changes to templates, CSS
Modifies the templates to produce markup for flexbox, and modifies the CSS to setup flexbox for displaying the component list.
1 parent b3aa9c4 commit ae33801

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

docs/book/css/site.css

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,36 @@
88
border-bottom: 0;
99
}
1010

11+
.components {
12+
display: flex;
13+
flex-direction: row;
14+
flex-wrap: wrap;
15+
justify-content: space-between;
16+
align-items: flex-start;
17+
align-content: flex-start;
18+
}
19+
20+
.component {
21+
min-height: 200px;
22+
flex-basis: 48%;
23+
border: 1px solid #CCCCCC;
24+
border-radius: 10px;
25+
margin-bottom: 1em;
26+
padding-top: 0.25em;
27+
padding-bottom: 0.25em;
28+
padding-left: 1em;
29+
padding-right: 1em;
30+
}
31+
1132
.component h4 {
1233
color: #018D74;
1334
font-size: 1.5em;
1435
}
1536

37+
.component h4 a {
38+
color: #018D74;
39+
}
40+
1641
.package {
1742
margin-top: -0.5em;
1843
padding-top: 0;

docs/scripts/prepare_component_list.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
const TEMPLATE = <<< 'EOT'
44
<div class="row">
55
<h2>Components</h2>
6+
</div>
67
8+
<div class="components">
79
%components%
810
</div>
9-
1011
EOT;
1112

1213
const PACKAGE_TEMPLATE = <<< 'EOT'
13-
<div class="component col-xs-12 col-md-6">
14+
<div class="component">
1415
<h4><a href="%href%">%name%</a></h4>
1516
<p class="package">%package%</p>
1617
<p>%description%</p>
1718
</div>
18-
1919
EOT;
2020

2121
$root = realpath(getcwd());

0 commit comments

Comments
 (0)