cactu 0.19.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6bfacaa91debe34ff5eff279d850f34ea53ff5b88180b6a368e386514e8cf4a4
4
- data.tar.gz: 3995002eb8779ddc00be649fad921905a4599a468bff096dd73d4940b448a719
3
+ metadata.gz: d1ef68a04f0ebc1fe76663af23c8a8bd10af01b62295757944b06c396f185a8c
4
+ data.tar.gz: ca972298bf55bd4956b6975d0073fbe4a888133dbb1e0e0ee6012105954c3834
5
5
  SHA512:
6
- metadata.gz: 3d539bd3bb7eae4a5ab71f81783d468d954615c72e32c7341e1ffaf5fba36a964ef63bb44ba7ab530a49d7fb28cf7c7f9cd16b8b47d2531be05bb53f755640e9
7
- data.tar.gz: b6384e9bdfbb280ef59775836db75fd91dc4d48a19aa774183a0e0cad5a8bb652d4c84c73b21349578721f59b09914d41fc480e6d11835f30e44f4740fb39870
6
+ metadata.gz: c26be16e6aa4624b6cb8e2f4e7dd83fb8f7adc26b47a7f36c980e5a2c69fbed471cd2956325f6823d08781115badb039a0e2f1cd8539510d098383cb29bafcda
7
+ data.tar.gz: 85923d5dcbcaaa526c388028ac3c1d9d2eaff48b8ad4191efc122534782ce0680057fdfd5853611296b0470e78b28dbd9faba01e29c92bb83143c26963f1b60d
data/README.md CHANGED
@@ -11,7 +11,7 @@ Cactu is a Sass framework to create webs easily, created to be simple, semantic,
11
11
  Add this line to your application's Gemfile:
12
12
 
13
13
  ```ruby
14
- gem 'cactu', '~> 0.19.0'
14
+ gem 'cactu', '~> 0.20.0'
15
15
  ```
16
16
 
17
17
  Ensure that `sprockets-rails` is at least v2.3.2.
@@ -0,0 +1,12 @@
1
+ //
2
+ // ----------------------------------------------------------------
3
+ // Examples
4
+ // ----------------------------------------------------------------
5
+
6
+ .empty-column {
7
+ width: 100%;
8
+ padding: 1rem .5rem;
9
+ margin-bottom: .7rem;
10
+ font-size: 13px;
11
+ background-color: $gray-200;
12
+ }
@@ -29,7 +29,7 @@ $white-smoke: #f5f5f5;
29
29
  // Typography
30
30
  //
31
31
  $font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;
32
- $font-family-monospace: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !default;
32
+ $font-family-monospace: Monaco, Menlo, Consolas, "Liberation Mono", "Courier New", monospace !default;
33
33
  $font-family: $font-family-sans-serif !default;
34
34
  $font-size: 16px !default;
35
35
 
@@ -59,4 +59,4 @@ $speed: .15s !default;
59
59
  $line-height: 1.5 !default;
60
60
  $transition-all: all $speed ease-in-out !default;
61
61
  $outline-width: .125rem !default;
