File tree Expand file tree Collapse file tree 2 files changed +23
-9
lines changed
Expand file tree Collapse file tree 2 files changed +23
-9
lines changed Original file line number Diff line number Diff line change 11.blog {
2- article {
3- h2 {
4- font-size : 20px ;
5- margin-bottom : 0 ;
2+ .news {
3+ .local , .remote {
4+ .make-md-column (6 );
5+
6+ article {
7+ h2 {
8+ font-size : 20px ;
9+ margin-bottom : 0 ;
10+ }
11+ h4 {
12+ margin-top : 0 ;
13+ }
14+ }
615 }
7- h4 {
8- margin-top : 0 ;
16+ & .no-local {
17+ .local {
18+ display : none ;
19+ }
20+ .remote {
21+ .make-md-column (12 );
22+ }
923 }
1024 }
1125}
Original file line number Diff line number Diff line change 1515 <h2>News</h2>
1616 </div>
1717
18- <div class="row ">
18+ <div class="news <?php if ( empty ( $ localNews )) { echo ' no-local ' ; } ?> ">
1919
20- <div class="col-md-6 ">
20+ <div class="local ">
2121 <h2>Local News</h2>
2222 <?php foreach ($ localNews as $ item ): ?>
2323 <article>
3434 <?php endforeach ; ?>
3535 </div>
3636
37- <div class="col-md-6 ">
37+ <div class="remote ">
3838 <h2>Campaign News</h2>
3939 <?php foreach ($ remoteNews as $ item ): ?>
4040 <article>
You can’t perform that action at this time.
0 commit comments