basscss-rails 1.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +9 -1
  3. data/app/assets/stylesheets/basscss/_align.scss +13 -0
  4. data/app/assets/stylesheets/basscss/_background-colors.scss +99 -0
  5. data/app/assets/stylesheets/basscss/_base-buttons.scss +5 -1
  6. data/app/assets/stylesheets/basscss/_base-forms.scss +12 -13
  7. data/app/assets/stylesheets/basscss/_base-reset.scss +1 -7
  8. data/app/assets/stylesheets/basscss/_base-typography.scss +36 -39
  9. data/app/assets/stylesheets/basscss/_border-colors.scss +99 -0
  10. data/app/assets/stylesheets/basscss/_borders.scss +2 -0
  11. data/app/assets/stylesheets/basscss/_btn-outline.scss +98 -0
  12. data/app/assets/stylesheets/basscss/_btn-primary.scss +97 -0
  13. data/app/assets/stylesheets/basscss/_btn.scss +113 -0
  14. data/app/assets/stylesheets/basscss/_button-link.scss +9 -9
  15. data/app/assets/stylesheets/basscss/_button-outline.scss +0 -12
  16. data/app/assets/stylesheets/basscss/_button-solid.scss +104 -0
  17. data/app/assets/stylesheets/basscss/_button-transparent.scss +0 -12
  18. data/app/assets/stylesheets/basscss/_color-base.scss +16 -43
  19. data/app/assets/stylesheets/basscss/_color-forms-dark.scss +25 -6
  20. data/app/assets/stylesheets/basscss/_color-forms.scss +37 -17
  21. data/app/assets/stylesheets/basscss/_color-input-range.scss +119 -0
  22. data/app/assets/stylesheets/basscss/_color-progress.scss +95 -0
  23. data/app/assets/stylesheets/basscss/_colors.scss +5 -64
  24. data/app/assets/stylesheets/basscss/_flex-object.scss +2 -7
  25. data/app/assets/stylesheets/basscss/_type-scale.scss +81 -0
  26. data/app/assets/stylesheets/basscss/_utility-layout.scss +3 -2
  27. data/app/assets/stylesheets/basscss/_utility-typography.scss +14 -1
  28. data/app/assets/stylesheets/basscss/_white-space.scss +2 -0
  29. data/app/assets/stylesheets/basscss/basscss.scss +27 -25
  30. data/lib/basscss/rails/version.rb +1 -1
  31. metadata +14 -3
@@ -91,6 +91,8 @@ $breakpoint-lg: '(min-width: 64em)' !default;
91
91
  border-left-color: $border-color;
92
92
  }
93
93
 
94
+ .border-none { border: 0 }
95
+
94
96
  .rounded { border-radius: $border-radius }
95
97
  .circle { border-radius: 50% }
96
98
 
