spectre_scss 0.3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +13 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +5 -0
  5. data/Gemfile +6 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.md +48 -0
  8. data/Rakefile +34 -0
  9. data/bin/console +7 -0
  10. data/bin/setup +6 -0
  11. data/lib/spectre_scss.rb +5 -0
  12. data/lib/spectre_scss/engine.rb +4 -0
  13. data/lib/spectre_scss/version.rb +3 -0
  14. data/spectre_scss.gemspec +26 -0
  15. data/vendor/assets/stylesheets/spectre.scss +1 -0
  16. data/vendor/assets/stylesheets/spectre/spectre-exp.scss +16 -0
  17. data/vendor/assets/stylesheets/spectre/spectre-icons.scss +8 -0
  18. data/vendor/assets/stylesheets/spectre/spectre.scss +50 -0
  19. data/vendor/assets/stylesheets/spectre/src/_accordions.scss +34 -0
  20. data/vendor/assets/stylesheets/spectre/src/_animations.scss +20 -0
  21. data/vendor/assets/stylesheets/spectre/src/_asian.scss +33 -0
  22. data/vendor/assets/stylesheets/spectre/src/_autocomplete.scss +41 -0
  23. data/vendor/assets/stylesheets/spectre/src/_avatars.scss +77 -0
  24. data/vendor/assets/stylesheets/spectre/src/_badges.scss +70 -0
  25. data/vendor/assets/stylesheets/spectre/src/_bars.scss +71 -0
  26. data/vendor/assets/stylesheets/spectre/src/_base.scss +40 -0
  27. data/vendor/assets/stylesheets/spectre/src/_breadcrumbs.scss +29 -0
  28. data/vendor/assets/stylesheets/spectre/src/_buttons.scss +182 -0
  29. data/vendor/assets/stylesheets/spectre/src/_calendars.scss +206 -0
  30. data/vendor/assets/stylesheets/spectre/src/_cards.scss +39 -0
  31. data/vendor/assets/stylesheets/spectre/src/_carousels.scss +124 -0
  32. data/vendor/assets/stylesheets/spectre/src/_chips.scss +24 -0
  33. data/vendor/assets/stylesheets/spectre/src/_codes.scss +32 -0
  34. data/vendor/assets/stylesheets/spectre/src/_comparison-sliders.scss +114 -0
  35. data/vendor/assets/stylesheets/spectre/src/_dropdowns.scss +36 -0
  36. data/vendor/assets/stylesheets/spectre/src/_empty.scss +21 -0
  37. data/vendor/assets/stylesheets/spectre/src/_filters.scss +29 -0
  38. data/vendor/assets/stylesheets/spectre/src/_forms.scss +514 -0
  39. data/vendor/assets/stylesheets/spectre/src/_icons.scss +656 -0
  40. data/vendor/assets/stylesheets/spectre/src/_labels.scss +33 -0
  41. data/vendor/assets/stylesheets/spectre/src/_layout.scss +422 -0
  42. data/vendor/assets/stylesheets/spectre/src/_media.scss +70 -0
  43. data/vendor/assets/stylesheets/spectre/src/_menus.scss +56 -0
  44. data/vendor/assets/stylesheets/spectre/src/_meters.scss +57 -0
  45. data/vendor/assets/stylesheets/spectre/src/_mixins.scss +185 -0
  46. data/vendor/assets/stylesheets/spectre/src/_modals.scss +73 -0
  47. data/vendor/assets/stylesheets/spectre/src/_navbar.scss +29 -0
  48. data/vendor/assets/stylesheets/spectre/src/_navigation.scss +13 -0
  49. data/vendor/assets/stylesheets/spectre/src/_navs.scss +34 -0
  50. data/vendor/assets/stylesheets/spectre/src/_normalize.scss +437 -0
  51. data/vendor/assets/stylesheets/spectre/src/_pagination.scss +61 -0
  52. data/vendor/assets/stylesheets/spectre/src/_panels.scss +23 -0
  53. data/vendor/assets/stylesheets/spectre/src/_parallax.scss +131 -0
  54. data/vendor/assets/stylesheets/spectre/src/_popovers.scss +70 -0
  55. data/vendor/assets/stylesheets/spectre/src/_progress.scss +45 -0
  56. data/vendor/assets/stylesheets/spectre/src/_sliders.scss +93 -0
  57. data/vendor/assets/stylesheets/spectre/src/_steps.scss +70 -0
  58. data/vendor/assets/stylesheets/spectre/src/_tables.scss +45 -0
  59. data/vendor/assets/stylesheets/spectre/src/_tabs.scss +62 -0
  60. data/vendor/assets/stylesheets/spectre/src/_tiles.scss +38 -0
  61. data/vendor/assets/stylesheets/spectre/src/_timelines.scss +55 -0
  62. data/vendor/assets/stylesheets/spectre/src/_toasts.scss +41 -0
  63. data/vendor/assets/stylesheets/spectre/src/_tooltips.scss +77 -0
  64. data/vendor/assets/stylesheets/spectre/src/_typography.scss +127 -0
  65. data/vendor/assets/stylesheets/spectre/src/_utilities.scss +7 -0
  66. data/vendor/assets/stylesheets/spectre/src/_variables.scss +105 -0
  67. data/vendor/assets/stylesheets/spectre/src/utilities/_colors.scss +45 -0
  68. data/vendor/assets/stylesheets/spectre/src/utilities/_display.scss +47 -0
  69. data/vendor/assets/stylesheets/spectre/src/utilities/_divider.scss +50 -0
  70. data/vendor/assets/stylesheets/spectre/src/utilities/_loading.scss +34 -0
  71. data/vendor/assets/stylesheets/spectre/src/utilities/_position.scss +35 -0
  72. data/vendor/assets/stylesheets/spectre/src/utilities/_shapes.scss +7 -0
  73. data/vendor/assets/stylesheets/spectre/src/utilities/_text.scss +52 -0
  74. metadata +157 -0
