Summary Files Commits Branches @commit @diff @stats
path: root / src / typography.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/typography.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, 112 insertions, 0 deletions
-rw-r--r--src/typography.less112
diff --git a/src/typography.less b/src/typography.less
new file mode 100644
index 0000000..4c7ee81
--- /dev/null
+++ b/src/typography.less
@@ -0,0 +1,112 @@
+/* Typography */
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ font-weight: 300;
+}
+h1 {
+ font-size: 5rem;
+}
+h2 {
+ font-size: 4rem;
+}
+h3 {
+ font-size: 3rem;
+}
+h4 {
+ font-size: 2.4rem;
+}
+h5 {
+ font-size: 2rem;
+}
+h6 {
+ font-size: 1.6rem;
+}
+p {
+ line-height: 1.428571429;
+ margin: 0 0 1rem;
+
+ &.lead {
+ font-size: 120%;
+ }
+}
+blockquote {
+ padding: 1rem 2rem;
+ border-left: 2px solid #ddd;
+
+ p:last-child {
+ margin-bottom: 0;
+ }
+}
+
+.text-left {
+ text-align: left;
+}
+.text-right {
+ text-align: right;
+}
+.text-center {
+ text-align: center;
+}
+.text-justify {
+ text-align: justify;
+}
+
+.text-lowercase {
+ text-transform: lowercase;
+}
+.text-uppercase {
+ text-transform: uppercase;
+}
+.text-capitalize {
+ text-transform: capitalize;
+}
+
+.text-bold {
+ font-weight: bold;
+}
+.text-italic {
+ font-style: italic;
+}
+
+.text-ellipsis {
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+.text-clip {
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: clip;
+}
+.text-break {
+ word-break: break-word;
+ word-wrap: break-word;
+ hyphens: auto;
+}
+/* List */
+ul,
+ol {
+ ul,
+ ol {
+ margin-left: 2rem;
+ }
+ margin: 0 0 1rem;
+}
+ul {
+ list-style: disc inside;
+
+ ul {
+ list-style-type: circle;
+ }
+}
+ol {
+ list-style: decimal inside;
+
+ ol {
+ list-style-type: lower-alpha;
+ }
+} \ No newline at end of file