Summary Files Commits Branches @commit @diff @stats
path: root / src / utilities.less
diff options
context:
space:
mode:
Commite52803f4b3dd29d2e657b257d365aaad5c426f1a (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2016-03-10 19:12:59 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2016-03-10 19:12:59 +0800
Filesc3ff9863af9611085bc9642455adde1a16fa215c /src/utilities.less
Spectre-Dark-Gruvbox-e52803f4b3dd29d2e657b257d365aaad5c426f1a.tar
Spectre-Dark-Gruvbox-e52803f4b3dd29d2e657b257d365aaad5c426f1a.tar.gz
Spectre-Dark-Gruvbox-e52803f4b3dd29d2e657b257d365aaad5c426f1a.zip
Parent538179d4030add5942f793e8159d92ce88e09fbc (diff)
update typography style
1 files changed, 102 insertions, 0 deletions
-rw-r--r--src/utilities.less102
diff --git a/src/utilities.less b/src/utilities.less
new file mode 100644
index 0000000..775fe58
--- /dev/null
+++ b/src/utilities.less
@@ -0,0 +1,102 @@
+/* Position */
+.clearfix {
+ &:before,
+ &:after {
+ content: " "; // 1
+ display: table; // 2
+ }
+ &:after {
+ clear: both;
+ }
+}
+.pull-left {
+ float: left !important;
+}
+.pull-right {
+ float: right !important;
+}
+
+.rel {
+ position: relative;
+}
+.abs {
+ position: absolute;
+}
+.fixed {
+ position: fixed;
+}
+.top {
+ .abs;
+ top: 0;
+}
+.right {
+ .abs;
+ right: 0;
+}
+.bottom {
+ .abs;
+ bottom: 0;
+}
+.left {
+ .abs;
+ left: 0;
+}
+
+.mt-10 {
+ margin-top: 10px;
+}
+.mr-10 {
+ margin-right: 10px;
+}
+.mb-10 {
+ margin-bottom: 10px;
+}
+.ml-10 {
+ margin-left: 10px;
+}
+
+.mt-5 {
+ margin-top: 5px;
+}
+.mr-5 {
+ margin-right: 5px;
+}
+.mb-5 {
+ margin-bottom: 5px;
+}
+.ml-5 {
+ margin-left: 5px;
+}
+
+/* Display */
+.block {
+ display: block !important;
+}
+.inline {
+ display: inline !important;
+}
+.inline-block {
+ display: inline-block !important;
+}
+.flex {
+ display: flex;
+}
+.hide {
+ display: none !important;
+}
+
+/* Shadow */
+.shadow {
+ box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
+}
+.light-shadow {
+ box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
+}
+
+/* Shapes */
+.rounded {
+ border-radius: 3px;
+}
+.circle {
+ border-radius: 50%;
+} \ No newline at end of file