@@ -0,0 +1,98 @@
1
+
2
+ // Converted Variables
3
+
4
+ $aqua: #7fdbff !default;
5
+ $blue: #0074d9 !default;
6
+ $navy: #001f3f !default;
7
+ $teal: #39cccc !default;
8
+ $green: #2ecc40 !default;
9
+ $olive: #3d9970 !default;
10
+ $lime: #01ff70 !default;
11
+ $yellow: #ffdc00 !default;
12
+ $orange: #ff851b !default;
13
+ $red: #ff4136 !default;
14
+ $fuchsia: #f012be !default;
15
+ $purple: #b10dc9 !default;
16
+ $maroon: #85144b !default;
17
+ $white: #fff !default;
18
+ $silver: #ddd !default;
19
+ $gray: #aaa !default;
20
+ $black: #111 !default;
21
+ $font-family: 'Helvetica Neue', Helvetica, sans-serif !default;
22
+ $line-height: 1.5 !default;
23
+ $heading-font-family: $font-family !default;
24
+ $heading-font-weight: bold !default;
25
+ $heading-line-height: 1.25 !default;
26
+ $monospace-font-family: 'Source Code Pro', Consolas, monospace !default;
27
+ $h1: 2rem !default;
28
+ $h2: 1.5rem !default;
29
+ $h3: 1.25rem !default;
30
+ $h4: 1rem !default;
31
+ $h5: .875rem !default;
32
+ $h6: .75rem !default;
33
+ $bold-font-weight: bold !default;
34
+ $space-1: .5rem !default;
35
+ $space-2: 1rem !default;
36
+ $space-3: 2rem !default;
37
+ $space-4: 4rem !default;
38
+ $form-field-font-size: 1rem !default;
39
+ $form-field-height: 2.25rem !default;
40
+ $form-field-padding-y: .5rem !default;
41
+ $form-field-padding-x: .5rem !default;
42
+ $button-font-size: inherit !default;
43
+ $button-font-weight: bold !default;
44
+ $button-line-height: 1.125rem !default;
45
+ $button-padding-y: .5rem !default;
46
+ $button-padding-x: 1rem !default;
47
+ $container-width: 64em !default;
48
+ $darken-1: rgba(0,0,0,.0625) !default;
49
+ $darken-2: rgba(0,0,0,.125) !default;
50
+ $darken-3: rgba(0,0,0,.25) !default;
51
+ $darken-4: rgba(0,0,0,.5) !default;
52
+ $border-width: 1px !default;
53
+ $border-radius: 3px !default;
54
+ $border-color: $darken-2 !default;
55
+
56
+ // Custom Media Query Variables
57
+
58
+ $breakpoint-sm: '(min-width: 40em)' !default;
59
+ $breakpoint-md: '(min-width: 52em)' !default;
60
+ $breakpoint-lg: '(min-width: 64em)' !default;
61
+
62
+ /* Basscss Btn Outline */
63
+
64
+ .btn-outline,
65
+ .btn-outline:hover {
66
+ border-color: currentcolor;
67
+ }
68
+
69
+ .btn-outline {
70
+ border-radius: $border-radius;
71
+ }
72
+
73
+ .btn-outline:hover {
74
+ box-shadow: inset 0 0 0 20rem $darken-1;
75
+ }
76
+
77
+ .btn-outline:active {
78
+ box-shadow: inset 0 0 0 20rem $darken-2,
79
+ inset 0 3px 4px 0 $darken-3,
80
+ 0 0 1px $darken-2;
81
+ }
82
+
83
+ .btn-outline:disabled,
84
+ .btn-outline.is-disabled {
85
+ opacity: .5;
86
+ }
87
+
88
+ /* Basscss Defaults */
89
+
90
+ /*
91
+
92
+ COLOR VARIABLES
93
+
94
+ - Cool
95
+ - Warm
96
+ - Gray Scale
97
+
98
+ */
@@ -0,0 +1,97 @@
1
+
2
+ // Converted Variables
3
+
4
+ $aqua: #7fdbff !default;
5
+ $blue: #0074d9 !default;
6
+ $navy: #001f3f !default;
7
+ $teal: #39cccc !default;
8
+ $green: #2ecc40 !default;
9
+ $olive: #3d9970 !default;
10
+ $lime: #01ff70 !default;
11
+ $yellow: #ffdc00 !default;
12
+ $orange: #ff851b !default;
13
+ $red: #ff4136 !default;
14
+ $fuchsia: #f012be !default;
15
+ $purple: #b10dc9 !default;
16
+ $maroon: #85144b !default;
17
+ $white: #fff !default;
18
+ $silver: #ddd !default;
19
+ $gray: #aaa !default;
20
+ $black: #111 !default;
21
+ $font-family: 'Helvetica Neue', Helvetica, sans-serif !default;
22
+ $line-height: 1.5 !default;
23
+ $heading-font-family: $font-family !default;
24
+ $heading-font-weight: bold !default;
25
+ $heading-line-height: 1.25 !default;
26
+ $monospace-font-family: 'Source Code Pro', Consolas, monospace !default;
27
+ $h1: 2rem !default;
28
+ $h2: 1.5rem !default;
29
+ $h3: 1.25rem !default;
30
+ $h4: 1rem !default;
31
+ $h5: .875rem !default;
32
+ $h6: .75rem !default;
33
+ $bold-font-weight: bold !default;
34
+ $space-1: .5rem !default;
35
+ $space-2: 1rem !default;
36
+ $space-3: 2rem !default;
37
+ $space-4: 4rem !default;
38
+ $form-field-font-size: 1rem !default;
39
+ $form-field-height: 2.25rem !default;
40
+ $form-field-padding-y: .5rem !default;
41
+ $form-field-padding-x: .5rem !default;
42
+ $button-font-size: inherit !default;
43
+ $button-font-weight: bold !default;
44
+ $button-line-height: 1.125rem !default;
45
+ $button-padding-y: .5rem !default;
46
+ $button-padding-x: 1rem !default;
47
+ $container-width: 64em !default;
48
+ $darken-1: rgba(0,0,0,.0625) !default;
49
+ $darken-2: rgba(0,0,0,.125) !default;
50
+ $darken-3: rgba(0,0,0,.25) !default;
51
+ $darken-4: rgba(0,0,0,.5) !default;
52
+ $border-width: 1px !default;
53
+ $border-radius: 3px !default;
54
+ $border-color: $darken-2 !default;
55
+ $button-color: $white !default;
56
+ $button-background-color: $blue !default;
57
+
58
+ // Custom Media Query Variables
59
+
60
+ $breakpoint-sm: '(min-width: 40em)' !default;
61
+ $breakpoint-md: '(min-width: 52em)' !default;
62
+ $breakpoint-lg: '(min-width: 64em)' !default;
63
+
64
+ /* Basscss Btn Primary */
65
+
66
+ .btn-primary {
67
+ color: $button-color;
68
+ background-color: $button-background-color;
69
+ border-radius: $border-radius;
70
+ }
71
+
72
+ .btn-primary:hover {
73
+ box-shadow: inset 0 0 0 20rem $darken-1;
74
+ }
75
+
76
+ .btn-primary:active {
77
+ box-shadow: inset 0 0 0 20rem $darken-2,
78
+ inset 0 3px 4px 0 $darken-3,
79
+ 0 0 1px $darken-2;
80
+ }
81
+
82
+ .btn-primary:disabled,
83
+ .btn-primary.is-disabled {
84
+ opacity: .5;
85
+ }
86
+
87
+ /* Basscss Defaults */
88
+
89
+ /*
90
+
91
+ COLOR VARIABLES
92
+
93
+ - Cool
94
+ - Warm
95
+ - Gray Scale
96
+
97
+ */
@@ -0,0 +1,113 @@
1
+
2
+ // Converted Variables
3
+
4
+ $aqua: #7fdbff !default;
5
+ $blue: #0074d9 !default;
6
+ $navy: #001f3f !default;
7
+ $teal: #39cccc !default;
8
+ $green: #2ecc40 !default;
9
+ $olive: #3d9970 !default;
10
+ $lime: #01ff70 !default;
11
+ $yellow: #ffdc00 !default;
12
+ $orange: #ff851b !default;
13
+ $red: #ff4136 !default;
14
+ $fuchsia: #f012be !default;
15
+ $purple: #b10dc9 !default;
16
+ $maroon: #85144b !default;
17
+ $white: #fff !default;
18
+ $silver: #ddd !default;
19
+ $gray: #aaa !default;
20
+ $black: #111 !default;
21
+ $font-family: 'Helvetica Neue', Helvetica, sans-serif !default;
22
+ $line-height: 1.5 !default;
23
+ $heading-font-family: $font-family !default;
24
+ $heading-font-weight: bold !default;
25
+ $heading-line-height: 1.25 !default;
26
+ $monospace-font-family: 'Source Code Pro', Consolas, monospace !default;
27
+ $h1: 2rem !default;
28
+ $h2: 1.5rem !default;
29
+ $h3: 1.25rem !default;
30
+ $h4: 1rem !default;
31
+ $h5: .875rem !default;
32
+ $h6: .75rem !default;
33
+ $bold-font-weight: bold !default;
34
+ $space-1: .5rem !default;
35
+ $space-2: 1rem !default;
36
+ $space-3: 2rem !default;
37
+ $space-4: 4rem !default;
38
+ $form-field-font-size: 1rem !default;
39
+ $form-field-height: 2.25rem !default;
40
+ $form-field-padding-y: .5rem !default;
41
+ $form-field-padding-x: .5rem !default;
42
+ $button-font-size: inherit !default;
43
+ $button-font-weight: bold !default;
44
+ $button-line-height: 1.125rem !default;
45
+ $button-padding-y: .5rem !default;
46
+ $button-padding-x: 1rem !default;
47
+ $container-width: 64em !default;
48
+ $darken-1: rgba(0,0,0,.0625) !default;
49
+ $darken-2: rgba(0,0,0,.125) !default;
50
+ $darken-3: rgba(0,0,0,.25) !default;
51
+ $darken-4: rgba(0,0,0,.5) !default;
52
+ $border-width: 1px !default;
53
+ $border-radius: 3px !default;
54
+ $border-color: $darken-2 !default;
55
+ $button-font-family: inherit !default;
56
+ $button-font-size: inherit !default;
57
+ $button-font-weight: $bold-font-weight /* Fallback value: bold */ !default;
58
+ $button-line-height: 1.125rem !default;
59
+ $button-padding-y: .5rem !default;
60
+ $button-padding-x: 1rem !default;
61
+
62
+ // Custom Media Query Variables
63
+
64
+ $breakpoint-sm: '(min-width: 40em)' !default;
65
+ $breakpoint-md: '(min-width: 52em)' !default;
66
+ $breakpoint-lg: '(min-width: 64em)' !default;
67
+
68
+ /* Basscss Btn */
69
+
70
+ .btn {
71
+ font-family: $button-font-family;
72
+ font-size: $button-font-size;
73
+ font-weight: $button-font-weight;
74
+ text-decoration: none;
75
+ cursor: pointer;
76
+ display: inline-block;
77
+ line-height: $button-line-height;
78
+ padding: $button-padding-y $button-padding-x;
79
+ margin: 0;
80
+ height: auto;
81
+ border: $border-width solid transparent;
82
+ vertical-align: middle;
83
+ -webkit-appearance: none;
84
+ color: inherit;
85
+ background-color: transparent;
86
+ }
87
+
88
+ .btn:hover {
89
+ text-decoration: none;
90
+ }
91
+
92
+ .btn:focus {
93
+ outline: none;
94
+ border-color: $darken-2;
95
+ box-shadow: 0 0 0 3px $darken-3;
96
+ }
97
+
98
+ ::-moz-focus-inner {
99
+ border: 0;
100
+ padding: 0;
101
+ }
102
+
103
+ /* Basscss Defaults */
104
+
105
+ /*
106
+
107
+ COLOR VARIABLES
108
+
109
+ - Cool
110
+ - Warm
111
+ - Gray Scale
112
+
113
+ */
@@ -12,17 +12,17 @@
12
12
  padding-left: 0;
