@pacem/pacem-theme-less 1.0.0-amaldi
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +191 -0
- package/NOTICE +4 -0
- package/README.md +23 -0
- package/fonts-empty.less +11 -0
- package/pacem/2d/index.less +14 -0
- package/pacem/2d/stage.less +31 -0
- package/pacem/2d/text.less +16 -0
- package/pacem/3d/index.less +24 -0
- package/pacem/3d/stage.less +30 -0
- package/pacem/attributes.less +8 -0
- package/pacem/basic/dock.less +19 -0
- package/pacem/basic/drag-drop.less +75 -0
- package/pacem/basic/index.less +42 -0
- package/pacem/basic/repeater.less +3 -0
- package/pacem/basic/rescale.less +157 -0
- package/pacem/basic/resize.less +3 -0
- package/pacem/basic/scroll-aware.less +4 -0
- package/pacem/basic/swipe.less +22 -0
- package/pacem/basic/viewport-aware.less +4 -0
- package/pacem/body.less +197 -0
- package/pacem/charts/dark/column-line.less +10 -0
- package/pacem/charts/dark/column.less +61 -0
- package/pacem/charts/dark/index.less +9 -0
- package/pacem/charts/dark/line.less +111 -0
- package/pacem/charts/dark/pie.less +210 -0
- package/pacem/charts/dark/shared.less +88 -0
- package/pacem/charts/index.less +1 -0
- package/pacem/charts/light/index.less +2 -0
- package/pacem/charts/phousys/index.less +2 -0
- package/pacem/cms/datagrid-columns.less +41 -0
- package/pacem/cms/grid.less +23 -0
- package/pacem/cms/index.less +3 -0
- package/pacem/cms/shared.less +3 -0
- package/pacem/cms/widget.less +81 -0
- package/pacem/fonts-dark.less +7 -0
- package/pacem/fonts-light.less +7 -0
- package/pacem/fonts-none.less +1 -0
- package/pacem/fonts-phousys.less +8 -0
- package/pacem/fx/fancy.less +138 -0
- package/pacem/fx/gradient.less +21 -0
- package/pacem/fx/hero.less +12 -0
- package/pacem/fx/index.less +6 -0
- package/pacem/fx/list.less +11 -0
- package/pacem/fx/pulse.less +105 -0
- package/pacem/fx/ripple.less +66 -0
- package/pacem/icons.less +76 -0
- package/pacem/layout/animations.less +37 -0
- package/pacem/layout/dark/address.less +37 -0
- package/pacem/layout/dark/borders.less +102 -0
- package/pacem/layout/dark/breadcrumbs.less +85 -0
- package/pacem/layout/dark/cards.less +555 -0
- package/pacem/layout/dark/coloring.less +184 -0
- package/pacem/layout/dark/container.less +50 -0
- package/pacem/layout/dark/datatable.less +454 -0
- package/pacem/layout/dark/elevation.less +74 -0
- package/pacem/layout/dark/fetch-feedback.less +124 -0
- package/pacem/layout/dark/grid-system.less +181 -0
- package/pacem/layout/dark/grids.less +268 -0
- package/pacem/layout/dark/index.less +27 -0
- package/pacem/layout/dark/interactive.less +10 -0
- package/pacem/layout/dark/layout.less +616 -0
- package/pacem/layout/dark/lists.less +112 -0
- package/pacem/layout/dark/other.less +29 -0
- package/pacem/layout/dark/panels.less +299 -0
- package/pacem/layout/dark/positioning.less +273 -0
- package/pacem/layout/dark/scroll.less +93 -0
- package/pacem/layout/dark/shapes.less +22 -0
- package/pacem/layout/dark/sizing.less +108 -0
- package/pacem/layout/dark/spacing.less +296 -0
- package/pacem/layout/dark/superposition-system.less +116 -0
- package/pacem/layout/dark/tiles.less +71 -0
- package/pacem/layout/dark/tokens-chips.less +16 -0
- package/pacem/layout/dark/toolbar.less +32 -0
- package/pacem/layout/dark/typography.less +110 -0
- package/pacem/layout/dark/visibility.less +406 -0
- package/pacem/layout/index.less +2 -0
- package/pacem/layout/light/index.less +2 -0
- package/pacem/layout/light/layout.less +2 -0
- package/pacem/layout/mixins.less +445 -0
- package/pacem/layout/phousys/index.less +2 -0
- package/pacem/layout/phousys/layout.less +2 -0
- package/pacem/layout/shared.less +18 -0
- package/pacem/logging/console.less +3 -0
- package/pacem/logging/fps.less +6 -0
- package/pacem/logging/index.less +2 -0
- package/pacem/maps/index.less +21 -0
- package/pacem/media/dark/index.less +6 -0
- package/pacem/media/index.less +1 -0
- package/pacem/media/light/index.less +2 -0
- package/pacem/media/phousys/index.less +2 -0
- package/pacem/pacem-animations.less +202 -0
- package/pacem/pacem.less +448 -0
- package/pacem/palette-dark.less +0 -0
- package/pacem/palette-light.less +0 -0
- package/pacem/plus/carousel.less +370 -0
- package/pacem/plus/context-menu.less +31 -0
- package/pacem/plus/datagrid/datacell.less +10 -0
- package/pacem/plus/datagrid/headcell.less +32 -0
- package/pacem/plus/datagrid/index.less +48 -0
- package/pacem/plus/edit.less +42 -0
- package/pacem/plus/gallery.less +239 -0
- package/pacem/plus/index.less +7 -0
- package/pacem/plus/modal-form.less +27 -0
- package/pacem/plus/router-hash-state.less +6 -0
- package/pacem/reset.less +51 -0
- package/pacem/scaffolding/dark/calendar-picker.less +415 -0
- package/pacem/scaffolding/dark/char-counter.less +68 -0
- package/pacem/scaffolding/dark/chars.less +29 -0
- package/pacem/scaffolding/dark/checkbox-radio-shared.less +150 -0
- package/pacem/scaffolding/dark/checkbox.less +232 -0
- package/pacem/scaffolding/dark/childform.less +191 -0
- package/pacem/scaffolding/dark/color.less +128 -0
- package/pacem/scaffolding/dark/contenteditable/alignment.less +6 -0
- package/pacem/scaffolding/dark/contenteditable/dashboard.less +253 -0
- package/pacem/scaffolding/dark/contenteditable/index.less +4 -0
- package/pacem/scaffolding/dark/contenteditable/picture.less +74 -0
- package/pacem/scaffolding/dark/contenteditable/placeholder.less +24 -0
- package/pacem/scaffolding/dark/contenteditable.less +157 -0
- package/pacem/scaffolding/dark/datepicker.less +129 -0
- package/pacem/scaffolding/dark/dialog-overrides.less +32 -0
- package/pacem/scaffolding/dark/element-picker.less +11 -0
- package/pacem/scaffolding/dark/expression.less +34 -0
- package/pacem/scaffolding/dark/form.less +16 -0
- package/pacem/scaffolding/dark/formfield.less +1149 -0
- package/pacem/scaffolding/dark/geolocate.less +12 -0
- package/pacem/scaffolding/dark/hierarchy.less +82 -0
- package/pacem/scaffolding/dark/image.less +195 -0
- package/pacem/scaffolding/dark/index.less +57 -0
- package/pacem/scaffolding/dark/input.less +134 -0
- package/pacem/scaffolding/dark/latlng.less +163 -0
- package/pacem/scaffolding/dark/markdown.less +20 -0
- package/pacem/scaffolding/dark/namevalue-list.less +13 -0
- package/pacem/scaffolding/dark/number.less +12 -0
- package/pacem/scaffolding/dark/password.less +12 -0
- package/pacem/scaffolding/dark/property-picker.less +11 -0
- package/pacem/scaffolding/dark/radio.less +78 -0
- package/pacem/scaffolding/dark/search.less +29 -0
- package/pacem/scaffolding/dark/select.less +55 -0
- package/pacem/scaffolding/dark/slider.less +176 -0
- package/pacem/scaffolding/dark/snapshot.less +183 -0
- package/pacem/scaffolding/dark/suggest.less +115 -0
- package/pacem/scaffolding/dark/tags.less +149 -0
- package/pacem/scaffolding/dark/tel.less +11 -0
- package/pacem/scaffolding/dark/textarea.less +29 -0
- package/pacem/scaffolding/dark/upload.less +252 -0
- package/pacem/scaffolding/dark/url.less +9 -0
- package/pacem/scaffolding/dark/validators.less +36 -0
- package/pacem/scaffolding/index.less +2 -0
- package/pacem/scaffolding/light/index.less +2 -0
- package/pacem/scaffolding/phousys/index.less +2 -0
- package/pacem/scaffolding/shared.less +249 -0
- package/pacem/text-overrides.less +219 -0
- package/pacem/theme-dark.less +676 -0
- package/pacem/theme-light.less +119 -0
- package/pacem/theme-phousys-old.less +130 -0
- package/pacem/theme-phousys.less +153 -0
- package/pacem/transforms/index.less +7 -0
- package/pacem/ui/dark/anchor.less +45 -0
- package/pacem/ui/dark/balloon.less +566 -0
- package/pacem/ui/dark/binder.less +50 -0
- package/pacem/ui/dark/blade.less +110 -0
- package/pacem/ui/dark/body.less +5 -0
- package/pacem/ui/dark/bottom-sheet.less +69 -0
- package/pacem/ui/dark/button.less +716 -0
- package/pacem/ui/dark/calendar.less +660 -0
- package/pacem/ui/dark/collapse.less +23 -0
- package/pacem/ui/dark/dialog.less +17 -0
- package/pacem/ui/dark/divider.less +49 -0
- package/pacem/ui/dark/header-footer.less +5 -0
- package/pacem/ui/dark/icon.less +141 -0
- package/pacem/ui/dark/image.less +90 -0
- package/pacem/ui/dark/index.less +82 -0
- package/pacem/ui/dark/infinite-scroller.less +5 -0
- package/pacem/ui/dark/led.less +142 -0
- package/pacem/ui/dark/lightbox.less +140 -0
- package/pacem/ui/dark/loader.less +219 -0
- package/pacem/ui/dark/markdown.less +292 -0
- package/pacem/ui/dark/marquee.less +49 -0
- package/pacem/ui/dark/menu.less +578 -0
- package/pacem/ui/dark/pager.less +166 -0
- package/pacem/ui/dark/picture.less +146 -0
- package/pacem/ui/dark/progressbar.less +167 -0
- package/pacem/ui/dark/sidebar.less +144 -0
- package/pacem/ui/dark/slideshow.less +1 -0
- package/pacem/ui/dark/social.less +5 -0
- package/pacem/ui/dark/sticky-header.less +41 -0
- package/pacem/ui/dark/tabs.less +423 -0
- package/pacem/ui/dark/ticker.less +173 -0
- package/pacem/ui/dark/timeline.less +159 -0
- package/pacem/ui/dark/toast.less +232 -0
- package/pacem/ui/dark/toc.less +47 -0
- package/pacem/ui/dark/tuner.less +155 -0
- package/pacem/ui/dark/view.less +17 -0
- package/pacem/ui/dark/window.less +313 -0
- package/pacem/ui/dialog-vars.less +159 -0
- package/pacem/ui/index.less +1 -0
- package/pacem/ui/light/button.less +8 -0
- package/pacem/ui/light/index.less +3 -0
- package/pacem/ui/light/loader.less +2 -0
- package/pacem/ui/light/menu.less +2 -0
- package/pacem/ui/light/sidebar.less +2 -0
- package/pacem/ui/phousys/button.less +8 -0
- package/pacem/ui/phousys/index.less +3 -0
- package/pacem/ui/phousys/loader.less +2 -0
- package/pacem/ui/phousys/menu.less +2 -0
- package/pacem/ui/phousys/sidebar.less +2 -0
- package/pacem/ui/shared.less +125 -0
- package/package.json +39 -0
- package/shared.less +161 -0
- package/theme-empty.less +116 -0
- package/themebuilder.js +290 -0
|
@@ -0,0 +1,555 @@
|
|
|
1
|
+
@import "../mixins";
|
|
2
|
+
|
|
3
|
+
@_card_ribbon_padding: 2 * @grid_spacing / 3;
|
|
4
|
+
@_radius: @border_card_radius;
|
|
5
|
+
@_h_height: @grid_spacing * 3.5 + @grid_cell;
|
|
6
|
+
|
|
7
|
+
.@{PCSS}-card {
|
|
8
|
+
.Panel(card);
|
|
9
|
+
display: grid;
|
|
10
|
+
grid-template-columns: auto 1fr auto;
|
|
11
|
+
//grid-template-rows: minmax(@_h_height,auto) auto auto;
|
|
12
|
+
grid-template-rows: minmax(@_h_height, 1fr) repeat(3, auto);
|
|
13
|
+
grid-template-areas: 'ribbon ribbon ribbon' 'heading heading heading' 'body body body' 'footer footer footer';
|
|
14
|
+
|
|
15
|
+
> .card-heading,
|
|
16
|
+
> .card-tools,
|
|
17
|
+
> .card-body,
|
|
18
|
+
> .card-footer {
|
|
19
|
+
order: 1;
|
|
20
|
+
z-index: 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
> .card-body {
|
|
24
|
+
grid-area: body;
|
|
25
|
+
//padding-top: @grid_spacing/2;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
> .card-heading {
|
|
29
|
+
grid-area: heading;
|
|
30
|
+
box-sizing: border-box; /*
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: flex-end;
|
|
33
|
+
justify-content: flex-start;*/
|
|
34
|
+
//height: @_h_height;
|
|
35
|
+
// align-self: end;
|
|
36
|
+
//display: block;
|
|
37
|
+
text-align: center;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
> .card-img when (@shadows = true) {
|
|
41
|
+
box-shadow: inset 0 -@grid_spacing/8 @grid_spacing rgba(0,0,0,0.5);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
> .card-heading when (@shadows = false) {
|
|
45
|
+
color: #fff;
|
|
46
|
+
text-shadow: 1px 1px 2px rgba(0,0,0,0.75);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
> .card-img {
|
|
51
|
+
grid-column: ~"1 / -1";
|
|
52
|
+
grid-row: ~"1 / 3";
|
|
53
|
+
order: 0;
|
|
54
|
+
z-index: 0;
|
|
55
|
+
height: 100%;
|
|
56
|
+
width: 100%;
|
|
57
|
+
top: 0;
|
|
58
|
+
left: 0;
|
|
59
|
+
position: absolute;
|
|
60
|
+
border-top-left-radius: @_radius;
|
|
61
|
+
border-top-right-radius: @_radius;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
|
|
64
|
+
&.img-auto {
|
|
65
|
+
position: static;
|
|
66
|
+
height: auto;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&.img-top {
|
|
70
|
+
grid-row: ~"1 / 2";
|
|
71
|
+
|
|
72
|
+
& ~ .card-heading {
|
|
73
|
+
text-shadow: none;
|
|
74
|
+
color: inherit;
|
|
75
|
+
text-align: start;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
> .card-ribbon {
|
|
81
|
+
grid-area: ribbon;
|
|
82
|
+
order: 2;
|
|
83
|
+
z-index: 2;
|
|
84
|
+
align-self: center;
|
|
85
|
+
justify-self: center;
|
|
86
|
+
margin-top: @grid_spacing * 2;
|
|
87
|
+
margin-bottom: @grid_spacing;
|
|
88
|
+
margin-right: 2*@grid_spacing/3;
|
|
89
|
+
margin-left: $margin-right;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
> .card-img.img-top {
|
|
93
|
+
& ~ .card-ribbon {
|
|
94
|
+
margin-bottom: 2 * @grid_spacing;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
> .card-tools {
|
|
99
|
+
// top: @grid_spacing/1.5;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
> .card-footer {
|
|
103
|
+
grid-area: footer;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
> .card-tools {
|
|
107
|
+
grid-column: 3;
|
|
108
|
+
grid-row: 1;
|
|
109
|
+
padding: @panel_spacing;
|
|
110
|
+
// reset
|
|
111
|
+
position: static;
|
|
112
|
+
// override
|
|
113
|
+
align-self: start;
|
|
114
|
+
display: flex;
|
|
115
|
+
flex-direction: row;
|
|
116
|
+
flex-wrap: nowrap;
|
|
117
|
+
align-items: center;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.@{PCSS}-card.card-full {
|
|
122
|
+
grid-template-areas: 'ribbon ribbon tools' 'ribbon ribbon .' 'heading heading heading' 'body body body' 'footer footer footer';
|
|
123
|
+
min-height: @_h_height;
|
|
124
|
+
grid-template-rows: auto 1fr repeat(3, auto);
|
|
125
|
+
|
|
126
|
+
> .card-img {
|
|
127
|
+
position: absolute;
|
|
128
|
+
height: 100%;
|
|
129
|
+
width: 100%;
|
|
130
|
+
box-shadow: none;
|
|
131
|
+
grid-row: ~"1 / -1";
|
|
132
|
+
border-bottom-left-radius: @_radius;
|
|
133
|
+
border-bottom-right-radius: @_radius;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
> .card-heading {
|
|
137
|
+
height: @_h_height;
|
|
138
|
+
display: flex;
|
|
139
|
+
align-items: flex-end;
|
|
140
|
+
text-align: start;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
> .card-body,
|
|
144
|
+
> .card-footer {
|
|
145
|
+
color: rgba(255,255,255,0.8);
|
|
146
|
+
text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
> .card-ribbon {
|
|
150
|
+
margin: 0;
|
|
151
|
+
grid-area: unset;
|
|
152
|
+
position: absolute;
|
|
153
|
+
left: @_card_ribbon_padding;
|
|
154
|
+
top: $left;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.CardSide() {
|
|
159
|
+
display: grid;
|
|
160
|
+
|
|
161
|
+
> .card-ribbon {
|
|
162
|
+
margin: 0;
|
|
163
|
+
grid-area: unset;
|
|
164
|
+
position: absolute;
|
|
165
|
+
left: @_card_ribbon_padding;
|
|
166
|
+
top: $left;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
> .card-heading {
|
|
170
|
+
grid-area: heading;
|
|
171
|
+
text-align: start;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
> .card-body {
|
|
175
|
+
grid-area: body;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
> .card-footer {
|
|
179
|
+
grid-area: footer;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
> .card-img {
|
|
183
|
+
position: relative;
|
|
184
|
+
grid-area: img;
|
|
185
|
+
height: 100%;
|
|
186
|
+
//display: block;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.card-img {
|
|
190
|
+
border-top-left-radius: @_radius;
|
|
191
|
+
border-top-right-radius: 0;
|
|
192
|
+
border-bottom-left-radius: @_radius;
|
|
193
|
+
border-bottom-right-radius: 0;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.card-img when (@shadows = true) {
|
|
197
|
+
box-shadow: inset -@grid_spacing/8 0 @grid_spacing rgba(0,0,0,0.5);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.card-heading {
|
|
201
|
+
box-sizing: border-box;
|
|
202
|
+
padding-top: 2 * @grid_spacing / 3;
|
|
203
|
+
height: auto;
|
|
204
|
+
text-align: start;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.card-heading when (@shadows = false) {
|
|
208
|
+
color: inherit;
|
|
209
|
+
text-shadow: none;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.card-tools {
|
|
213
|
+
grid-area: tools;
|
|
214
|
+
align-self: center;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.CardLeft() {
|
|
219
|
+
grid-template-columns: 33% 1fr auto;
|
|
220
|
+
grid-template-rows: auto 1fr auto;
|
|
221
|
+
grid-template-areas: 'img heading tools' 'img body body' 'img footer footer';
|
|
222
|
+
|
|
223
|
+
.card-img {
|
|
224
|
+
border-top-left-radius: @_radius;
|
|
225
|
+
border-top-right-radius: 0;
|
|
226
|
+
border-bottom-left-radius: @_radius;
|
|
227
|
+
border-bottom-right-radius: 0;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&.card-img-wide {
|
|
231
|
+
grid-template-columns: 50% 1fr auto;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
&.card-img-slim {
|
|
235
|
+
grid-template-columns: 25% 1fr auto;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.CardRight() {
|
|
240
|
+
grid-template-columns: 1fr auto 33%;
|
|
241
|
+
grid-template-rows: auto 1fr auto;
|
|
242
|
+
grid-template-areas: 'heading tools img' 'body body img' 'footer footer img';
|
|
243
|
+
|
|
244
|
+
.card-img {
|
|
245
|
+
border-top-left-radius: 0;
|
|
246
|
+
border-top-right-radius: @_radius;
|
|
247
|
+
border-bottom-left-radius: 0;
|
|
248
|
+
border-bottom-right-radius: @_radius;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.card-ribbon {
|
|
252
|
+
right: @_card_ribbon_padding;
|
|
253
|
+
left: inherit;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
&.card-img-wide {
|
|
257
|
+
grid-template-columns: 1fr auto 50%;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
&.card-img-slim {
|
|
261
|
+
grid-template-columns: 1fr auto 25%;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/* #region RIBBON */
|
|
266
|
+
.CardRibbonSize(@_size) {
|
|
267
|
+
width: @_size;
|
|
268
|
+
@_brd: floor(@_size / 11.5);
|
|
269
|
+
|
|
270
|
+
&.ribbon-border,
|
|
271
|
+
&.border {
|
|
272
|
+
border: @_brd solid fade( /*@color_default*/ #fff, 50);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
&.ribbon-rise,
|
|
276
|
+
&.rise {
|
|
277
|
+
box-shadow: 0 2px @_brd rgba(0,0,0,.5);
|
|
278
|
+
|
|
279
|
+
& when (@gradients = true) {
|
|
280
|
+
//box-shadow: 0 2px @grid_spacing/3 rgba(0,0,0,.5), inset 0 -@grid_spacing/4 @grid_spacing * 4/3 rgba(0,0,0,0.25);
|
|
281
|
+
&.ribbon-border,
|
|
282
|
+
&.border {
|
|
283
|
+
box-shadow: 0 2px @_brd rgba(0,0,0,.5), inset 0 @_brd / 2 round(@_size / 4) rgba(0,0,0,0.5);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.CardRibbon(@_size) {
|
|
290
|
+
aspect-ratio: ~"1 / 1";
|
|
291
|
+
.CardRibbonSize(@_size);
|
|
292
|
+
display: flex;
|
|
293
|
+
align-items: center;
|
|
294
|
+
justify-content: center;
|
|
295
|
+
overflow: hidden;
|
|
296
|
+
box-sizing: border-box;
|
|
297
|
+
|
|
298
|
+
&.ribbon-offset {
|
|
299
|
+
top: -@grid_spacing/4 !important;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.CardRibbon() {
|
|
304
|
+
.CardRibbon(@grid_cell + @grid_spacing * 2 / 3);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.@{PCSS}-card > .card-ribbon {
|
|
308
|
+
/*position: absolute;
|
|
309
|
+
z-index: 2;*/
|
|
310
|
+
.CardRibbon();
|
|
311
|
+
// avoid declaring default colors, since they will override any fill-specific classes for the ribbon (e.g. 'fill-primary-container').
|
|
312
|
+
/*background-color: ~"var(--@{PCSS}-color-background)";
|
|
313
|
+
color: ~"var(--@{PCSS}-color-default)";*/
|
|
314
|
+
|
|
315
|
+
&:not(.shape-circle,.shape-square) {
|
|
316
|
+
border-radius: @_radius;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
&.accent,
|
|
320
|
+
&.ribbon-accent {
|
|
321
|
+
background-color: @color_accent;
|
|
322
|
+
color: @color_accent_inv;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
&.danger,
|
|
326
|
+
&.ribbon-danger {
|
|
327
|
+
background-color: @color_danger;
|
|
328
|
+
color: @color_danger_inv;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
&.primary,
|
|
332
|
+
&.ribbon-primary {
|
|
333
|
+
background-color: @color_primary;
|
|
334
|
+
color: @color_primary_inv;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
&.success,
|
|
338
|
+
&.ribbon-success {
|
|
339
|
+
background-color: @color_success;
|
|
340
|
+
color: @color_success_inv;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
&.ribbon-invert {
|
|
344
|
+
background-color: @color_default;
|
|
345
|
+
color: @color_default_inv;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
&.ribbon-disabled {
|
|
349
|
+
background-color: @color_disabled;
|
|
350
|
+
color: @color_disabled_inv;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
&.ribbon-default {
|
|
354
|
+
background-color: @color_default_inv;
|
|
355
|
+
color: @color_default;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
&.warning,
|
|
359
|
+
&.ribbon-warning {
|
|
360
|
+
background-color: @color_warning;
|
|
361
|
+
color: @color_warning_inv;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
&.circular,
|
|
365
|
+
&.ribbon-circle {
|
|
366
|
+
border-radius: 50%;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
&.ribbon-small,
|
|
370
|
+
&.ribbon-md {
|
|
371
|
+
.CardRibbonSize(@grid_cell);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
&.ribbon-smaller,
|
|
375
|
+
&.ribbon-sm {
|
|
376
|
+
.CardRibbonSize(@grid_spacing * 2);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
&.ribbon-tiny,
|
|
380
|
+
&.ribbon-xs {
|
|
381
|
+
.CardRibbonSize(@grid_spacing);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
&.ribbon-lg {
|
|
385
|
+
.CardRibbonSize(128px);
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
&.ribbon-xl {
|
|
389
|
+
.CardRibbonSize(192px);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
/* #endregion */
|
|
393
|
+
|
|
394
|
+
/*#region ANCHOR/BUTTON-FIXES*/
|
|
395
|
+
.@{PCSS}-card {
|
|
396
|
+
@{P}-button,
|
|
397
|
+
.@{PCSS}-button {
|
|
398
|
+
text-shadow: none;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
@{P}-a.@{PCSS}-card {
|
|
403
|
+
position: relative;
|
|
404
|
+
color: @color_default;
|
|
405
|
+
|
|
406
|
+
.card-body, .card-heading, .card-footer {
|
|
407
|
+
//z-index: 1;
|
|
408
|
+
position: relative;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.card-img {
|
|
412
|
+
//z-index: 0;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.card-ribbon {
|
|
416
|
+
//z-index: 2;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/*#endregion*/
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
.@{PCSS}-card.card-left {
|
|
424
|
+
.CardSide();
|
|
425
|
+
.CardLeft();
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.@{PCSS}-card.card-right {
|
|
429
|
+
.CardSide();
|
|
430
|
+
.CardRight();
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
@media (max-width: @threshold_sm - 1) {
|
|
434
|
+
|
|
435
|
+
.@{PCSS}-card.card-xs-left {
|
|
436
|
+
.CardSide();
|
|
437
|
+
.CardLeft();
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.@{PCSS}-card.card-xs-right {
|
|
441
|
+
.CardSide();
|
|
442
|
+
.CardRight();
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
@media (min-width: @threshold_sm) {
|
|
447
|
+
|
|
448
|
+
.@{PCSS}-card.card-sm-left {
|
|
449
|
+
.CardSide();
|
|
450
|
+
.CardLeft();
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.@{PCSS}-card.card-sm-right {
|
|
454
|
+
.CardSide();
|
|
455
|
+
.CardRight();
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
@media (min-width: @threshold_md) {
|
|
460
|
+
|
|
461
|
+
.@{PCSS}-card.card-md-left {
|
|
462
|
+
.CardSide();
|
|
463
|
+
.CardLeft();
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.@{PCSS}-card.card-md-right {
|
|
467
|
+
.CardSide();
|
|
468
|
+
.CardRight();
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
@media (min-width: @threshold_lg) {
|
|
473
|
+
|
|
474
|
+
.@{PCSS}-card.card-lg-left {
|
|
475
|
+
.CardSide();
|
|
476
|
+
.CardLeft();
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.@{PCSS}-card.card-lg-right {
|
|
480
|
+
.CardSide();
|
|
481
|
+
.CardRight();
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
@media (min-width: @threshold_xl) {
|
|
486
|
+
|
|
487
|
+
.@{PCSS}-card.card-xl-left {
|
|
488
|
+
.CardSide();
|
|
489
|
+
.CardLeft();
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.@{PCSS}-card.card-xl-right {
|
|
493
|
+
.CardSide();
|
|
494
|
+
.CardRight();
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
@media (min-width: @threshold_hd) {
|
|
499
|
+
|
|
500
|
+
.@{PCSS}-card.card-hd-left {
|
|
501
|
+
.CardSide();
|
|
502
|
+
.CardLeft();
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.@{PCSS}-card.card-hd-right {
|
|
506
|
+
.CardSide();
|
|
507
|
+
.CardRight();
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
@media (min-width: @threshold_2k) {
|
|
512
|
+
|
|
513
|
+
.@{PCSS}-card.card-2k-left {
|
|
514
|
+
.CardSide();
|
|
515
|
+
.CardLeft();
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
.@{PCSS}-card.card-2k-right {
|
|
519
|
+
.CardSide();
|
|
520
|
+
.CardRight();
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
@media (min-width: @threshold_4k) {
|
|
525
|
+
|
|
526
|
+
.@{PCSS}-card.card-4k-left {
|
|
527
|
+
.CardSide();
|
|
528
|
+
.CardLeft();
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.@{PCSS}-card.card-4k-right {
|
|
532
|
+
.CardSide();
|
|
533
|
+
.CardRight();
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
@media (orientation: portrait) {
|
|
538
|
+
|
|
539
|
+
.@{PCSS}-card.card-v-left {
|
|
540
|
+
.CardSide();
|
|
541
|
+
.CardLeft();
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
.@{PCSS}-card.card-v-right {
|
|
545
|
+
.CardSide();
|
|
546
|
+
.CardRight();
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
.@{PCSS}-body {
|
|
551
|
+
&.@{PCSS}-anim,
|
|
552
|
+
&.@{PCSS}-animations {
|
|
553
|
+
.PanelRiseAnim(card);
|
|
554
|
+
}
|
|
555
|
+
}
|