Summary Files Commits Branches @commit @diff @stats
path: root / src / mixins.less
diff options
context:
space:
mode:
Commit78de8f1a1f423a86c05f361e87012a8ea1f1211b (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-07-01 15:33:02 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-07-01 15:33:02 +0800
Files4efd8509510b7b831dd665a6273b07ec9cc0da5e /src/mixins.less
Spectre-Dark-Gruvbox-78de8f1a1f423a86c05f361e87012a8ea1f1211b.tar
Spectre-Dark-Gruvbox-78de8f1a1f423a86c05f361e87012a8ea1f1211b.tar.gz
Spectre-Dark-Gruvbox-78de8f1a1f423a86c05f361e87012a8ea1f1211b.zip
Parentef4918530c3d332abbfd4e3076ffc8f9405d4da7 (diff)
IMPORTANT: Replace all rem units to px
1 files changed, 10 insertions, 3 deletions
-rw-r--r--src/mixins.less13
diff --git a/src/mixins.less b/src/mixins.less
index b161e0d..5e5ddda 100644
--- a/src/mixins.less
+++ b/src/mixins.less
@@ -1,4 +1,11 @@
// Mixins
+// Avatar mixin
+.avatar-base(@size: @unit-8) {
+ font-size: @size / 2.2;
+ height: @size;
+ width: @size;
+}
+
// Clearfix mixin
.clearfix() {
&::after {
@@ -10,7 +17,7 @@
// Component focus shadow
.control-shadow(@color: @dark-color) {
- box-shadow: 0 0 0 .2rem fade(@color, 10%);
+ box-shadow: 0 0 0 2px fade(@color, 10%);
}
// Component transition
@@ -29,7 +36,7 @@
border-radius: @border-radius;
display: inline-block;
line-height: 1;
- padding: .3rem .4rem;
+ padding: 3px 4px;
vertical-align: baseline;
}
@@ -40,7 +47,7 @@
// Shadow mixin
.shadow-variant(@offset) {
- box-shadow: 0 @offset (@offset+.1rem)*2 fade(@dark-color, 30%);
+ box-shadow: 0 @offset (@offset+1px)*2 fade(@dark-color, 30%);
}
// Colors mixin