coreui-rails 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -0
  3. data/Gemfile +6 -0
  4. data/Gemfile.lock +27 -0
  5. data/LICENSE +21 -0
  6. data/README.md +40 -0
  7. data/Rakefile +2 -0
  8. data/app/assets/stylesheets/_bootstrap-variables.scss +119 -0
  9. data/app/assets/stylesheets/_coreui-variables.scss +1 -0
  10. data/app/assets/stylesheets/_custom.scss +1 -0
  11. data/app/assets/stylesheets/bootstrap/_alert.scss +51 -0
  12. data/app/assets/stylesheets/bootstrap/_badge.scss +47 -0
  13. data/app/assets/stylesheets/bootstrap/_breadcrumb.scss +38 -0
  14. data/app/assets/stylesheets/bootstrap/_button-group.scss +166 -0
  15. data/app/assets/stylesheets/bootstrap/_buttons.scss +143 -0
  16. data/app/assets/stylesheets/bootstrap/_card.scss +270 -0
  17. data/app/assets/stylesheets/bootstrap/_carousel.scss +191 -0
  18. data/app/assets/stylesheets/bootstrap/_close.scss +34 -0
  19. data/app/assets/stylesheets/bootstrap/_code.scss +56 -0
  20. data/app/assets/stylesheets/bootstrap/_custom-forms.scss +297 -0
  21. data/app/assets/stylesheets/bootstrap/_dropdown.scss +131 -0
  22. data/app/assets/stylesheets/bootstrap/_forms.scss +333 -0
  23. data/app/assets/stylesheets/bootstrap/_functions.scss +86 -0
  24. data/app/assets/stylesheets/bootstrap/_grid.scss +52 -0
  25. data/app/assets/stylesheets/bootstrap/_images.scss +42 -0
  26. data/app/assets/stylesheets/bootstrap/_input-group.scss +159 -0
  27. data/app/assets/stylesheets/bootstrap/_jumbotron.scss +16 -0
  28. data/app/assets/stylesheets/bootstrap/_list-group.scss +115 -0
  29. data/app/assets/stylesheets/bootstrap/_media.scss +8 -0
  30. data/app/assets/stylesheets/bootstrap/_mixins.scss +42 -0
  31. data/app/assets/stylesheets/bootstrap/_modal.scss +168 -0
  32. data/app/assets/stylesheets/bootstrap/_nav.scss +118 -0
  33. data/app/assets/stylesheets/bootstrap/_navbar.scss +311 -0
  34. data/app/assets/stylesheets/bootstrap/_pagination.scss +77 -0
  35. data/app/assets/stylesheets/bootstrap/_popover.scss +183 -0
  36. data/app/assets/stylesheets/bootstrap/_print.scss +124 -0
  37. data/app/assets/stylesheets/bootstrap/_progress.scss +33 -0
  38. data/app/assets/stylesheets/bootstrap/_reboot.scss +482 -0
  39. data/app/assets/stylesheets/bootstrap/_root.scss +19 -0
  40. data/app/assets/stylesheets/bootstrap/_tables.scss +180 -0
  41. data/app/assets/stylesheets/bootstrap/_tooltip.scss +115 -0
  42. data/app/assets/stylesheets/bootstrap/_transitions.scss +36 -0
  43. data/app/assets/stylesheets/bootstrap/_type.scss +125 -0
  44. data/app/assets/stylesheets/bootstrap/_utilities.scss +14 -0
  45. data/app/assets/stylesheets/bootstrap/_variables.scss +894 -0
  46. data/app/assets/stylesheets/bootstrap/bootstrap-grid.scss +32 -0
  47. data/app/assets/stylesheets/bootstrap/bootstrap-reboot.scss +12 -0
  48. data/app/assets/stylesheets/bootstrap/bootstrap.scss +42 -0
  49. data/app/assets/stylesheets/bootstrap/mixins/_alert.scss +13 -0
  50. data/app/assets/stylesheets/bootstrap/mixins/_background-variant.scss +21 -0
  51. data/app/assets/stylesheets/bootstrap/mixins/_badge.scss +12 -0
  52. data/app/assets/stylesheets/bootstrap/mixins/_border-radius.scss +35 -0
  53. data/app/assets/stylesheets/bootstrap/mixins/_box-shadow.scss +5 -0
  54. data/app/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +123 -0
  55. data/app/assets/stylesheets/bootstrap/mixins/_buttons.scss +109 -0
  56. data/app/assets/stylesheets/bootstrap/mixins/_caret.scss +65 -0
  57. data/app/assets/stylesheets/bootstrap/mixins/_clearfix.scss +7 -0
  58. data/app/assets/stylesheets/bootstrap/mixins/_float.scss +11 -0
  59. data/app/assets/stylesheets/bootstrap/mixins/_forms.scss +137 -0
  60. data/app/assets/stylesheets/bootstrap/mixins/_gradients.scss +45 -0
  61. data/app/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +67 -0
  62. data/app/assets/stylesheets/bootstrap/mixins/_grid.scss +52 -0
  63. data/app/assets/stylesheets/bootstrap/mixins/_hover.scss +39 -0
  64. data/app/assets/stylesheets/bootstrap/mixins/_image.scss +36 -0
  65. data/app/assets/stylesheets/bootstrap/mixins/_list-group.scss +21 -0
  66. data/app/assets/stylesheets/bootstrap/mixins/_lists.scss +7 -0
  67. data/app/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +10 -0
  68. data/app/assets/stylesheets/bootstrap/mixins/_navbar-align.scss +10 -0
  69. data/app/assets/stylesheets/bootstrap/mixins/_pagination.scss +22 -0
  70. data/app/assets/stylesheets/bootstrap/mixins/_reset-text.scss +17 -0
  71. data/app/assets/stylesheets/bootstrap/mixins/_resize.scss +6 -0
  72. data/app/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +35 -0
  73. data/app/assets/stylesheets/bootstrap/mixins/_size.scss +6 -0
  74. data/app/assets/stylesheets/bootstrap/mixins/_table-row.scss +30 -0
  75. data/app/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +14 -0
  76. data/app/assets/stylesheets/bootstrap/mixins/_text-hide.scss +9 -0
  77. data/app/assets/stylesheets/bootstrap/mixins/_text-truncate.scss +8 -0
  78. data/app/assets/stylesheets/bootstrap/mixins/_transition.scss +9 -0
  79. data/app/assets/stylesheets/bootstrap/mixins/_visibility.scss +7 -0
  80. data/app/assets/stylesheets/bootstrap/utilities/_align.scss +8 -0
  81. data/app/assets/stylesheets/bootstrap/utilities/_background.scss +19 -0
  82. data/app/assets/stylesheets/bootstrap/utilities/_borders.scss +59 -0
  83. data/app/assets/stylesheets/bootstrap/utilities/_clearfix.scss +3 -0
  84. data/app/assets/stylesheets/bootstrap/utilities/_display.scss +38 -0
  85. data/app/assets/stylesheets/bootstrap/utilities/_embed.scss +52 -0
  86. data/app/assets/stylesheets/bootstrap/utilities/_flex.scss +46 -0
  87. data/app/assets/stylesheets/bootstrap/utilities/_float.scss +9 -0
  88. data/app/assets/stylesheets/bootstrap/utilities/_position.scss +36 -0
  89. data/app/assets/stylesheets/bootstrap/utilities/_screenreaders.scss +11 -0
  90. data/app/assets/stylesheets/bootstrap/utilities/_sizing.scss +12 -0
  91. data/app/assets/stylesheets/bootstrap/utilities/_spacing.scss +51 -0
  92. data/app/assets/stylesheets/bootstrap/utilities/_text.scss +52 -0
  93. data/app/assets/stylesheets/bootstrap/utilities/_visibility.scss +11 -0
  94. data/app/assets/stylesheets/coreui-free.scss +18 -0
  95. data/app/assets/stylesheets/coreui/_animate.scss +27 -0
  96. data/app/assets/stylesheets/coreui/_aside.scss +64 -0
  97. data/app/assets/stylesheets/coreui/_avatars.scss +51 -0
  98. data/app/assets/stylesheets/coreui/_badge.scss +3 -0
  99. data/app/assets/stylesheets/coreui/_brand-card.scss +51 -0
  100. data/app/assets/stylesheets/coreui/_brands-buttons.scss +47 -0
  101. data/app/assets/stylesheets/coreui/_breadcrumb-menu.scss +36 -0
  102. data/app/assets/stylesheets/coreui/_breadcrumb.scss +4 -0
  103. data/app/assets/stylesheets/coreui/_buttons.scss +18 -0
  104. data/app/assets/stylesheets/coreui/_callout.scss +55 -0
  105. data/app/assets/stylesheets/coreui/_card.scss +107 -0
  106. data/app/assets/stylesheets/coreui/_charts.scss +7 -0
  107. data/app/assets/stylesheets/coreui/_deprecated.scss +175 -0
  108. data/app/assets/stylesheets/coreui/_dropdown-menu-right.scss +8 -0
  109. data/app/assets/stylesheets/coreui/_dropdown.scss +69 -0
  110. data/app/assets/stylesheets/coreui/_footer.scss +9 -0
  111. data/app/assets/stylesheets/coreui/_grid.scss +15 -0
  112. data/app/assets/stylesheets/coreui/_input-group.scss +6 -0
  113. data/app/assets/stylesheets/coreui/_layout.scss +399 -0
  114. data/app/assets/stylesheets/coreui/_loading.scss +128 -0
  115. data/app/assets/stylesheets/coreui/_mixins.scss +116 -0
  116. data/app/assets/stylesheets/coreui/_modal.scss +13 -0
  117. data/app/assets/stylesheets/coreui/_nav.scss +35 -0
  118. data/app/assets/stylesheets/coreui/_navbar.scss +135 -0
  119. data/app/assets/stylesheets/coreui/_others.scss +4 -0
  120. data/app/assets/stylesheets/coreui/_progress-group.scss +40 -0
  121. data/app/assets/stylesheets/coreui/_progress.scss +15 -0
  122. data/app/assets/stylesheets/coreui/_rtl.scss +281 -0
  123. data/app/assets/stylesheets/coreui/_sidebar.scss +454 -0
  124. data/app/assets/stylesheets/coreui/_switches.scss +301 -0
  125. data/app/assets/stylesheets/coreui/_tables.scss +20 -0
  126. data/app/assets/stylesheets/coreui/_temp.scss +39 -0
  127. data/app/assets/stylesheets/coreui/_utilities.scss +4 -0
  128. data/app/assets/stylesheets/coreui/_variables.scss +243 -0
  129. data/app/assets/stylesheets/coreui/_widgets.scss +79 -0
  130. data/app/assets/stylesheets/coreui/coreui.scss +47 -0
  131. data/app/assets/stylesheets/coreui/utilities/_background.scss +20 -0
  132. data/app/assets/stylesheets/coreui/utilities/_borders.scss +18 -0
  133. data/app/assets/stylesheets/coreui/utilities/_display.scss +18 -0
  134. data/app/assets/stylesheets/coreui/utilities/_typography.scss +46 -0
  135. data/coreui-rails.gemspec +19 -0
  136. data/lib/coreui_rails.rb +4 -0
  137. data/lib/coreui_rails/version.rb +3 -0
  138. metadata +195 -0
