File tree Expand file tree Collapse file tree 2 files changed +30
-8
lines changed Expand file tree Collapse file tree 2 files changed +30
-8
lines changed Original file line number Diff line number Diff line change 11{{template "base/head" .}}
22<link rel="stylesheet" href="{{AssetUrlPrefix}}/css/devtest.css?v={{AssetVersion}}">
3- <div class="page-content devtest ui container ">
4- <div>
5- <h1>Flex List</h1>
3+ <div class="page-content devtest">
4+ <div class="ui container" >
5+ <h1 class="gt-border-secondary-bottom" >Flex List (standalone) </h1>
66 <div class="flex-list">
77 <div class="flex-item">
88 <div class="flex-item-leading">
8484 </div>
8585 </div>
8686 </div>
87+
88+ <div class="divider gt-my-0"></div>
89+
90+ <h1>Flex List (with "ui segment")</h1>
91+ <div class="ui attached segment">
92+ <div class="flex-list">
93+ <div class="flex-item">item 1</div>
94+ <div class="flex-item">item 2</div>
95+ </div>
96+ </div>
97+ <div class="ui attached segment">
98+ <h1>Flex List (with "ui segment")</h1>
99+ <div class="flex-list">
100+ <div class="flex-item">item 1</div>
101+ <div class="flex-item">item 2</div>
102+ </div>
103+ </div>
87104 </div>
88105</div>
89106{{template "base/footer" .}}
Original file line number Diff line number Diff line change 66 display : flex;
77 gap : 8px ;
88 align-items : flex-start;
9- }
10-
11- .flex-item : not (: last-child ) {
12- padding-bottom : 8px ;
9+ padding : 1em 0 ;
1310}
1411
1512.flex-item-baseline {
9289
9390.flex-list > .flex-item + .flex-item {
9491 border-top : 1px solid var (--color-secondary );
95- padding-top : 8px ;
92+ }
93+
94+ /* Fomantic UI segment has default "padding: 1em", so here it removes the padding-top and padding-bottom accordingly */
95+ .ui .segment > .flex-list : first-child > .flex-item : first-child {
96+ padding-top : 0 ;
97+ }
98+
99+ .ui .segment > .flex-list : last-child > .flex-item : last-child {
100+ padding-bottom : 0 ;
96101}
You can’t perform that action at this time.
0 commit comments