basscss-rails 0.0.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/LICENSE.txt +1 -1
  4. data/README.md +2 -14
  5. data/app/assets/stylesheets/basscss/_background-images.scss +17 -0
  6. data/app/assets/stylesheets/basscss/_base-buttons.scss +110 -0
  7. data/app/assets/stylesheets/basscss/_base-forms.scss +129 -0
  8. data/app/assets/stylesheets/basscss/_base-reset.scss +16 -0
  9. data/app/assets/stylesheets/basscss/_base-tables.scss +99 -0
  10. data/app/assets/stylesheets/basscss/_base-typography.scss +135 -0
  11. data/app/assets/stylesheets/basscss/_borders.scss +82 -3
  12. data/app/assets/stylesheets/basscss/_button-blue-outline.scss +46 -0
  13. data/app/assets/stylesheets/basscss/_button-blue.scss +41 -0
  14. data/app/assets/stylesheets/basscss/_button-gray.scss +42 -0
  15. data/app/assets/stylesheets/basscss/_button-light-gray.scss +43 -0
  16. data/app/assets/stylesheets/basscss/_button-link.scss +42 -0
  17. data/app/assets/stylesheets/basscss/_button-nav-dark.scss +23 -0
  18. data/app/assets/stylesheets/basscss/_button-nav-light.scss +26 -0
  19. data/app/assets/stylesheets/basscss/_button-nav-tab.scss +34 -0
  20. data/app/assets/stylesheets/basscss/_button-outline.scss +135 -0
  21. data/app/assets/stylesheets/basscss/_button-red.scss +41 -0
  22. data/app/assets/stylesheets/basscss/_button-sizes.scss +93 -0
  23. data/app/assets/stylesheets/basscss/_button-transparent.scss +139 -0
  24. data/app/assets/stylesheets/basscss/_color-base.scss +137 -0
  25. data/app/assets/stylesheets/basscss/_color-buttons.scss +196 -0
  26. data/app/assets/stylesheets/basscss/_color-forms-dark.scss +123 -0
  27. data/app/assets/stylesheets/basscss/_color-forms.scss +115 -0
  28. data/app/assets/stylesheets/basscss/_color-tables.scss +85 -0
  29. data/app/assets/stylesheets/basscss/_colors.scss +155 -19
  30. data/app/assets/stylesheets/basscss/_defaults.scss +72 -0
  31. data/app/assets/stylesheets/basscss/_flex-object.scss +109 -0
  32. data/app/assets/stylesheets/basscss/_grid.scss +303 -39
  33. data/app/assets/stylesheets/basscss/_highlight.scss +166 -0
  34. data/app/assets/stylesheets/basscss/_input-range.scss +155 -0
  35. data/app/assets/stylesheets/basscss/_positions.scss +17 -17
  36. data/app/assets/stylesheets/basscss/_progress.scss +101 -0
  37. data/app/assets/stylesheets/basscss/_responsive-states.scss +114 -0
  38. data/app/assets/stylesheets/basscss/_responsive-white-space.scss +194 -0
  39. data/app/assets/stylesheets/basscss/_table-object.scss +40 -8
  40. data/app/assets/stylesheets/basscss/_ui-utility-groups.scss +21 -0
  41. data/app/assets/stylesheets/basscss/_utility-headings.scss +33 -0
  42. data/app/assets/stylesheets/basscss/_utility-layout.scss +31 -0
  43. data/app/assets/stylesheets/basscss/_utility-typography.scss +20 -0
  44. data/app/assets/stylesheets/basscss/_white-space.scss +126 -0
  45. data/app/assets/stylesheets/basscss/basscss.scss +37 -40
  46. data/lib/basscss/rails/version.rb +1 -1
  47. metadata +38 -20
  48. data/app/assets/stylesheets/basscss/_button-themes.scss +0 -32
  49. data/app/assets/stylesheets/basscss/_buttons.scss +0 -33
  50. data/app/assets/stylesheets/basscss/_form-themes.scss +0 -37
  51. data/app/assets/stylesheets/basscss/_forms.scss +0 -68
  52. data/app/assets/stylesheets/basscss/_lists.scss +0 -16
  53. data/app/assets/stylesheets/basscss/_margins.scss +0 -34
  54. data/app/assets/stylesheets/basscss/_nav-themes.scss +0 -130
  55. data/app/assets/stylesheets/basscss/_navs.scss +0 -59
  56. data/app/assets/stylesheets/basscss/_padding.scss +0 -18
  57. data/app/assets/stylesheets/basscss/_reset.scss +0 -10
  58. data/app/assets/stylesheets/basscss/_table-themes.scss +0 -8
  59. data/app/assets/stylesheets/basscss/_tables.scss +0 -23
  60. data/app/assets/stylesheets/basscss/_theme.scss +0 -16
  61. data/app/assets/stylesheets/basscss/_type.scss +0 -43
  62. data/app/assets/stylesheets/basscss/_utilities.scss +0 -30
  63. data/app/assets/stylesheets/basscss/_variables.scss +0 -62
  64. data/app/assets/stylesheets/basscss/basscss-lite.scss +0 -19