62
- $zindex-top: 1000 !default;
62
+ $zindex-top: 1000 !default;
@@ -0,0 +1,61 @@
1
+ //
2
+ // Grid mixins
3
+ // --------------------------------------------------
4
+ //
5
+ // Based on:
6
+ // http://meyerweb.com/eric/tools/css/reset/
7
+ // v2.0 | 20110126
8
+ // License: none (public domain)
9
+ //
10
+ // 1. Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border`.
11
+ // 2. Addition div tag for display: block
12
+
13
+
14
+ *,
15
+ *::before,
16
+ *::after {
17
+ box-sizing: border-box;
18
+ }
19
+
20
+ html, body, div, span, applet, object, iframe,
21
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
22
+ a, abbr, acronym, address, big, cite, code,
23
+ del, dfn, em, img, ins, kbd, q, s, samp,
24
+ small, strike, strong, sub, sup, tt, var,
25
+ b, u, i, center,ƒ
26
+ dl, dt, dd, ol, ul, li,
27
+ fieldset, form, label, legend,
28
+ table, caption, tbody, tfoot, thead, tr, th, td,
29
+ article, aside, canvas, details, embed,
30
+ figure, figcaption, footer, header, hgroup,
31
+ menu, nav, output, ruby, section, summary,
32
+ time, mark, audio, video {
33
+ margin: 0;
34
+ padding: 0;
35
+ border: 0;
36
+ font-size: 100%;
37
+ font: inherit;
38
+ vertical-align: baseline;
39
+ }
40
+ div, article, aside, details, figcaption, figure,
41
+ footer, header, hgroup, menu, nav, section {
42
+ display: block;
43
+ }
44
+ body {
45
+ line-height: 1;
46
+ }
47
+ ol, ul {
48
+ list-style: none;
49
+ }
50
+ blockquote, q {
51
+ quotes: none;
52
+ }
53
+ blockquote:before, blockquote:after,
54
+ q:before, q:after {
55
+ content: '';
56
+ content: none;
57
+ }
58
+ table {
59
+ border-collapse: collapse;
60
+ border-spacing: 0;
61
+ }
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * Cactu v0.19.0 (http://cactu.site/)
3
- * Copyright 2018 Giovanni Mendoza
2
+ * Cactu v0.20.0 (http://cactu.site/)
3
+ * Copyright 2018-2019 Giovanni Mendoza
4
4
  * Licensed under MIT (https://github.com/mendozagioo/cactu/blob/master/LICENSE)
5
5
  */
6
6
 
@@ -17,10 +17,10 @@
17
17
  @import "mixins/breakpoints";
18
18
  @import "mixins/buttons";
19
19
  @import "mixins/forms";
20
- @import "mixins/grid";
21
- @import "mixins/hover";
20
+ @import "mixins/grids";
21
+ @import "mixins/hovers";
22
22
  @import "mixins/icons";
23
- @import "mixins/navbar";
23
+ @import "mixins/navbars";
24
24
  @import "mixins/positions";
25
25
  @import "mixins/transition";
26
26
 
@@ -32,6 +32,7 @@
32
32
  @import "elements/typography";
33
33
 
34
34
  @import "components/alerts";
35
+ @import "components/breadcrumbs";
35
36
  @import "components/buttons";
36
37
  @import "components/collapse";
37
38
  @import "components/dropdowns";
@@ -46,4 +47,4 @@
46
47
  @import "components/tooltips";
47
48
 
48
49
  @import "utilities/classes";
49
- @import "utilities/syntax";
50
+ @import "utilities/syntax";
@@ -0,0 +1,3 @@
1
+ //
2
+ // Blockquotes
3
+ // --------------------------------------------------
@@ -0,0 +1,47 @@
1
+ //
2
+ // Breadcrumbs
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Variables
7
+ //
8
+ $breadcrumb-padding: 1rem 0 !default;
9
+ $breadcrumb-margin: 0 !default;
10
+ $breadcrumb-decoration: none !default;
11
+ $breadcrumb-active-color: $text-color !default;
12
+ $breadcrumb-gap: .5rem !default;
13
+ $breadcrumn-divider: "/" !default;
14
+ $breadcrumn-divider-color: $text-color !default;
15
+
16
+
17
+ .breadcrumb {
18
+ list-style: none;
19
+ padding: $breadcrumb-padding;
20
+ margin: $breadcrumb-margin;
21
+
22
+ li {
23
+ display: inline-block;
24
+
25
+ + li {
26
+ padding-left: $breadcrumb-gap;
27
+
28
+ &:before {
29
+ display: inline-block;
30
+ content: $breadcrumn-divider;
31
+ color: $breadcrumn-divider-color;
32
+ padding-right: $breadcrumb-gap;
33
+ }
34
+ }
35
+
36
+ a {
37
+ @include hover-focus {
38
+ text-decoration: $breadcrumb-decoration;
39
+ }
40
+ }
41
+ }
42
+
43
+ .active {
44
+ color: $breadcrumb-active-color;
45
+ pointer-events: none;
46
+ }
47
+ }
@@ -76,4 +76,4 @@ $button-background-selected: darken($gray-200, 10%) !default;
76
76
  border-radius: $vertical-button-last-radius;
77
77
  }
78
78
  }
79
- }
79
+ }
@@ -0,0 +1,3 @@
1
+ //
2
+ // Figures
3
+ // --------------------------------------------------
@@ -9,6 +9,7 @@ $input-color: $text-color !default;
9
9
  $input-background: $white !default;
10
10
  $input-padding: .375rem .75rem !default;
11
11
  $input-border: $border-base !default;
12
+ $input-border-color-focus: $blue !default;
12
13
  $input-radius: $radius !default;
13
14
  $input-box-shadow: inset 0 1px 2px rgba($black, .075) !default;
14
15
  $input-placeholder-color: $gray-600 !default;
@@ -18,6 +19,7 @@ $disabled-color: darken($gray-500, 15%) !default;
18
19
  $help-font-size: .75rem !default;