@@ -0,0 +1,45 @@
1
+ // Tables
2
+ .table {
3
+ border-collapse: collapse;
4
+ border-spacing: 0;
5
+ text-align: left;
6
+ width: 100%;
7
+
8
+ &.table-striped {
9
+ tbody {
10
+ tr:nth-of-type(odd) {
11
+ background: $bg-color;
12
+ }
13
+ }
14
+ }
15
+
16
+ &.table-hover {
17
+ tbody {
18
+ tr {
19
+ &:hover {
20
+ background: $bg-color-dark;
21
+ }
22
+ }
23
+ }
24
+ }
25
+
26
+ &,
27
+ &.table-striped {
28
+ tbody {
29
+ tr {
30
+ &.active {
31
+ background: $bg-color-dark;
32
+ }
33
+ }
34
+ }
35
+ }
36
+
37
+ td,
38
+ th {
39
+ border-bottom: $border-width solid $border-color;
40
+ padding: $unit-3 $unit-2;
41
+ }
42
+ th {
43
+ border-bottom-width: $border-width-lg;
44
+ }
45
+ }
@@ -0,0 +1,62 @@
1
+ // Tabs
2
+ .tab {
3
+ align-items: center;
4
+ border-bottom: $border-width solid $border-color;
5
+ display: flex;
6
+ flex-wrap: wrap;
7
+ list-style: none;
8
+ margin: $unit-1 0 $unit-1 - $border-width 0;
9
+
10
+ .tab-item {
11
+ margin-top: 0;
12
+
13
+ &.tab-action {
14
+ flex: 1 0 auto;
15
+ text-align: right;
16
+ }
17
+
18
+ a {
19
+ border-bottom: $border-width-lg solid transparent;
20
+ color: inherit;
21
+ display: block;
22
+ margin: 0 $unit-2 0 0;
23
+ padding: $unit-2 $unit-1 $unit-2 - $border-width-lg $unit-1;
24
+ text-decoration: none;
25
+ &:focus,
26
+ &:hover {
27
+ color: $link-color;
28
+ }
29
+ }
30
+ &.active a,
31
+ a.active {
32
+ border-bottom-color: $primary-color;
33
+ color: $link-color;
34
+ }
35
+ }
36
+
37
+ &.tab-block {
38
+ .tab-item {
39
+ flex: 1 0 0;
40
+ text-align: center;
41
+
42
+ a {
43
+ margin: 0;
44
+ }
45
+
46
+ .badge {
47
+ &[data-badge]::after {
48
+ position: absolute;
49
+ right: -4px;
50
+ top: -4px;
51
+ transform: translate(0, 0);
52
+ }
53
+ }
54
+ }
55
+ }
56
+
57
+ &:not(.tab-block) {
58
+ .badge {
59
+ padding-right: 2px;
60
+ }
61
+ }
62
+ }
@@ -0,0 +1,38 @@
1
+ // Tiles
2
+ .tile {
3
+ align-content: space-between;
4
+ align-items: flex-start;
5
+ display: flex;
6
+
7
+ .tile-icon,
8
+ .tile-action {
9
+ flex: 0 0 auto;
10
+ }
11
+ .tile-content {
12
+ flex: 1 1 auto;
13
+ &:not(:first-child) {
14
+ padding-left: $unit-2;
15
+ }
16
+ &:not(:last-child) {
17
+ padding-right: $unit-2;
18
+ }
19
+ }
20
+ .tile-title,
21
+ .tile-subtitle {
22
+ line-height: $line-height;
23
+ }
24
+
25
+ &.tile-centered {
26
+ align-items: center;
27
+
28
+ .tile-content {
29
+ overflow: hidden;
30
+ }
31
+
32
+ .tile-title,
33
+ .tile-subtitle {
34
+ margin-bottom: 0;
35
+ @extend .text-ellipsis;
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,55 @@
1
+ // Timelines
2
+ .timeline {
3
+ .timeline-item {
4
+ display: flex;
5
+ margin-bottom: $unit-6;
6
+ position: relative;
7
+ &::before {
8
+ background: $border-color;
9
+ content: "";
10
+ height: 100%;
11
+ left: 11px;
12
+ position: absolute;
13
+ top: $unit-6;
14
+ width: 2px;
15
+ }
16
+
17
+ .timeline-left {
18
+ flex: 0 0 auto;
19
+ }
20
+
21
+ .timeline-content {
22
+ flex: 1 1 auto;
23
+ padding: 2px 0 2px $layout-spacing-lg;
24
+ }
25
+
26
+ .timeline-icon {
27
+ border-radius: 50%;
28
+ color: $light-color;
29
+ display: block;
30
+ height: $unit-6;
31
+ text-align: center;
32
+ width: $unit-6;
33
+ &::before {
34
+ border: $border-width-lg solid $primary-color;
35
+ border-radius: 50%;
36
+ content: "";
37
+ display: block;
38
+ height: $unit-2;
39
+ left: $unit-2;
40
+ position: absolute;
41
+ top: $unit-2;
42
+ width: $unit-2;
43
+ }
44
+
45
+ &.icon-lg {
46
+ background: $primary-color;
47
+ font-size: $font-size-lg;
48
+ line-height: $line-height;
49
+ &::before {
50
+ content: none;
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
@@ -0,0 +1,41 @@
1
+ // Toasts
2
+ .toast {
3
+ border: $border-width solid $dark-color;
4
+ border-radius: $border-radius;
5
+ color: $light-color;
6
+ display: block;
7
+ padding: $layout-spacing;
8
+ @include toast-variant($dark-color);
9
+ width: 100%;
10
+
11
+ &.toast-primary {
12
+ @include toast-variant($primary-color);
13
+ }
14
+
15
+ &.toast-success {
16
+ @include toast-variant($success-color);
17
+ }
18
+
19
+ &.toast-warning {
20
+ @include toast-variant($warning-color);
21
+ }
22
+
23
+ &.toast-error {
24
+ @include toast-variant($error-color);
25
+ }
26
+
27
+ a {
28
+ color: $light-color;
29
+ text-decoration: underline;
30
+ &:focus,
31
+ &:hover,
32
+ &:active,
33
+ &.active {
34
+ opacity: .75;
35
+ }
36
+ }
37
+
38
+ .btn-clear {
39
+ margin: 2px -2px 2px 4px;
40
+ }
41
+ }
@@ -0,0 +1,77 @@
1
+ // Tooltips
2
+ .tooltip {
3
+ position: relative;
4
+ &::after {
5
+ background: rgba($dark-color, .9);
6
+ border-radius: $border-radius;
7
+ bottom: 100%;
8
+ color: $light-color;
9
+ content: attr(data-tooltip);
10
+ display: block;
11
+ font-size: $font-size-sm;
12
+ left: 50%;
13
+ max-width: $control-max-width;
14
+ opacity: 0;
15
+ overflow: hidden;
16
+ padding: $unit-1 $unit-2;
17
+ pointer-events: none;
18
+ position: absolute;
19
+ text-overflow: ellipsis;
20
+ transform: translate(-50%, $unit-2);
21
+ transition: all .2s ease;
22
+ white-space: nowrap;
23
+ z-index: $zindex-3;
24
+ }
25
+ &:focus,
26
+ &:hover {
27
+ &::after {
28
+ opacity: 1;
29
+ transform: translate(-50%, -$unit-1);
30
+ }
31
+ }
32
+ &[disabled],
33
+ &.disabled {
34
+ pointer-events: auto;
35
+ }
36
+
37
+ &.tooltip-right {
38
+ &::after {
39
+ bottom: 50%;
40
+ left: 100%;
41
+ transform: translate(-$unit-1, 50%);
42
+ }
43
+ &:focus,
44
+ &:hover {
45
+ &::after {
46
+ transform: translate($unit-1, 50%);
47
+ }
48
+ }
49
+ }
50
+ &.tooltip-bottom {
51
+ &::after {
52
+ bottom: auto;
53
+ top: 100%;
54
+ transform: translate(-50%, -$unit-2);
55
+ }
56
+ &:focus,
57
+ &:hover {
58
+ &::after {
59
+ transform: translate(-50%, $unit-1);
60
+ }
61
+ }
62
+ }
63
+ &.tooltip-left {
64
+ &::after {
65
+ bottom: 50%;
66
+ left: auto;
67
+ right: 100%;
68
+ transform: translate($unit-2, 50%);
69
+ }
70
+ &:focus,
71
+ &:hover {
72
+ &::after {
73
+ transform: translate(-$unit-1, 50%);
74
+ }
75
+ }
76
+ }
77
+ }
@@ -0,0 +1,127 @@
1
+ // Typography
2
+ // Headings
3
+ h1,
4
+ h2,
5
+ h3,
6
+ h4,
7
+ h5,
8
+ h6 {
9
+ color: inherit;
10
+ font-weight: 500;
11
+ line-height: 1.2;
12
+ margin-bottom: .25em;
13
+ margin-top: 0;
14
+ }
15
+ .h1,
16
+ .h2,
17
+ .h3,
18
+ .h4,
19
+ .h5,
20
+ .h6 {
21
+ font-weight: 500;
22
+ }
23
+ h1,
24
+ .h1 {
25
+ font-size: 2rem;
26
+ }
27
+ h2,
28
+ .h2 {
29
+ font-size: 1.6rem;
30
+ }
31
+ h3,
32
+ .h3 {
33
+ font-size: 1.4rem;
34
+ }
35
+ h4,
36
+ .h4 {
37
+ font-size: 1.2rem;
38
+ }
39
+ h5,
40
+ .h5 {
41
+ font-size: 1rem;
42
+ }
43
+ h6,
44
+ .h6 {
45
+ font-size: .8rem;
46
+ }
47
+
48
+ // Paragraphs
49
+ p {
50
+ line-height: 1.2 * $line-height;
51
+ margin: 0 0 $unit-4;
52
+ }
53
+
54
+ // Semantic text elements
55
+ a,
56
+ ins,
57
+ u {
58
+ text-decoration-skip: ink edges;
59
+ }
60
+
61
+ abbr[title] {
62
+ border-bottom: $border-width dotted;
63
+ cursor: help;
64
+ text-decoration: none;
65
+ }
66
+
67
+ kbd {
68
+ @include label-base();
69
+ @include label-variant($light-color, $dark-color);
70
+ }
71
+
72
+ mark {
73
+ @include label-base();
74
+ @include label-variant($body-font-color, $highlight-color);
75
+ }
76
+
77
+ // Blockquote
78
+ blockquote {
79
+ border-left: $border-width-lg solid $border-color;
80
+ margin-left: 0;
81
+ padding: $unit-2 $unit-4;
82
+
83
+ p:last-child {
84
+ margin-bottom: 0;
85
+ }
86
+ }
87
+
88
+ // Lists
89
+ ul,
90
+ ol {
91
+ margin: $unit-4 0 $unit-4 $unit-4;
92
+ padding: 0;
93
+
94
+ ul,
95
+ ol {
96
+ margin: $unit-4 0 $unit-4 $unit-4;
97
+ }
98
+
99
+ li {
100
+ margin-top: $unit-2;
101
+ }
102
+ }
103
+
104
+ ul {
105
+ list-style: disc inside;
106
+
107
+ ul {
108
+ list-style-type: circle;
109
+ }
110
+ }
111
+
112
+ ol {
113
+ list-style: decimal inside;
114
+
115
+ ol {
116
+ list-style-type: lower-alpha;
117
+ }
118
+ }
119
+
120
+ dl {
121
+ dt {
122
+ font-weight: bold;
123
+ }
124
+ dd {
125
+ margin: $unit-2 0 $unit-4 0;
126
+ }
127
+ }