13
13
  color: inherit;
14
14
  background-color: transparent;
15
+ background-size: 100% .25em;
16
+ background-repeat: repeat-x;
17
+ background-position: 0 1.5rem;
15
18
  border-radius: 0;
16
- -webkit-transition-duration: .1s;
17
- transition-duration: .1s;
18
- -webkit-transition-timing-function: ease-out;
19
- transition-timing-function: ease-out;
20
- -webkit-transition-property: box-shadow;
21
- transition-property: box-shadow;
22
19
  }
23
20
 
24
- .button-link:hover {
25
- box-shadow: inset 0 -.125em;
21
+ .button-link:hover,
22
+ .button-link:focus {
23
+ box-shadow: none;
24
+ background-image: -webkit-linear-gradient(transparent 50%, currentcolor 50%);
25
+ background-image: linear-gradient(transparent 50%, currentcolor 50%);
26
26
  }
27
27
 
28
28
  .button-link:active,
@@ -33,7 +33,7 @@
33
33
  .button-link:focus {
34
34
  outline: none;
35
35
  border-color: transparent;
36
- box-shadow: 0 0 0 3px $darken-3, inset 0 -.125em;
36
+ box-shadow: 0 0 0 2px $darken-3;
37
37
  }
38
38
 
39
39
  .button-link:disabled,
@@ -68,12 +68,6 @@ $breakpoint-lg: '(min-width: 64em)' !default;
68
68
  background-color: transparent;
69
69
  border-radius: $border-radius;
70
70
  border: $border-width solid currentcolor;
71
- -webkit-transition-duration: .1s;
72
- transition-duration: .1s;
73
- -webkit-transition-timing-function: ease-out;
74
- transition-timing-function: ease-out;
75
- -webkit-transition-property: box-shadow, background-color;
76
- transition-property: box-shadow, background-color;
77
71
  }
