Skip to content

Commit ffad85f

Browse files
committed
Add uniformed list, update demo.
1 parent 3875cd8 commit ffad85f

18 files changed

+616
-352
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Super low-level mobile-first Sass framework using the [ITCSS](https://www.youtube.com/watch?v=1OKZOV-iLj4) architecture and the [BEMIT](http://csswizardry.com/2015/08/bemit-taking-the-bem-naming-convention-a-step-further/) naming convention.
77

8-
Ships with 100% zero cosmetic styling. This allows every project built with Nebula CSS to have a completely bespoke look and feel with Nebula CSS doing the heavy lifting when it comes to layout and architecture. This means it is totally upto you how you structure your colours, typography and cosmetic components, however you are encouraged to follow the ITCSS structure and BEMIT naming conventions.
8+
Ships with zero cosmetic styling. This allows every consuming project to have a completely bespoke UI with Nebula CSS doing the heavy lifting when it comes to layout and architecture. This means it is totally upto you how you structure your colours, typography and cosmetic components, however you are encouraged to follow the ITCSS structure and BEMIT naming conventions.
99

1010
At the core sits a highly flexible and and extendible grid system making use of the very powerful [map](https://www.viget.com/articles/sass-maps-are-awesome) feature of Sass.
1111
Maps are used extensively and allow the following features to be easily extended and in some cases composed:
@@ -17,7 +17,7 @@ Maps are used extensively and allow the following features to be easily extended
1717
* Section spacing
1818
* Spacing - margin & padding utilities
1919

20-
Also ships with some common yet useful abstractions such as the Flag Object.
20+
Nebula CSS also ships with some common yet useful abstractions such as the Flag Object, list variations and an array of useful utilities.
2121

2222
##Table of contents
2323

demo/dist/main.css

Lines changed: 80 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,11 @@ ol,
424424
dd {
425425
margin-left: 2rem; }
426426

427+
code {
428+
padding: 2px 4px;
429+
background: #ddd;
430+
font-family: courier new; }
431+
427432
.o-site-wrap {
428433
max-width: 60rem;
429434
margin: 0 auto; }
@@ -527,6 +532,7 @@ dd {
527532
padding-left: 1rem; } }
528533

529534
.o-matrix-list {
535+
margin: 0;
530536
list-style: none; }
531537

532538
.o-matrix-list__item {
@@ -790,12 +796,60 @@ dd {
790796
padding-top: 2rem;
791797
padding-bottom: 2rem; } }
792798

793-
.demo-card {
799+
.o-uniformed-list {
800+
margin: 0;
801+
list-style: none;
802+
display: table;
803+
width: 100%;
804+
table-layout: fixed;
805+
text-align: center; }
806+
807+
.o-uniformed-list > .o-uniformed-list__item {
808+
display: table-cell;
809+
padding: 0 0.5rem; }
810+
811+
@media (min-width: 720px) {
812+
.o-uniformed-list\@sm {
813+
margin: 0;
814+
list-style: none;
815+
display: table;
816+
width: 100%;
817+
table-layout: fixed;
818+
text-align: center; }
819+
.o-uniformed-list\@sm > .o-uniformed-list__item {
820+
display: table-cell;
821+
padding: 0 0.5rem; } }
822+
823+
@media (min-width: 960px) {
824+
.o-uniformed-list\@md {
825+
margin: 0;
826+
list-style: none;
827+
display: table;
828+
width: 100%;
829+
table-layout: fixed;
830+
text-align: center; }
831+
.o-uniformed-list\@md > .o-uniformed-list__item {
832+
display: table-cell;
833+
padding: 0 0.5rem; } }
834+
835+
@media (min-width: 1200px) {
836+
.o-uniformed-list\@lg {
837+
margin: 0;
838+
list-style: none;
839+
display: table;
840+
width: 100%;
841+
table-layout: fixed;
842+
text-align: center; }
843+
.o-uniformed-list\@lg > .o-uniformed-list__item {
844+
display: table-cell;
845+
padding: 0 0.5rem; } }
846+
847+
.c-demo-card {
794848
padding: 1rem;
795849
background: #222;
796850
color: #fff; }
797851

798-
.demo-card-alt {
852+
.c-demo-card-alt {
799853
display: inline-block;
800854
padding: 0;
801855
background: #fff;
@@ -807,6 +861,18 @@ dd {
807861
.demo-img {
808862
width: 150px; } }
809863

864+
.c-demo-button {
865+
display: inline-block;
866+
min-width: 135px;
867+
padding: 1rem 2rem;
868+
background: #222;
869+
color: #fff;
870+
text-decoration: none;
871+
font-weight: bold;
872+
text-align: center; }
873+
.c-demo-button:hover, .c-demo-button:focus {
874+
background: #434343; }
875+
810876
.u-1\/1 {
811877
width: 100%; }
812878

@@ -2109,6 +2175,9 @@ dd {
21092175
.u-soft-left-md {
21102176
padding-left: 1rem !important; }
21112177

2178+
.u-soft-md {
2179+
padding: 1rem !important; }
2180+
21122181
@media (min-width: 720px) {
21132182
.u-soft-top-md\@sm {
21142183
padding-top: 1rem !important; }
@@ -2117,7 +2186,9 @@ dd {
21172186
.u-soft-bottom-md\@sm {
21182187
padding-bottom: 1rem !important; }
21192188
.u-soft-left-md\@sm {
2120-
padding-left: 1rem !important; } }
2189+
padding-left: 1rem !important; }
2190+
.u-soft-md\@sm {
2191+
padding: 1rem !important; } }
21212192

21222193
@media (min-width: 960px) {
21232194
.u-soft-top-md\@md {
@@ -2127,7 +2198,9 @@ dd {
21272198
.u-soft-bottom-md\@md {
21282199
padding-bottom: 1rem !important; }
21292200
.u-soft-left-md\@md {
2130-
padding-left: 1rem !important; } }
2201+
padding-left: 1rem !important; }
2202+
.u-soft-md\@md {
2203+
padding: 1rem !important; } }
21312204

21322205
@media (min-width: 1200px) {
21332206
.u-soft-top-md\@lg {
@@ -2137,7 +2210,9 @@ dd {
21372210
.u-soft-bottom-md\@lg {
21382211
padding-bottom: 1rem !important; }
21392212
.u-soft-left-md\@lg {
2140-
padding-left: 1rem !important; } }
2213+
padding-left: 1rem !important; }
2214+
.u-soft-md\@lg {
2215+
padding: 1rem !important; } }
21412216

21422217
.u-hard {
21432218
padding: 0 !important; }

0 commit comments

Comments
 (0)