19
20
  $help-margin-top: .25rem !default;
20
21
  $select-height: calc(2.25rem + 2px) !default;
22
+ $form-group-margin-bottom: 1rem !default;
21
23
  $custom-select-padding: .375rem 1.75rem .375rem .75rem !default;
22
24
  $custom-select-padding-x: .75rem !default;
23
25
  $custom-select-indicator-padding: 1rem !default;
@@ -46,7 +48,7 @@ textarea {
46
48
 
47
49
  &:focus {
48
50
  outline: 0;
49
- @include input-focus;
51
+ @include input-focus($input-border-color-focus);
50
52
  }
51
53
 
52
54
  &::placeholder {
@@ -118,7 +120,7 @@ select {
118
120
  }
119
121
 
120
122
  .form-group {
121
- margin-bottom: 1rem;
123
+ margin-bottom: $form-group-margin-bottom;
122
124
 
123
125
  input,
124
126
  select,
@@ -179,4 +181,4 @@ select {
179
181
  padding: 0;
180
182
  }
181
183
  }
182
- }
184
+ }
@@ -9,8 +9,8 @@ $pagination-margin: .5rem 0 !default;
9
9
  $pagination-item-padding: .25rem .625rem !default;
10
10
  $pagination-item-border-width: $border-width !default;
11
11
  $pagination-item-border: $pagination-item-border-width solid $border-color !default;
12
- $pagination-tem-background: $white !default;
13
- $pagination-item-background-hover: darken($pagination-tem-background, 5%) !default;
12
+ $pagination-item-background: $white !default;
13
+ $pagination-item-background-hover: darken($pagination-item-background, 5%) !default;
14
14
  $pagination-item-transition: background-color $speed ease-in-out, color $speed ease-in-out !default;
15
15
  $pagination-item-radius-first: $radius 0 0 $radius !default;
16
16
  $pagination-item-radius-last: 0 $radius $radius 0 !default;
@@ -69,7 +69,7 @@ $pagination-item-active-background: darken($pagination-item-background-hover
69
69
 
70
70
  &.disabled {
71
71
  @include hover-focus {
72
- background-color: $pagination-tem-background;
72
+ background-color: $pagination-item-background;
73
73
  }
74
74
  }
75
75
  }
@@ -0,0 +1,15 @@
1
+ //
2
+ // Sidebars
3
+ // --------------------------------------------------
4
+
5
+
6
+ .sidebar {
7
+ height: calc(100vh - 3.5rem);
8
+ position: sticky;
9
+ border-right: 1px solid $border-color;
10
+
11
+ @include breakpoint-cellphone {
12
+ height: auto;
13
+ border-right: 0;
14
+ }
15
+ }
@@ -46,4 +46,4 @@ th {
46
46
  th, td {
47
47
  border: 0;
48
48
  }
49
- }
49
+ }
@@ -7,7 +7,7 @@
7
7
  //
8
8
  $badge-color: $text-color !default;
9
9
  $badge-font-size: 80% !default;
10
- $badge-padding: .125rem .375rem;
10
+ $badge-padding: .125rem .375rem !default;
11
11
  $badge-border-radius: $radius !default;
12
12
  $badge-pill-border-radius: $radius-rounded !default;
13
13
  $badge-background: $gray-400 !default;
