Browse code
prettified subscription list
fiddlerwoaroof authored on 21/10/2015 01:50:09
Showing 2 changed files
Showing 2 changed files
... | ... |
@@ -48,6 +48,10 @@ html { |
48 | 48 |
|
49 | 49 |
* { |
50 | 50 |
box-sizing: border-box; |
51 |
+ -webkit-font-feature-settings: 'kern' 1, 'liga' 1; |
|
52 |
+ -moz-font-feature-settings: 'kern' 1; |
|
53 |
+ -o-font-feature-settings: 'kern' 1; |
|
54 |
+ text-rendering: geometricPrecision; |
|
51 | 55 |
} |
52 | 56 |
|
53 | 57 |
body { |
... | ... |
@@ -115,6 +119,8 @@ img { |
115 | 119 |
|
116 | 120 |
.identicon { |
117 | 121 |
border-radius: 50%; |
122 |
+ /*border: thin solid #888;*/ |
|
123 |
+ box-shadow: 0em 0em 0.1em black; |
|
118 | 124 |
vertical-align: middle; |
119 | 125 |
} |
120 | 126 |
|
... | ... |
@@ -134,9 +140,41 @@ img { |
134 | 140 |
width: 9em; |
135 | 141 |
} |
136 | 142 |
|
143 |
+.filter-form { |
|
144 |
+ padding-bottom: 0px; |
|
145 |
+} |
|
146 |
+ |
|
137 | 147 |
ul.subscription-list { |
138 | 148 |
text-align: center; |
139 |
- /*background: #eee;*/ |
|
149 |
+ position: relative; |
|
150 |
+ background: #888; |
|
151 |
+ /*text-shadow: 0em 0em 0.1em black;*/ |
|
152 |
+ /*color: white; */ |
|
153 |
+ border: thin solid black; |
|
154 |
+ padding: 0.75em 1.5em; |
|
155 |
+ max-height: 1.5em; |
|
156 |
+ overflow: hidden; |
|
157 |
+ transition: max-height 1.5s ease, padding 1.5s ease; |
|
158 |
+} |
|
159 |
+ |
|
160 |
+ul.subscription-list.opened { |
|
161 |
+ max-height: 12em; |
|
162 |
+ padding-bottom: 2.5em; |
|
163 |
+} |
|
164 |
+ |
|
165 |
+ul.subscription-list > .list-control { |
|
166 |
+ position: absolute; |
|
167 |
+ width: 100%; |
|
168 |
+ bottom: 0px; |
|
169 |
+ left: 0px; |
|
170 |
+ height: 1.5em; |
|
171 |
+ background: #888; |
|
172 |
+ color: white; |
|
173 |
+ cursor: pointer; |
|
174 |
+} |
|
175 |
+ul.subscription-list > .list-control:hover { |
|
176 |
+ background-color: #ccc; |
|
177 |
+ /*color: black;*/ |
|
140 | 178 |
} |
141 | 179 |
|
142 | 180 |
ul.subscription-list::after { |
... | ... |
@@ -2,8 +2,8 @@ |
2 | 2 |
<h2 class="section-title"> |
3 | 3 |
{{bone.sectionTitle}} ({{filtered.length}} items) |
4 | 4 |
</h2> |
5 |
- <form> |
|
6 |
- <ul class="subscription-list"> |
|
5 |
+ <form class="filter-form"> |
|
6 |
+ <ul ng-class="{'subscription-list': true, 'opened': opened}"> |
|
7 | 7 |
<li class="sub-filter"> |
8 | 8 |
<input id="sub-all" type="checkbox" ng-model="friend.all" ng-click="uncheckOthers(friend)"></input> |
9 | 9 |
<label for="sub-all">[All]</label> |
... | ... |
@@ -15,6 +15,10 @@ |
15 | 15 |
<span class="wide">{{name}}</span> |
16 | 16 |
</label> |
17 | 17 |
</li> |
18 |
+ <div class="list-control" ng-click="opened = ! opened"> |
|
19 |
+ <span ng-if="opened">Hide . . .</span> |
|
20 |
+ <span ng-if="!opened">Filter . . .</span> |
|
21 |
+ </div> |
|
18 | 22 |
</ul> |
19 | 23 |
</form> |
20 | 24 |
<ul class="bone-list"> |