78
72
 
79
73
  .button-outline:before {
@@ -88,12 +82,6 @@ $breakpoint-lg: '(min-width: 64em)' !default;
88
82
  border: $border-width solid transparent;
89
83
  background-color: currentcolor;
90
84
  border-radius: $border-radius;
91
- -webkit-transition-duration: .1s;
92
- transition-duration: .1s;
93
- -webkit-transition-timing-function: ease-out;
94
- transition-timing-function: ease-out;
95
- -webkit-transition-property: opacity;
96
- transition-property: opacity;
97
85
  opacity: 0;
98
86
  }
99
87
 
@@ -0,0 +1,104 @@
1
+
2
+ // Converted Variables
3
+
4
+ $aqua: #7fdbff !default;
5
+ $blue: #0074d9 !default;
6
+ $navy: #001f3f !default;
7
+ $teal: #39cccc !default;
8
+ $green: #2ecc40 !default;
9
+ $olive: #3d9970 !default;
10
+ $lime: #01ff70 !default;
11
+ $yellow: #ffdc00 !default;
12
+ $orange: #ff851b !default;
13
+ $red: #ff4136 !default;
14
+ $fuchsia: #f012be !default;
15
+ $purple: #b10dc9 !default;
16
+ $maroon: #85144b !default;
17
+ $white: #fff !default;
18
+ $silver: #ddd !default;
19
+ $gray: #aaa !default;
20
+ $black: #111 !default;
21
+ $font-family: 'Helvetica Neue', Helvetica, sans-serif !default;
22
+ $line-height: 1.5 !default;
23
+ $heading-font-family: $font-family !default;
24
+ $heading-font-weight: bold !default;
25
+ $heading-line-height: 1.25 !default;
26
+ $monospace-font-family: 'Source Code Pro', Consolas, monospace !default;
27
+ $h1: 2rem !default;
28
+ $h2: 1.5rem !default;
29
+ $h3: 1.25rem !default;
30
+ $h4: 1rem !default;
31
+ $h5: .875rem !default;
32
+ $h6: .75rem !default;
33
+ $bold-font-weight: bold !default;
34
+ $space-1: .5rem !default;
35
+ $space-2: 1rem !default;
36
+ $space-3: 2rem !default;
37
+ $space-4: 4rem !default;
38
+ $form-field-font-size: 1rem !default;
39
+ $form-field-height: 2.25rem !default;
40
+ $form-field-padding-y: .5rem !default;
41
+ $form-field-padding-x: .5rem !default;
42
+ $button-font-size: inherit !default;
43
+ $button-font-weight: bold !default;
44
+ $button-line-height: 1.125rem !default;
45
+ $button-padding-y: .5rem !default;
46
+ $button-padding-x: 1rem !default;
47
+ $container-width: 64em !default;
48
+ $darken-1: rgba(0,0,0,.0625) !default;
49
+ $darken-2: rgba(0,0,0,.125) !default;
50
+ $darken-3: rgba(0,0,0,.25) !default;
51
+ $darken-4: rgba(0,0,0,.5) !default;
52
+ $border-width: 1px !default;
53
+ $border-radius: 3px !default;
54
+ $border-color: $darken-2 !default;
55
+ $button-color: white !default;
56
+ $button-background-color: $blue !default;
57
+
58
+ // Custom Media Query Variables
59
+
60
+ $breakpoint-sm: '(min-width: 40em)' !default;
61
+ $breakpoint-md: '(min-width: 52em)' !default;
62
+ $breakpoint-lg: '(min-width: 64em)' !default;
63
+
64
+ /* Basscss Button Solid */
65
+
66
+ .button {
67
+ color: $button-color;
68
+ background-color: $button-background-color;
69
+ border-radius: $border-radius;
70
+ }
71
+
72
+ .button:hover {
73
+ box-shadow: inset 0 0 0 20rem $darken-1;
74
+ }
75
+
76
+ .button:focus {
77
+ outline: none;
78
+ border-color: $darken-2;
79
+ box-shadow: 0 0 0 3px $darken-3;
80
+ }
81
+
82
+ .button:active,
83
+ .button.is-active {
84
+ box-shadow: inset 0 0 0 20rem $darken-2,
85
+ inset 0 3px 4px 0 $darken-3,
86
+ 0 0 1px $darken-2;
87
+ }
88
+
89
+ .button:disabled,
90
+ .button.is-disabled {
91
+ opacity: .5;
92
+ }
93
+
94
+ /* Basscss Defaults */
95
+
96
+ /*
97
+
98
+ COLOR VARIABLES
99
+
100
+ - Cool
101
+ - Warm
102
+ - Gray Scale
103
+
104
+ */