@@ -1,16 +0,0 @@
1
- // Lists
2
-
3
- // Simple unbulleted list
4
- .list-reset {
5
- list-style: none;
6
- padding-left: 0;
7
- }
8
-
9
- // Inline list
10
- .list-inline {
11
- li {
12
- display: inline;
13
- white-space: nowrap;
14
- }
15
- }
16
-
@@ -1,34 +0,0 @@
1
- // Margins
2
-
3
- .m0 { margin: 0; }
4
- .mb0 { margin-bottom: 0; }
5
-
6
- .m1 { margin: .5*$space; }
7
- .mt1 { margin-top: .5*$space; }
8
- .mr1 { margin-right: .5*$space; }
9
- .mb1 { margin-bottom: .5*$space; }
10
- .ml1 { margin-left: .5*$space; }
11
-
12
- .m2 { margin: $space; }
13
- .mt2 { margin-top: $space; }
14
- .mr2 { margin-right: $space; }
15
- .mb2 { margin-bottom: $space; }
16
- .ml2 { margin-left: $space; }
17
-
18
- .m3 { margin: 2*$space; }
19
- .mt3 { margin-top: 2*$space; }
20
- .mr3 { margin-right: 2*$space; }
21
- .mb3 { margin-bottom: 2*$space; }
22
- .ml3 { margin-left: 2*$space; }
23
-
24
- .m4 { margin: 4*$space; }
25
- .mt4 { margin-top: 4*$space; }
26
- .mr4 { margin-right: 4*$space; }
27
- .mb4 { margin-bottom: 4*$space; }
28
- .ml4 { margin-left: 4*$space; }
29
-
30
-
31
- // Wrapper for horizontally centering elements with a set width
32
- .wrap { margin-right: auto; margin-left: auto; }
33
-
34
-
@@ -1,130 +0,0 @@
1
- // Nav Themes
2
-
3
- // See _nav.scss for structural styles
4
-
5
- // Undo default link styles
6
- .nav a {
7
- &:hover,
8
- &:focus {
9
- text-decoration: none;
10
- }
11
- }
12
-
13
- .nav-dark {
14
- & > a {
15
- color: white;
16
- &:hover,
17
- &:focus {
18
- color: white;
19
- background-color: $darken-2;
20
- }
21
- }
22
- .active {
23
- background-color: $darken-3;
24
- }
25
- }
26
-
27
- .nav-light {
28
- & > a {
29
- color: $dark-gray;
30
- &:hover,
31
- &:focus {
32
- color: $dark-gray;
33
- background-color: $darken-1;
34
- }
35
- }
36
- .active {
37
- background-color: $darken-2;
38
- }
39
- }
40
-
41
- // Bordered treatment - For vertical layouts only
42
- .nav-borders {
43
- border-style: solid;
44
- border-width: 1px;
45
- border-color: $border-color;
46
- & > a {
47
- border-top-style: solid;
48
- border-top-width: 1px;
49
- border-top-color: $border-color;
50
- &:first-child {
51
- border-top: 0;
52
- }
53
- }
54
- .active {
55
- color: $dark-gray;
56
- }
57
- }
58
-
59
- // Pills
60
- .nav-pills {
61
- & > a {
62
- border-radius: $border-radius;
63
- &:hover,
64
- &:focus {
65
- background-color: rgba($blue,.125);
66
- }
67
- }
68
- .active {
69
- color: white;
70
- background-color: $blue;
71
- &:hover,
72
- &:focus {
73
- background-color: darken($blue,10%);
74
- }
75
- }
76
- }
77
-
78
- // Segmented control styles - For horizontal layouts only
79
- .nav-segments {
80
- box-shadow: inset 0 0 0 1px $blue;
81
- border-radius: $border-radius;
82
- & > a {
83
- border-right: 1px solid $blue;
84
- border-bottom: 1px solid $blue;
85
- &:hover,
86
- &:focus {
87
- background-color: rgba($blue,.125);
88
- }
89
- &:first-child {
90
- border-radius: $border-radius 0 0 $border-radius;
91
- }
92
- &:last-child {
93
- border-right: 0;
94
- border-radius: 0 $border-radius $border-radius 0;
95
- }
96
- }
97
- .active {
98
- color: white;
99
- background-color: $blue;
100
- &:hover,
101
- &:focus {
102
- background-color: darken($blue,10%);
103
- }
104
- }
105
- .disabled {
106
- color: rgba($dark-gray,.5);
107
- &:hover,
108
- &:focus {
109
- color: rgba($dark-gray,.5);
110
- background-color: transparent;
111
- }
112
- }
113
- }
114
-
115
- // Tabs - For horizontal layout only
116
- .nav-tabs {
117
- & > a {
118
- border-radius: $border-radius $border-radius 0 0;
119
- border-bottom: 1px solid $border-color;
120
- &:hover {
121
- background-color: $darken-1;
122
- }
123
- }
124
- .active {
125
- background-color: white;
126
- border: 1px solid $border-color;
127
- border-bottom-color: transparent;
128
- }
129
- }
130
-
@@ -1,59 +0,0 @@
1
- // Nav Component
2
-
3
- // Sets line height, display block, padding, and white-space nowrap
4
- .nav {
5
- line-height: $ui-height;
6
- & > a,
7
- .nav-item {
8
- display: block;
9
- line-height: inherit;
10
- white-space: nowrap;
11
- }
12
- & > a {
13
- padding-right: $ui-padding;
14
- padding-left: $ui-padding;
15
- }
16
- }
17
-
18
- // Sets display table at all sizes
19
- .mobile-nav-table {
20
- display: table;
21
- & > a,
22
- .nav-item {
23
- display: table-cell;
24
- vertical-align: middle;
25
- }
26
- }
27
-
28
- // Sets display table above breakpoint
29
- @media (min-width: $breakpoint-mobile) {
30
- .nav-table {
31
- display: table;
32
- & > a,
33
- .nav-item {
34
- display: table-cell;
35
- vertical-align: middle;
36
- }
37
- }
38
- }
39
-
40
- // Extension to set all nav-table items equal width
41
- // Use with .full-width to span the full width of container
42
- .nav-table-fixed { table-layout: fixed; }
43
-
44
- // Extension to add padding to .nav-item
45
- .nav-item-px {
46
- padding-right: $ui-padding;
47
- padding-left: $ui-padding;
48
- }
49
-
50
- // Height extensions
51
- .nav-big { line-height: $ui-height-big; }
52
- .nav-small { line-height: $ui-height-small; }
53
-
54
- // Extension to align with surrounding content
55
- .nav-flush {
56
- margin-right: -$ui-padding;
57
- margin-left: -$ui-padding;
58
- }
59
-
@@ -1,18 +0,0 @@
1
- // Padding
2
-
3
- .p1 { padding: .5*$space; }
4
- .px1 { padding-right: .5*$space; padding-left: .5*$space; }
5
- .py1 { padding-top: .5*$space; padding-bottom: .5*$space; }
6
-
7
- .p2 { padding: $space; }
8
- .px2 { padding-right: $space; padding-left: $space; }
9
- .py2 { padding-top: $space; padding-bottom: $space; }
10
-
11
- .p3 { padding: 2*$space; }
12
- .px3 { padding-right: 2*$space; padding-left: 2*$space; }
13
- .py3 { padding-top: 2*$space; padding-bottom: 2*$space; }
14
-
15
- .p4 { padding: 4*$space; }
16
- .px4 { padding-right: 4*$space; padding-left: 4*$space; }
17
- .py4 { padding-top: 4*$space; padding-bottom: 4*$space; }
18
-
@@ -1,10 +0,0 @@
1
- // Reset
2
-
3
- body, button, input, select, textarea, pre { margin: 0; }
4
- h1, h2, h3, h4, h5, h6, p, dl, ol, ul {
5
- margin-top: 0;
6
- margin-bottom: 1rem;
7
- }
8
- button, input, select, textarea { font-family: inherit; font-size: 100%; }
9
- article, aside, details, figcaption, figure, footer, header, main, nav, section, summary { display: block; }
10
-
@@ -1,8 +0,0 @@
1
- // Table Themes
2
-
3
- .table-light {
4
- th, td {
5
- border-bottom: 1px solid $border-color;
6
- }
7
- }
8
-
@@ -1,23 +0,0 @@
1
- // Tables
2
-
3
- .table-reset {
4
- border-collapse: collapse;
5
- border-spacing: 0;
6
- max-width: 100%;
7
- width: 100%;
8
- th { text-align: left; }
9
- th, td {
10
- padding: $ui-padding;
11
- line-height: inherit;
12
- }
13
- th { vertical-align: bottom; }
14
- td { vertical-align: top; }
15
- }
16
-
17
- // Extension for smaller tables
18
- .table-small {
19
- th, td {
20
- padding: .25*$ui-padding $ui-padding;
21
- line-height: $ui-height-small;
22
- }
23
- }
@@ -1,16 +0,0 @@
1
- // Base thematic styles
2
-
3
- body {
4
- color: $dark-gray;
5
- background-color: #fff;
6
- }
7
-
8
- a {
9
- color: $blue;
10
- text-decoration: none;
11
- &:hover {
12
- color: darken($blue, 10%);
13
- text-decoration: underline;
14
- }
15
- }
16
-
@@ -1,43 +0,0 @@
1
- // Type
2
-
3
- body {
4
- font-family: $font-family;
5
- line-height: $line-height;
6
- font-weight: 400;
7
- }
8
-
9
- h1, h2, h3, h4, h5, h6 { line-height: $line-height-heading; }
10
-
11
- // Base Type Scale
12
- h1, .h1 { font-size: $h1; }
13
- h2, .h2 { font-size: $h2; }
14
- h3, .h3 { font-size: $h3; }
15
- h4, .h4,
16
- p, dl, ol, ul { font-size: $h4; }
17
- h5, .h5 { font-size: $h5; }
18
- h6, .h6, small { font-size: $h6; }
19
-
20
- // Responsive Type Scale
21
- @if ($responsive-type) {
22
- @media screen and (min-width: $breakpoint-desktop) {
23
- .h1 { font-size: $desktop-h1; }
24
- .h2 { font-size: $desktop-h2; }
25
- .h3 { font-size: $desktop-h3; }
26
- .h4 { font-size: $desktop-h4; }
27
- .h5 { font-size: $desktop-h5; }
28
- .h6 { font-size: $desktop-h6; }
29
- }
30
- }
31
-
32
- // Utilities
33
- .bold { font-weight: bold; }
34
- .regular { font-weight: normal; }
35
- .italic { font-style: italic; }
36
- .caps { text-transform: uppercase; letter-spacing: .2em; }
37
-
38
- // Alignment
39
- .left-align { text-align: left; }
40
- .center { text-align: center; }
41
- .right-align { text-align: right; }
42
- .justified { text-align: justify; }
43
-
@@ -1,30 +0,0 @@
1
- // Layout Utilities
2
-
3
- .inline { display: inline; }
4
- .block { display: block; }
5
- .inline-block { display: inline-block; }
6
-
7
- .oh { overflow: hidden; }
8
- .left { float: left; }
9
- .right { float: right; }
10
-
11
- .clearfix {
12
- &:before, &:after { content: " "; display: table; }
13
- &:after { clear: both; }
14
- }
15
-
16
- .fit { max-width: 100%; }
17
-
18
- .full-width { width: 100%; }
19
- .half-width { width: 50%; }
20
-
21
- // Responsive states
22
- .mobile-show { display: none !important; }
23
- @media screen and (max-width: 48em) {
24
- .mobile-show,
25
- .mobile-block { display: block !important; }
26
- .mobile-block { width: 100%; }
27
- .mobile-hide { display: none !important; }
28
- .mobile-center { text-align: center; }
29
- }
30
-
@@ -1,62 +0,0 @@
1
- // Variables
2
-
3
- // Default whitespace unit
4
- $space: 1rem !default;
5
-
6
- // Typography
7
- $font-family: 'Helvetica Neue', Helvetica, sans-serif !default;
8
- $line-height: 1.5 !default;
9
- $line-height-heading: 1.25 !default;
10
-
11
- // Type Scale
12
- $h1: 2rem !default;
13
- $h2: 1.5rem !default;
14
- $h3: 1.25rem !default;
15
- $h4: 1rem !default;
16
- $h5: .75rem !default;
17
- $h6: .75rem !default;
18
-
19
- // Responsive type scale
20
- $responsive-type: true !default;
21
- $desktop-h1: 4rem !default;
22
- $desktop-h2: 2rem !default;
23
- $desktop-h3: 1.5rem !default;
24
- $desktop-h4: 1.125rem !default;
25
- $desktop-h5: .875rem !default;
26
- $desktop-h6: .875rem !default;
27
-
28
- // Breakpoints
29
- $breakpoint-mobile: 32em !default;
30
- $breakpoint-desktop: 48em !default;
31
-
32
- // Heights for buttons, forms, nav, etc.
33
- $ui-height: 2.25rem !default;
34
- $ui-height-small: 1.75rem !default;
35
- $ui-height-big: 3rem !default;
36
-
37
- $ui-padding: .75*$space !default;
38
-
39
- // Grid
40
- $grid-max-width: 75rem !default;
41
- $grid-gutter: 2 * $space !default;
42
-
43
- // Theme
44
- $blue: #0096cc !default;
45
- $light-gray: #eee !default;
46
- $mid-gray: #777 !default;
47
- $dark-gray: #333 !default;
48
-
49
- $red: #f96010 !default;
50
- $green: #11e966 !default;
51
- $yellow: #ffdc00 !default;
52
-
53
- // Alpha blacks for UI elements
54
- $darken-1: rgba(#000,.125) !default;
55
- $darken-2: rgba(#000,.25) !default;
56
- $darken-3: rgba(#000,.375) !default;
57
-
58
- // Borders
59
- $border-color: #ccc !default;
60
- $border-width: 1px !default;
61
- $border-radius: .25rem !default;
62
-