@@ -0,0 +1,41 @@
1
+ //
2
+ // Link
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Variables
7
+ //
8
+ $link-color: $blue !default;
9
+ $link-decoration: none !default;
10
+ $link-hover-color: darken($link-color, 10%) !default;
11
+ $link-hover-decoration: underline !default;
12
+ $link-transition: $transition-all !default;
13
+
14
+
15
+ a {
16
+ display: inline-block;
17
+ color: $link-color;
18
+ text-decoration: $link-decoration;
19
+ background-color: transparent;
20
+ @include transition($link-transition);
21
+ -webkit-text-decoration-skip: objects; // Remove gaps in links underline in iOS 8+ and Safari 8+.
22
+
23
+ @include hover-focus {
24
+ color: $link-hover-color;
25
+ text-decoration: $link-hover-decoration;
26
+ }
27
+ }
28
+
29
+ a:not([href]):not([tabindex]) {
30
+ color: inherit;
31
+ text-decoration: none;
32
+
33
+ @include hover-focus {
34
+ color: inherit;
35
+ text-decoration: none;
36
+ }
37
+
38
+ &:focus {
39
+ outline: 0;
40
+ }
41
+ }
@@ -0,0 +1,80 @@
1
+ //
2
+ // Type
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Variables
7
+ //
8
+ $headings-font-family: $font-family !default;
9
+ $headings-font-weight: $font-weight-bold !default;
10
+ $headings-color: $text-color !default;
11
+ $headings-margins: 1rem 0 .5rem !default;
12
+ $h1-font-size: $font-size * 2.6 !default;
13
+ $h2-font-size: $font-size * 2.1 !default;
14
+ $h3-font-size: $font-size * 1.8 !default;
15
+ $h4-font-size: $font-size * 1.5 !default;
16
+ $h5-font-size: $font-size * 1.2 !default;
17
+ $h6-font-size: $font-size !default;
18
+
19
+
20
+ abbr[title],
21
+ abbr[data-original-title] {
22
+ text-decoration: underline;
23
+ text-decoration: underline dotted;
24
+ cursor: help;
25
+ border-bottom: 0;
26
+ }
27
+
28
+ address {
29
+ margin-bottom: 1rem;
30
+ font-style: normal;
31
+ line-height: inherit;
32
+ }
33
+
34
+ blockquote {
35
+ margin: 0 0 1rem;
36
+ }
37
+
38
+ b,
39
+ strong {
40
+ font-weight: bolder;
41
+ }
42
+
43
+ small {
44
+ font-size: .8em; // 80%
45
+ }
46
+
47
+ span {
48
+ font-style: inherit;
49
+ font-weight: inherit;
50
+ }
51
+
52
+ sub,
53
+ sup {
54
+ position: relative;
55
+ font-size: .75em; // 75%
56
+ line-height: 0;
57
+ vertical-align: baseline;
58
+ }
59
+
60
+ sub { bottom: -.25em; }
61
+ sup { top: -.5em; }
62
+
63
+ p { margin-bottom: .7rem; }
64
+
65
+
66
+ // Headings
67
+ //
68
+ h1, h2, h3, h4, h5, h6 {
69
+ margin: $headings-margins;
70
+ font-family: $headings-font-family;
71
+ font-weight: $headings-font-weight;
72
+ color: $headings-color;
73
+ }
74
+
75
+ h1 { font-size: $h1-font-size; }
76
+ h2 { font-size: $h2-font-size; }
77
+ h3 { font-size: $h3-font-size; }
78
+ h4 { font-size: $h4-font-size; }
79
+ h5 { font-size: $h5-font-size; }
80
+ h6 { font-size: $h6-font-size; }
@@ -10,6 +10,11 @@ $yiq-text-dark: $text-color !default;
10
10
  $yiq-text-light: $white !default;
11
11
  $yiq-contrasted-threshold: 150 !default;
12
12
 
13
+ // Credit: Bootstrap functions
14
+ // https://github.com/twbs/bootstrap/blob/v4-dev/scss/_functions.scss
15
+ // v4.1.3
16
+ // License: MIT
17
+ //
13
18
 