@@ -0,0 +1,4 @@
1
+ .breadcrumb {
2
+ position: relative;
3
+ @include borders($breadcrumb-borders);
4
+ }
@@ -0,0 +1,18 @@
1
+ button {
2
+ cursor: pointer;
3
+ }
4
+
5
+ .btn-transparent {
6
+ color: #fff;
7
+ background-color: transparent;
8
+ border-color: transparent;
9
+ }
10
+
11
+ .btn {
12
+ [class^="icon-"],
13
+ [class*=" icon-"] {
14
+ display: inline-block;
15
+ margin-top: -2px;
16
+ vertical-align: middle;
17
+ }
18
+ }
@@ -0,0 +1,55 @@
1
+ .callout {
2
+ position: relative;
3
+ padding: 0 $spacer;
4
+ margin: $spacer 0;
5
+ border: 0 solid $border-color;
6
+ border-left-width: .25rem;
7
+
8
+ @if $enable-rounded {
9
+ border-radius: .25rem;
10
+ }
11
+
12
+ .chart-wrapper {
13
+ position: absolute;
14
+ top: 10px;
15
+ left: 50%;
16
+ float: right;
17
+ width: 50%;
18
+ }
19
+ }
20
+
21
+ .callout-bordered {
22
+ border: 1px solid $border-color;
23
+ border-left-width: .25rem;
24
+ }
25
+ .callout code {
26
+ border-radius: .25rem;
27
+ }
28
+ .callout h4 {
29
+ margin-top: 0;
30
+ margin-bottom: .25rem;
31
+ }
32
+ .callout p:last-child {
33
+ margin-bottom: 0;
34
+ }
35
+ .callout + .callout {
36
+ margin-top: - .25rem;
37
+ }
38
+
39
+ .callout-default {
40
+ border-left-color: $text-muted;
41
+
42
+ h4 {
43
+ color: $text-muted;
44
+ }
45
+ }
46
+
47
+ @each $color, $value in $theme-colors {
48
+ .callout-#{$color} {
49
+ border-left-color: $value;
50
+
51
+ h4 {
52
+ color: $value;
53
+ }
54
+ }
55
+ }
@@ -0,0 +1,107 @@
1
+ .card {
2
+ margin-bottom: ($spacer * 1.5);
3
+
4
+ // Cards with color accent
5
+ @each $color, $value in $theme-colors {
6
+ &.bg-#{$color} {
7
+ border-color: darken($value, 12.5%);
8
+ .card-header {
9
+ background-color: darken($value, 3%);
10
+ border-color: darken($value, 12.5%);
11
+ }
12
+ }
13
+ }
14
+
15
+ &.drag,
16
+ .drag {
17
+ cursor: move;
18
+ }
19
+ }
20
+
21
+ .card-placeholder {
22
+ background: rgba(0, 0, 0, .025);
23
+ border: 1px dashed $gray-300;
24
+ }
25
+
26
+ .card-header {
27
+ > i {
28
+ margin-right: $spacer / 2;
29
+ }
30
+
31
+ .nav-tabs {
32
+ margin-top: -$card-spacer-y;
33
+ margin-bottom: -$card-spacer-y;
34
+ border-bottom: 0;
35
+
36
+ .nav-item {
37
+ border-top: 0;
38
+ }
39
+
40
+ .nav-link {
41
+ padding: $card-spacer-y ($card-spacer-x / 2);
42
+ color: $text-muted;
43
+ border-top: 0;
44
+
45
+ &.active {
46
+ color: $body-color;
47
+ background: #fff;
48
+ }
49
+ }
50
+ }
51
+ }
52
+
53
+ .card-header-icon-bg {
54
+ display: inline-block;
55
+ width: ($card-spacer-y * 2) + ($font-size-base * $line-height-base);
56
+ padding: $card-spacer-y 0;
57
+ margin: (- $card-spacer-y) $card-spacer-x (- $card-spacer-y) (- $card-spacer-x);
58
+ line-height: inherit;
59
+ color: $card-icon-color;
60
+ text-align: center;
61
+ background: $card-icon-bg;
62
+ border-right: $card-border-width solid $card-border-color;
63
+ }
64
+
65
+ .card-header-actions {
66
+ position: absolute;
67
+ top: 0;
68
+ right: 0;
69
+ display: inline-flex;
70
+ }
71
+
72
+ .card-header-action {
73
+ width: ($card-spacer-y * 2) + ($font-size-base * $line-height-base);
74
+ padding: $card-spacer-y 0;
75
+ color: $body-color;
76
+ text-align: center;
77
+ border-left: 1px solid $border-color;
78
+
79
+ &:hover {
80
+ text-decoration: none;
81
+ }
82
+ }
83
+
84
+
85
+ // Cards with color accent
86
+ @each $color, $value in $theme-colors {
87
+ .card-accent-#{$color} {
88
+ @include card-accent-variant($value);
89
+ }
90
+ }
91
+
92
+ .card-full {
93
+ margin-top: - $spacer;
94
+ margin-right: - $grid-gutter-width / 2;
95
+ margin-left: - $grid-gutter-width / 2;
96
+ border: 0;
97
+ border-bottom: $card-border-width solid $border-color;
98
+ }
99
+
100
+ @include media-breakpoint-up(sm) {
101
+ .card-columns {
102
+
103
+ &.cols-2 {
104
+ column-count: 2;
105
+ }
106
+ }
107
+ }
@@ -0,0 +1,7 @@
1
+ .chart-wrapper canvas {
2
+ width: 100%;
3
+ }
4
+ // stylelint-disable selector-no-qualifying-type, selector-type-no-unknown
5
+ base-chart.chart {
6
+ display: block;
7
+ }
@@ -0,0 +1,175 @@
1
+ // stylelint-disable
2
+ .horizontal-bars {
3
+ padding: 0;
4
+ margin: 0;
5
+ list-style: none;
6
+
7
+ li {
8
+ position: relative;
9
+ height: 40px;
10
+ line-height: 40px;
11
+ vertical-align: middle;
12
+
13
+ .title {
14
+ width: 100px;
15
+ font-size: 12px;
16
+ font-weight: 600;
17
+ color: $text-muted;
18
+ vertical-align: middle;
19
+ }
20
+
21
+ .bars {
22
+ position: absolute;
23
+ top: 15px;
24
+ width: 100%;
25
+ padding-left: 100px;
26
+
27
+ .progress:first-child {
28
+ margin-bottom: 2px;
29
+ }
30
+ }
31
+
32
+ &.legend {
33
+ text-align: center;
34
+
35
+ .badge {
36
+ display: inline-block;
37
+ width: 8px;
38
+ height: 8px;
39
+ padding: 0;
40
+ }
41
+ }
42
+
43
+ &.divider {
44
+ height: 40px;
45
+
46
+ i {
47
+ margin: 0 !important;
48
+ }
49
+ }
50
+ }
51
+
52
+ &.type-2 {
53
+
54
+ li {
55
+ overflow: hidden;
56
+
57
+ i {
58
+ display: inline-block;
59
+ margin-right: $spacer;
60
+ margin-left: 5px;
61
+ font-size: 18px;
62
+ line-height: 40px;
63
+ }
64
+
65
+ .title {
66
+ display: inline-block;
67
+ width: auto;
68
+ margin-top: -9px;
69
+ font-size: $font-size-base;
70
+ font-weight: normal;
71
+ line-height: 40px;
72
+ color: $body-color;
73
+ }
74
+
75
+ .value {
76
+ float: right;
77
+ font-weight: 600;
78
+ }
79
+
80
+ .bars {
81
+ position: absolute;
82
+ top: auto;
83
+ bottom: 0;
84
+ padding: 0;
85
+ }
86
+ }
87
+ }
88
+ }
89
+
90
+
91
+ // .social-box
92
+ .social-box {
93
+ min-height: 160px;
94
+ margin-bottom: 2 * $card-spacer-y;
95
+ text-align: center;
96
+ background: #fff;
97
+ border: $card-border-width solid $card-border-color;
98
+ @include border-radius($card-border-radius);
99
+
100
+ i {
101
+ display: block;
102
+ margin: -1px -1px 0;
103
+ font-size: 40px;
104
+ line-height: 90px;
105
+ background: $gray-200;
106
+
107
+ @include border-radius($card-border-radius $card-border-radius 0 0);
108
+ }
109
+
110
+ .chart-wrapper {
111
+ height: 90px;
112
+ margin: -90px 0 0;
113
+
114
+ canvas {
115
+ width: 100%;
116
+ height: 90px;
117
+ }
118
+ }
119
+
120
+ ul {
121
+ padding: 10px 0;
122
+ list-style: none;
123
+
124
+
125
+ li {
126
+ display: block;
127
+ float: left;
128
+ width: 50%;
129
+
130
+ &:first-child {
131
+ border-right: 1px solid $border-color;
132
+ }
133
+
134
+ strong {
135
+ display: block;
136
+ font-size: 20px;
137
+ }
138
+
139
+ span {
140
+ font-size: 10px;
141
+ font-weight: 500;
142
+ color: $border-color;
143
+ text-transform: uppercase;
144
+ }
145
+ }
146
+ }
147
+
148
+ &.facebook {
149
+ i {
150
+ color: #fff;
151
+ background: $facebook;
152
+ }
153
+ }
154
+
155
+ &.twitter {
156
+ i {
157
+ color: #fff;
158
+ background: $twitter;
159
+ }
160
+ }
161
+
162
+ &.linkedin {
163
+ i {
164
+ color: #fff;
165
+ background: $linkedin;
166
+ }
167
+ }
168
+
169
+ &.google-plus {
170
+ i {
171
+ color: #fff;
172
+ background: $google-plus;
173
+ }
174
+ }
175
+ }
@@ -0,0 +1,8 @@
1
+ // Temp fix for reactstrap
2
+ .app-header {
3
+ .navbar-nav {
4
+ .dropdown-menu-right {
5
+ right: auto;
6
+ }
7
+ }
8
+ }
@@ -0,0 +1,69 @@
1
+ // Links, buttons, and more within the dropdown menu
2
+ .dropdown-item {
3
+ position: relative;
4
+ padding: 10px 20px;
5
+ border-bottom: 1px solid $dropdown-border-color;
6
+
7
+ &:last-child {
8
+ border-bottom: 0;
9
+ }
10
+
11
+ i {
12
+ display: inline-block;
13
+ width: 20px;
14
+ margin-right: 10px;
15
+ margin-left: -10px;
16
+ color: $dropdown-border-color;
17
+ text-align: center;
18
+ }
19
+
20
+ .badge {
21
+ position: absolute;
22
+ right: 10px;
23
+ margin-top: 2px;
24
+ }
25
+ }
26
+
27
+ // Dropdown section headers
28
+ .dropdown-header {
29
+ padding: 8px 20px;
30
+ background: $dropdown-divider-bg;
31
+ border-bottom: 1px solid $dropdown-border-color;
32
+
33
+ .btn {
34
+ margin-top: -7px;
35
+ color: $dropdown-header-color;
36
+
37
+ &:hover {
38
+ color: $body-color;
39
+ }
40
+
41
+ &.pull-right {
42
+ margin-right: -20px;
43
+ }
44
+ }
45
+ }
46
+
47
+ .dropdown-menu-lg {
48
+ width: 250px;
49
+ }
50
+ .app-header {
51
+ .navbar-nav {
52
+ .dropdown-menu {
53
+ position: absolute;
54
+ }
55
+ // Menu positioning
56
+ //
57
+ // Add extra class to `.dropdown-menu` to flip the alignment of the dropdown
58
+ // menu with the parent.
59
+ .dropdown-menu-right {
60
+ right: 0;
61
+ left: auto; // Reset the default from `.dropdown-menu`
62
+ }
63
+
64
+ .dropdown-menu-left {
65
+ right: auto;
66
+ left: 0;
67
+ }
68
+ }
69
+ }