Using menu color schema
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / style / layout / containerList.scss
CommitLineData
b8eab696 1.containerList > li {
929f7e47 2 position: relative;
2c623ed6 3 transition: background-color .2s;
b8eab696 4
f216765b
AE
5 @include screen-md-down {
6 padding: 10px 0;
63e2f52f
AE
7 }
8
f216765b
AE
9 @include screen-lg {
10 padding: 20px;
63e2f52f
AE
11 }
12
b8eab696 13 &:not(:last-child) {
e2368a74
MW
14 border-bottom: 1px solid $wcfContentBorderInner;
15 }
16
17 &:first-child {
18 border-top: 1px solid $wcfContentBorder;
19 }
20
21 &:last-child {
22 border-bottom: 1px solid $wcfContentBorder;
b8eab696
AE
23 }
24
929f7e47
MW
25 &:hover {
26 background-color: $wcfTabularBoxBackgroundActive;
27 }
28
b8eab696
AE
29 &.showMore {
30 text-align: center;
929f7e47
MW
31
32 &:hover {
33 background-color: transparent;
34 }
b8eab696
AE
35 }
36
37 .containerHeadline {
38 position: relative;
39
40 > .containerContentType {
e2368a74 41 color: $wcfContentDimmedText;
b8eab696 42 position: absolute;
e2368a74 43 top: 5px;
b8eab696 44 right: 0;
c68fa164
MW
45
46 @include screen-xs {
47 display: none;
48 }
b8eab696
AE
49 }
50 }
929f7e47 51
7dfd5afb
MW
52 &.containerListButtonGroup {
53 text-align: right;
54
55 &:hover {
56 background-color: transparent;
57 }
58
59 > .buttonGroup {
60 display: inline-flex;
61
62 &:not(:first-child) {
63 margin-left: 5px;
64 }
65 }
66 }
67
f5ba6d2c
AE
68 @include screen-md-down {
69 .hasMobileNavigation > .containerHeadline > h3 {
70 padding-right: 30px;
71 }
929f7e47 72
f5ba6d2c
AE
73 .buttonGroupNavigation {
74 position: absolute;
75 right: 0;
76 top: 14px;
929f7e47 77
f5ba6d2c
AE
78 &.open {
79 left: 0;
929f7e47 80
0e18a1e4
AE
81 // dropdown is contained within this element, required to have it stand
82 // above any succeeding siblings
83 z-index: 10;
84
f5ba6d2c
AE
85 > .buttonList {
86 display: block;
87 visibility: visible;
929f7e47 88 }
f5ba6d2c
AE
89 }
90
91 > .dropdownLabel {
92 left: calc(100% - 24px);
93 position: relative;
94 }
95
96 > .buttonList {
9ae45102 97 @include dropdownMenu;
929f7e47 98
f5ba6d2c
AE
99 position: static !important;
100 top: 0;
101
102 > li {
103 .invisible {
104 display: inline;
105 padding-left: 5px;
929f7e47
MW
106 }
107 }
f5ba6d2c
AE
108 }
109 }
110 }
111
112 @include screen-lg {
113 .buttonGroupNavigation {
114 opacity: 0;
115 position: absolute;
116 right: 20px;
063c5fc0 117 top: 15px;
f5ba6d2c
AE
118 transition: opacity .12s;
119
3f1e37b5
AE
120 > .dropdownLabel {
121 display: none;
122 }
123
f5ba6d2c
AE
124 > ul {
125 background-color: $wcfContentBackground;
126 border: 1px solid rgba(0, 0, 0, .15);
127 border-radius: 6px;
929f7e47 128
f5ba6d2c
AE
129 > li {
130 margin-right: 0;
131
132 &:not(:last-child) {
133 border-right: 1px solid rgba(0, 0, 0, .15);
134 }
135
929f7e47 136 > a {
f5ba6d2c
AE
137 display: inline-block;
138 padding: 3px 5px;
139
929f7e47 140 > .icon {
f5ba6d2c
AE
141 color: rgba(0, 0, 0, .5);
142 }
143 }
144
145 &.active,
146 &:hover {
147 > a {
148 > .icon {
149 color: $wcfContentText;
150 }
929f7e47
MW
151 }
152 }
153 }
154 }
155 }
f5ba6d2c
AE
156
157 &:hover .buttonGroupNavigation {
158 opacity: 1;
159 }
929f7e47 160 }
b8eab696
AE
161}
162
163.containerBoxList {
f216765b
AE
164 @include screen-sm-down {
165 &.doubleColumned,
166 &.tripleColumned {
167 > li + li {
168 margin-top: 10px;
169 }
170 }
171 }
172
173 @include screen-md-up {
63e2f52f
AE
174 &.doubleColumned,
175 &.tripleColumned {
176 display: flex;
177 flex-wrap: wrap;
178 margin-bottom: -15px;
95961bdf 179
63e2f52f 180 > li {
95961bdf 181 overflow: hidden;
63e2f52f
AE
182 padding-right: 15px;
183 margin-bottom: 15px;
95961bdf 184
63e2f52f 185 .containerBoxContent {
95961bdf 186 overflow: hidden;
63e2f52f
AE
187
188 h3 {
189 overflow: hidden;
190 text-overflow: ellipsis;
191 white-space: nowrap;
192 }
95961bdf
MW
193 }
194 }
b8eab696 195 }
63e2f52f
AE
196
197 &.doubleColumned > li {
198 flex: 0 0 50%;
199 }
200
201 &.tripleColumned > li {
202 flex: 0 0 calc(100% / 3);
203 /* work-around for IE10 */
204 width: calc(100% / 3);
205 }
b8eab696 206 }
b8eab696 207}
5d8f8836
MW
208
209.recentActivityList {
210 .box48 {
211 max-height: 500px;
212 overflow: hidden;
213 }
214}