14
19
  @function theme-color-level($color: $gray-300, $level: 0) {
15
20
  $color-base: if($level > 0, $black, $white);
@@ -20,12 +25,7 @@ $yiq-contrasted-threshold: 150 !default;
20
25
 
21
26
 
22
27
  // Color contrast
23
- // Credit: Bootstrap functions
24
- // https://github.com/twbs/bootstrap/blob/v4-dev/scss/_functions.scss
25
- // v4.1.3
26
- // License: MIT
27
- //
28
- @function color-yiq($color) {
28
+ @function color-yiq($color, $dark: $yiq-text-dark, $light: $yiq-text-light) {
29
29
  $r: red($color);
30
30
  $g: green($color);
31
31
  $b: blue($color);
@@ -33,8 +33,8 @@ $yiq-contrasted-threshold: 150 !default;
33
33
  $yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;
34
34
 
35
35
  @if ($yiq >= $yiq-contrasted-threshold) {
36
- @return $yiq-text-dark;
36
+ @return $dark;
37
37
  } @else {
38
- @return $yiq-text-light;
38
+ @return $light;
39
39
  }
40
40
  }
@@ -5,9 +5,18 @@
5
5
 
6
6
  // Converter pixels to rems
7
7
  @function px-rem($px: 1px, $rem: $font-size) {
8
- @if $px > 0 {
8
+ @if unit($px) == "px" {
9
9
  @return ($px / $rem) + rem;
10
10
  } @else {
11
11
  @return $px;
12
12
  }
13
+ }
14
+
15
+ // Converter pixels to ems
16
+ @function px-em($px: 1px, $em: $font-size) {
17
+ @if unit($px) == "px" {
18
+ @return ($px / $em) + em;
19
+ } @else {
20
+ @return $px;
21
+ }
13
22
  }
@@ -2,6 +2,11 @@
2
2
  // Strings function
3
3
  // --------------------------------------------------
4
4
 
5
+ // Credit: Bootstrap functions
6
+ // https://github.com/twbs/bootstrap/blob/v4-dev/scss/_functions.scss
7
+ // v4.1.3
8
+ // License: MIT
9
+ //
5
10
 
6
11
  @function str-replace($string, $search, $replace: "") {
7
12
  $index: str-index($string, $search);
@@ -27,7 +27,7 @@
27
27
  }
28
28
 
29
29
  @mixin validation-states($state, $color) {
30
- @include input-validation-state($state, $color);
30
+ @include input-validation-state($state, $color);
31
31
 
32
32
  .form-group {
33
33
  .#{$state}-feedback {
@@ -10,14 +10,6 @@
10
10
  }
11
11
  }
12
12
 
13
- @mixin plain-hover-focus {
14
- &,
15
- &:hover,
16
- &:focus {
17
- @content;
18
- }
19
- }
20
-
21
13
  @mixin hover-focus-active {
22
14
  &:hover,
23
15
  &:focus,
@@ -1,3 +1,3 @@
1
1
  module Cactu
2
- VERSION = "0.19.0"
2
+ VERSION = "0.20.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cactu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 0.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giovanni Mendoza
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-17 00:00:00.000000000 Z
11
+ date: 2019-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sassc
@@ -127,13 +127,18 @@ files:
127
127
  - README.md
128
128
  - Rakefile
129
129
  - assets/stylesheets/base/_blocks.scss
130
+ - assets/stylesheets/base/_examples.scss
130
131
  - assets/stylesheets/base/_global-variables.scss
131
132
  - assets/stylesheets/base/_reboot.scss
133
+ - assets/stylesheets/base/_reset.scss
132
134
  - assets/stylesheets/cactu.scss
133
135
  - assets/stylesheets/components/_alerts.scss
136
+ - assets/stylesheets/components/_blockquotes.scss
137
+ - assets/stylesheets/components/_breadcrumbs.scss
134
138
  - assets/stylesheets/components/_buttons.scss
135
139
  - assets/stylesheets/components/_collapse.scss
136
140
  - assets/stylesheets/components/_dropdowns.scss
141
+ - assets/stylesheets/components/_figures.scss
137
142
  - assets/stylesheets/components/_forms.scss
138
143
  - assets/stylesheets/components/_grids.scss
139
144
  - assets/stylesheets/components/_lists.scss
@@ -141,6 +146,7 @@ files:
141
146
  - assets/stylesheets/components/_navbars.scss
142
147
  - assets/stylesheets/components/_navs.scss
143
148
  - assets/stylesheets/components/_paginations.scss
149
+ - assets/stylesheets/components/_sidebars.scss
144
150
  - assets/stylesheets/components/_tables.scss
145
151
  - assets/stylesheets/components/_tooltips.scss
146
152
  - assets/stylesheets/elements/_badge.scss
@@ -148,6 +154,8 @@ files:
148
154
  - assets/stylesheets/elements/_code.scss
149
155
  - assets/stylesheets/elements/_icon.scss
150
156
  - assets/stylesheets/elements/_image.scss
157
+ - assets/stylesheets/elements/_link.scss
158
+ - assets/stylesheets/elements/_type.scss
151
159
  - assets/stylesheets/elements/_typography.scss
152
160
  - assets/stylesheets/functions/_colors.scss
153
161
  - assets/stylesheets/functions/_converters.scss
@@ -157,10 +165,10 @@ files:
157
165
  - assets/stylesheets/mixins/_breakpoints.scss
158
166
  - assets/stylesheets/mixins/_buttons.scss
159
167
  - assets/stylesheets/mixins/_forms.scss
160
- - assets/stylesheets/mixins/_grid.scss
161
- - assets/stylesheets/mixins/_hover.scss
168
+ - assets/stylesheets/mixins/_grids.scss
169
+ - assets/stylesheets/mixins/_hovers.scss
162
170
  - assets/stylesheets/mixins/_icons.scss
163
- - assets/stylesheets/mixins/_navbar.scss
171
+ - assets/stylesheets/mixins/_navbars.scss
164
172
  - assets/stylesheets/mixins/_positions.scss
165
173
  - assets/stylesheets/mixins/_transition.scss
166
174
  - assets/stylesheets/utilities/_classes.scss