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.
- checksums.yaml +4 -4
- data/Rakefile +9 -1
- data/app/assets/stylesheets/basscss/_align.scss +13 -0
- data/app/assets/stylesheets/basscss/_background-colors.scss +99 -0
- data/app/assets/stylesheets/basscss/_base-buttons.scss +5 -1
- data/app/assets/stylesheets/basscss/_base-forms.scss +12 -13
- data/app/assets/stylesheets/basscss/_base-reset.scss +1 -7
- data/app/assets/stylesheets/basscss/_base-typography.scss +36 -39
- data/app/assets/stylesheets/basscss/_border-colors.scss +99 -0
- data/app/assets/stylesheets/basscss/_borders.scss +2 -0
- data/app/assets/stylesheets/basscss/_btn-outline.scss +98 -0
- data/app/assets/stylesheets/basscss/_btn-primary.scss +97 -0
- data/app/assets/stylesheets/basscss/_btn.scss +113 -0
- data/app/assets/stylesheets/basscss/_button-link.scss +9 -9
- data/app/assets/stylesheets/basscss/_button-outline.scss +0 -12
- data/app/assets/stylesheets/basscss/_button-solid.scss +104 -0
- data/app/assets/stylesheets/basscss/_button-transparent.scss +0 -12
- data/app/assets/stylesheets/basscss/_color-base.scss +16 -43
- data/app/assets/stylesheets/basscss/_color-forms-dark.scss +25 -6
- data/app/assets/stylesheets/basscss/_color-forms.scss +37 -17
- data/app/assets/stylesheets/basscss/_color-input-range.scss +119 -0
- data/app/assets/stylesheets/basscss/_color-progress.scss +95 -0
- data/app/assets/stylesheets/basscss/_colors.scss +5 -64
- data/app/assets/stylesheets/basscss/_flex-object.scss +2 -7
- data/app/assets/stylesheets/basscss/_type-scale.scss +81 -0
- data/app/assets/stylesheets/basscss/_utility-layout.scss +3 -2
- data/app/assets/stylesheets/basscss/_utility-typography.scss +14 -1
- data/app/assets/stylesheets/basscss/_white-space.scss +2 -0
- data/app/assets/stylesheets/basscss/basscss.scss +27 -25
- data/lib/basscss/rails/version.rb +1 -1
- metadata +14 -3
@@ -68,12 +68,6 @@ $breakpoint-lg: '(min-width: 64em)' !default;
|
|
68
68
|
background-color: transparent;
|
69
69
|
border-radius: 0;
|
70
70
|
border: $border-width solid transparent;
|
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;
|
76
|
-
transition-property: box-shadow;
|
77
71
|
}
|
78
72
|
|
79
73
|
.button-transparent:before {
|
@@ -87,12 +81,6 @@ $breakpoint-lg: '(min-width: 64em)' !default;
|
|
87
81
|
left: -$border-width;
|
88
82
|
border: $border-width solid transparent;
|
89
83
|
background-color: currentcolor;
|
90
|
-
-webkit-transition-duration: .1s;
|
91
|
-
transition-duration: .1s;
|
92
|
-
-webkit-transition-timing-function: ease-out;
|
93
|
-
transition-timing-function: ease-out;
|
94
|
-
-webkit-transition-property: opacity;
|
95
|
-
transition-property: opacity;
|
96
84
|
opacity: 0;
|
97
85
|
}
|
98
86
|
|
@@ -52,9 +52,16 @@ $darken-4: rgba(0,0,0,.5) !default;
|
|
52
52
|
$border-width: 1px !default;
|
53
53
|
$border-radius: 3px !default;
|
54
54
|
$border-color: $darken-2 !default;
|
55
|
+
$body-color: $black !default;
|
56
|
+
$body-background-color: $white !default;
|
55
57
|
$link-color: $blue !default;
|
56
|
-
$
|
58
|
+
$link-text-decoration: none !default;
|
59
|
+
$link-hover-text-decoration: underline !default;
|
57
60
|
$pre-background-color: transparent !default;
|
61
|
+
$pre-border-radius: $border-radius !default;
|
62
|
+
$rule-border-style: solid !default;
|
63
|
+
$rule-border-width: $border-width !default;
|
64
|
+
$rule-border-color: $border-color !default;
|
58
65
|
|
59
66
|
// Custom Media Query Variables
|
60
67
|
|
@@ -65,63 +72,29 @@ $breakpoint-lg: '(min-width: 64em)' !default;
|
|
65
72
|
/* Basscss Color Base */
|
66
73
|
|
67
74
|
body {
|
68
|
-
color: $
|
69
|
-
background-color:
|
75
|
+
color: $body-color;
|
76
|
+
background-color: $body-background-color;
|
70
77
|
}
|
71
78
|
|
72
79
|
a {
|
73
80
|
color: $link-color;
|
74
|
-
text-decoration:
|
81
|
+
text-decoration: $link-text-decoration;
|
75
82
|
}
|
76
83
|
|
77
84
|
a:hover {
|
78
|
-
text-decoration:
|
85
|
+
text-decoration: $link-hover-text-decoration;
|
79
86
|
}
|
80
87
|
|
81
88
|
pre, code {
|
82
89
|
background-color: $pre-background-color;
|
83
|
-
border-radius: $border-radius;
|
90
|
+
border-radius: $pre-border-radius;
|
84
91
|
}
|
85
92
|
|
86
93
|
hr {
|
87
94
|
border: 0;
|
88
|
-
border-bottom-style:
|
89
|
-
border-bottom-width: $border-width;
|
90
|
-
border-bottom-color: $border-color;
|
91
|
-
}
|
92
|
-
|
93
|
-
.button {
|
94
|
-
color: white;
|
95
|
-
background-color: $button-background-color;
|
96
|
-
border-radius: $border-radius;
|
97
|
-
-webkit-transition-duration: .05s;
|
98
|
-
transition-duration: .05s;
|
99
|
-
-webkit-transition-timing-function: ease-out;
|
100
|
-
transition-timing-function: ease-out;
|
101
|
-
-webkit-transition-property: box-shadow, background-color;
|
102
|
-
transition-property: box-shadow, background-color;
|
103
|
-
}
|
104
|
-
|
105
|
-
.button:hover {
|
106
|
-
box-shadow: inset 0 0 0 20rem $darken-1;
|
107
|
-
}
|
108
|
-
|
109
|
-
.button:focus {
|
110
|
-
outline: none;
|
111
|
-
border-color: $darken-2;
|
112
|
-
box-shadow: 0 0 0 3px $darken-3;
|
113
|
-
}
|
114
|
-
|
115
|
-
.button:active,
|
116
|
-
.button.is-active {
|
117
|
-
box-shadow: inset 0 0 0 20rem $darken-2,
|
118
|
-
inset 0 3px 4px 0 $darken-3,
|
119
|
-
0 0 1px $darken-2;
|
120
|
-
}
|
121
|
-
|
122
|
-
.button:disabled,
|
123
|
-
.button.is-disabled {
|
124
|
-
opacity: .5;
|
95
|
+
border-bottom-style: $rule-border-style;
|
96
|
+
border-bottom-width: $rule-border-width;
|
97
|
+
border-bottom-color: $rule-border-color;
|
125
98
|
}
|
126
99
|
|
127
100
|
/* Basscss Defaults */
|
@@ -52,6 +52,9 @@ $darken-4: rgba(0,0,0,.5) !default;
|
|
52
52
|
$border-width: 1px !default;
|
53
53
|
$border-radius: 3px !default;
|
54
54
|
$border-color: $darken-2 !default;
|
55
|
+
$field-success-color: $green !default;
|
56
|
+
$field-warning-color: $yellow !default;
|
57
|
+
$field-error-color: $red !default;
|
55
58
|
|
56
59
|
// Custom Media Query Variables
|
57
60
|
|
@@ -69,47 +72,63 @@ $breakpoint-lg: '(min-width: 64em)' !default;
|
|
69
72
|
}
|
70
73
|
|
71
74
|
.field-dark::-webkit-input-placeholder {
|
75
|
+
color: #FFFFFF;
|
72
76
|
color: rgba(255,255,255,.75);
|
73
77
|
}
|
74
78
|
|
75
79
|
.field-dark::-moz-placeholder {
|
80
|
+
color: #FFFFFF;
|
76
81
|
color: rgba(255,255,255,.75);
|
77
82
|
}
|
78
83
|
|
79
84
|
.field-dark:-ms-input-placeholder {
|
85
|
+
color: #FFFFFF;
|
80
86
|
color: rgba(255,255,255,.75);
|
81
87
|
}
|
82
88
|
|
83
89
|
.field-dark::placeholder {
|
90
|
+
color: #FFFFFF;
|
84
91
|
color: rgba(255,255,255,.75);
|
85
92
|
}
|
86
93
|
|
87
94
|
.field-dark:focus {
|
88
95
|
outline: 0;
|
96
|
+
border: 1px solid #FFFFFF;
|
89
97
|
border: 1px solid rgba(255,255,255,.5);
|
90
98
|
box-shadow: 0 0 0 2px rgba(255,255,255,.25);
|
91
99
|
}
|
92
100
|
|
93
101
|
.field-dark:read-only:not(select) {
|
102
|
+
background-color: #FFFFFF;
|
94
103
|
background-color: rgba(255,255,255,.25);
|
95
104
|
}
|
96
105
|
|
97
|
-
.field-dark
|
98
|
-
border-color: $
|
106
|
+
.field-dark.is-success {
|
107
|
+
border-color: $field-success-color;
|
99
108
|
}
|
100
109
|
|
101
|
-
.field-dark.is-success {
|
102
|
-
|
110
|
+
.field-dark.is-success:focus {
|
111
|
+
box-shadow: 0 0 0 2px color($field-success-color a(.5));
|
103
112
|
}
|
104
113
|
|
105
114
|
.field-dark.is-warning {
|
106
|
-
border-color: $
|
115
|
+
border-color: $field-warning-color;
|
116
|
+
}
|
117
|
+
|
118
|
+
.field-dark.is-warning:focus {
|
119
|
+
box-shadow: 0 0 0 2px color($field-warning-color a(.5));
|
107
120
|
}
|
108
121
|
|
122
|
+
.field-dark:invalid,
|
109
123
|
.field-dark.is-error {
|
110
|
-
border-color: $
|
124
|
+
border-color: $field-error-color;
|
111
125
|
}
|
112
126
|
|
127
|
+
.field-dark.is-error:focus {
|
128
|
+
box-shadow: 0 0 0 2px color($field-error-color a(.5));
|
129
|
+
}
|
130
|
+
|
131
|
+
|
113
132
|
/* Basscss Defaults */
|
114
133
|
|
115
134
|
/*
|
@@ -52,6 +52,10 @@ $darken-4: rgba(0,0,0,.5) !default;
|
|
52
52
|
$border-width: 1px !default;
|
53
53
|
$border-radius: 3px !default;
|
54
54
|
$border-color: $darken-2 !default;
|
55
|
+
$field-focus-color: $blue !default;
|
56
|
+
$field-success-color: $green !default;
|
57
|
+
$field-warning-color: $yellow !default;
|
58
|
+
$field-error-color: $red !default;
|
55
59
|
|
56
60
|
// Custom Media Query Variables
|
57
61
|
|
@@ -61,47 +65,63 @@ $breakpoint-lg: '(min-width: 64em)' !default;
|
|
61
65
|
|
62
66
|
/* Basscss Color Forms */
|
63
67
|
|
64
|
-
.field
|
65
|
-
background-color: white;
|
66
|
-
-webkit-transition: box-shadow .2s ease;
|
67
|
-
transition: box-shadow .2s ease;
|
68
|
+
.field {
|
68
69
|
border-style: solid;
|
69
70
|
border-width: $border-width;
|
70
71
|
border-color: $border-color;
|
71
72
|
border-radius: $border-radius;
|
72
73
|
}
|
73
74
|
|
74
|
-
.field
|
75
|
+
.field:focus,
|
76
|
+
.field.is-focused {
|
75
77
|
outline: none;
|
76
|
-
border-color: $
|
77
|
-
box-shadow: 0 0 0 2px color($
|
78
|
+
border-color: $field-focus-color;
|
79
|
+
box-shadow: 0 0 0 2px color($field-focus-color a(.5));
|
78
80
|
}
|
79
81
|
|
80
|
-
.field
|
82
|
+
.field:disabled,
|
83
|
+
.field.is-disabled {
|
81
84
|
background-color: $darken-2;
|
82
85
|
opacity: .5;
|
83
86
|
}
|
84
87
|
|
85
|
-
.field
|
88
|
+
.field:read-only:not(select),
|
89
|
+
.field.is-read-only {
|
86
90
|
background-color: $darken-2;
|
87
91
|
}
|
88
92
|
|
89
|
-
|
90
|
-
|
93
|
+
|
94
|
+
.field.is-success {
|
95
|
+
border-color: $field-success-color;
|
96
|
+
}
|
97
|
+
|
98
|
+
.field.is-success:focus,
|
99
|
+
.field.is-success.is-focused {
|
100
|
+
box-shadow: 0 0 0 2px color($field-success-color a(.5));
|
91
101
|
}
|
92
102
|
|
93
|
-
.field
|
94
|
-
border-color: $
|
103
|
+
.field.is-warning {
|
104
|
+
border-color: $field-warning-color;
|
95
105
|
}
|
96
106
|
|
97
|
-
.field
|
98
|
-
|
107
|
+
.field.is-warning:focus,
|
108
|
+
.field.is-warning.is-focused {
|
109
|
+
box-shadow: 0 0 0 2px color($field-warning-color a(.5));
|
99
110
|
}
|
100
111
|
|
101
|
-
.field
|
102
|
-
|
112
|
+
.field:invalid,
|
113
|
+
.field.is-error {
|
114
|
+
border-color: $field-error-color;
|
103
115
|
}
|
104
116
|
|
117
|
+
.field:invalid:focus,
|
118
|
+
.field:invalid.is-focused,
|
119
|
+
.field.is-error:focus,
|
120
|
+
.field.is-error.is-focused {
|
121
|
+
box-shadow: 0 0 0 2px color($field-error-color a(.5));
|
122
|
+
}
|
123
|
+
|
124
|
+
|
105
125
|
/* Basscss Defaults */
|
106
126
|
|
107
127
|
/*
|
@@ -0,0 +1,119 @@
|
|
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 Color Input Range */
|
63
|
+
|
64
|
+
.range-light {
|
65
|
+
color: inherit;
|
66
|
+
background-color: transparent;
|
67
|
+
-webkit-appearance: none;
|
68
|
+
}
|
69
|
+
|
70
|
+
.range-light::-webkit-slider-thumb {
|
71
|
+
-webkit-appearance: none;
|
72
|
+
border-radius: $border-radius;
|
73
|
+
background-color: currentcolor;
|
74
|
+
}
|
75
|
+
|
76
|
+
.range-light::-moz-range-thumb {
|
77
|
+
border-radius: $border-radius;
|
78
|
+
border-color: transparent;
|
79
|
+
border-width: 0;
|
80
|
+
background-color: currentcolor;
|
81
|
+
}
|
82
|
+
|
83
|
+
.range-light::-webkit-slider-runnable-track {
|
84
|
+
border-radius: $border-radius;
|
85
|
+
background-color: $darken-3;
|
86
|
+
}
|
87
|
+
|
88
|
+
.range-light::-moz-range-track {
|
89
|
+
border-radius: $border-radius;
|
90
|
+
background-color: $darken-3;
|
91
|
+
}
|
92
|
+
|
93
|
+
.range-light:focus {
|
94
|
+
outline: none;
|
95
|
+
}
|
96
|
+
|
97
|
+
.range-light:focus::-webkit-slider-thumb {
|
98
|
+
outline: none;
|
99
|
+
border: 0;
|
100
|
+
box-shadow: 0 0 1px 2px currentcolor;
|
101
|
+
}
|
102
|
+
|
103
|
+
.range-light:focus::-moz-range-thumb {
|
104
|
+
outline: none;
|
105
|
+
border: 0;
|
106
|
+
box-shadow: 0 0 0 3px $darken-3;
|
107
|
+
}
|
108
|
+
|
109
|
+
/* Basscss Defaults */
|
110
|
+
|
111
|
+
/*
|
112
|
+
|
113
|
+
COLOR VARIABLES
|
114
|
+
|
115
|
+
- Cool
|
116
|
+
- Warm
|
117
|
+
- Gray Scale
|
118
|
+
|
119
|
+
*/
|
@@ -0,0 +1,95 @@
|
|
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 Color Progress */
|
63
|
+
|
64
|
+
.progress {
|
65
|
+
background-color: $darken-2;
|
66
|
+
border: 0;
|
67
|
+
border-radius: 10000px;
|
68
|
+
}
|
69
|
+
|
70
|
+
.progress::-webkit-progress-bar {
|
71
|
+
-webkit-appearance: none;
|
72
|
+
background-color: $darken-2
|
73
|
+
}
|
74
|
+
|
75
|
+
.progress::-webkit-progress-value {
|
76
|
+
-webkit-appearance: none;
|
77
|
+
background-color: currentColor;
|
78
|
+
}
|
79
|
+
|
80
|
+
.progress::-moz-progress-bar {
|
81
|
+
background-color: currentColor;
|
82
|
+
}
|
83
|
+
|
84
|
+
|
85
|
+
/* Basscss Defaults */
|
86
|
+
|
87
|
+
/*
|
88
|
+
|
89
|
+
COLOR VARIABLES
|
90
|
+
|
91
|
+
- Cool
|
92
|
+
- Warm
|
93
|
+
- Gray Scale
|
94
|
+
|
95
|
+
*/
|