Skip to content

Commit 16cec3a

Browse files
committed
Core: Elevation typegraphy
1 parent ed41829 commit 16cec3a

2 files changed

Lines changed: 76 additions & 2 deletions

File tree

src/core/components/typography/typography.less

Lines changed: 75 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979
margin-bottom: 0 !important;
8080
}
8181

82-
8382
// Width
8483
.width-auto {
8584
width: auto !important;
@@ -88,6 +87,81 @@
8887
width: 100% !important;
8988
}
9089

90+
// Elevation
91+
.elevation-1 {
92+
.elevation(1) !important;
93+
}
94+
.elevation-2 {
95+
.elevation(2) !important;
96+
}
97+
.elevation-3 {
98+
.elevation(3) !important;
99+
}
100+
.elevation-4 {
101+
.elevation(4) !important;
102+
}
103+
.elevation-5 {
104+
.elevation(5) !important;
105+
}
106+
.elevation-6 {
107+
.elevation(6) !important;
108+
}
109+
.elevation-7 {
110+
.elevation(7) !important;
111+
}
112+
.elevation-8 {
113+
.elevation(8) !important;
114+
}
115+
.elevation-9 {
116+
.elevation(9) !important;
117+
}
118+
.elevation-10 {
119+
.elevation(10) !important;
120+
}
121+
.elevation-11 {
122+
.elevation(11) !important;
123+
}
124+
.elevation-12 {
125+
.elevation(12) !important;
126+
}
127+
.elevation-13 {
128+
.elevation(13) !important;
129+
}
130+
.elevation-14 {
131+
.elevation(14) !important;
132+
}
133+
.elevation-15 {
134+
.elevation(15) !important;
135+
}
136+
.elevation-16 {
137+
.elevation(16) !important;
138+
}
139+
.elevation-17 {
140+
.elevation(17) !important;
141+
}
142+
.elevation-18 {
143+
.elevation(18) !important;
144+
}
145+
.elevation-19 {
146+
.elevation(19) !important;
147+
}
148+
.elevation-20 {
149+
.elevation(20) !important;
150+
}
151+
.elevation-21 {
152+
.elevation(21) !important;
153+
}
154+
.elevation-22 {
155+
.elevation(22) !important;
156+
}
157+
.elevation-23 {
158+
.elevation(23) !important;
159+
}
160+
.elevation-24 {
161+
.elevation(24) !important;
162+
}
163+
164+
91165
& when (@includeIosTheme) {
92166
@import url('./typography-ios.less');
93167
}

src/core/less/mixins.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@
383383
box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);
384384
}
385385
}
386-
.md-elevation(@level:1) {
386+
.elevation(@level:1) {
387387
& when (@level = 1) {
388388
box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
389389
}

0 commit comments

Comments
 (0)