lesli 5.0.2 → 5.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/lesli/abouts_controller.rb +66 -0
  3. data/config/routes.rb +2 -0
  4. data/lib/lesli/version.rb +1 -1
  5. data/vendor/bulma/LICENSE +21 -0
  6. data/vendor/bulma/bulma.sass +10 -0
  7. data/vendor/bulma/css/bulma-rtl.css +11851 -0
  8. data/vendor/bulma/css/bulma-rtl.min.css +1 -0
  9. data/vendor/bulma/css/bulma.css +11851 -0
  10. data/vendor/bulma/css/bulma.min.css +1 -0
  11. data/vendor/bulma/sass/base/_all.sass +6 -0
  12. data/vendor/bulma/sass/base/animations.sass +5 -0
  13. data/vendor/bulma/sass/base/generic.sass +145 -0
  14. data/vendor/bulma/sass/base/helpers.sass +1 -0
  15. data/vendor/bulma/sass/base/minireset.sass +79 -0
  16. data/vendor/bulma/sass/components/_all.sass +15 -0
  17. data/vendor/bulma/sass/components/breadcrumb.sass +77 -0
  18. data/vendor/bulma/sass/components/card.sass +103 -0
  19. data/vendor/bulma/sass/components/dropdown.sass +83 -0
  20. data/vendor/bulma/sass/components/level.sass +79 -0
  21. data/vendor/bulma/sass/components/media.sass +59 -0
  22. data/vendor/bulma/sass/components/menu.sass +59 -0
  23. data/vendor/bulma/sass/components/message.sass +101 -0
  24. data/vendor/bulma/sass/components/modal.sass +117 -0
  25. data/vendor/bulma/sass/components/navbar.sass +446 -0
  26. data/vendor/bulma/sass/components/pagination.sass +167 -0
  27. data/vendor/bulma/sass/components/panel.sass +121 -0
  28. data/vendor/bulma/sass/components/tabs.sass +176 -0
  29. data/vendor/bulma/sass/elements/_all.sass +16 -0
  30. data/vendor/bulma/sass/elements/box.sass +26 -0
  31. data/vendor/bulma/sass/elements/button.sass +357 -0
  32. data/vendor/bulma/sass/elements/container.sass +29 -0
  33. data/vendor/bulma/sass/elements/content.sass +162 -0
  34. data/vendor/bulma/sass/elements/form.sass +1 -0
  35. data/vendor/bulma/sass/elements/icon.sass +46 -0
  36. data/vendor/bulma/sass/elements/image.sass +73 -0
  37. data/vendor/bulma/sass/elements/notification.sass +52 -0
  38. data/vendor/bulma/sass/elements/other.sass +31 -0
  39. data/vendor/bulma/sass/elements/progress.sass +73 -0
  40. data/vendor/bulma/sass/elements/table.sass +134 -0
  41. data/vendor/bulma/sass/elements/tag.sass +140 -0
  42. data/vendor/bulma/sass/elements/title.sass +70 -0
  43. data/vendor/bulma/sass/form/_all.sass +9 -0
  44. data/vendor/bulma/sass/form/checkbox-radio.sass +22 -0
  45. data/vendor/bulma/sass/form/file.sass +184 -0
  46. data/vendor/bulma/sass/form/input-textarea.sass +66 -0
  47. data/vendor/bulma/sass/form/select.sass +88 -0
  48. data/vendor/bulma/sass/form/shared.sass +60 -0
  49. data/vendor/bulma/sass/form/tools.sass +215 -0
  50. data/vendor/bulma/sass/grid/_all.sass +5 -0
  51. data/vendor/bulma/sass/grid/columns.sass +513 -0
  52. data/vendor/bulma/sass/grid/tiles.sass +36 -0
  53. data/vendor/bulma/sass/helpers/_all.sass +12 -0
  54. data/vendor/bulma/sass/helpers/color.sass +39 -0
  55. data/vendor/bulma/sass/helpers/flexbox.sass +35 -0
  56. data/vendor/bulma/sass/helpers/float.sass +10 -0
  57. data/vendor/bulma/sass/helpers/other.sass +14 -0
  58. data/vendor/bulma/sass/helpers/overflow.sass +2 -0
  59. data/vendor/bulma/sass/helpers/position.sass +7 -0
  60. data/vendor/bulma/sass/helpers/spacing.sass +31 -0
  61. data/vendor/bulma/sass/helpers/typography.sass +103 -0
  62. data/vendor/bulma/sass/helpers/visibility.sass +122 -0
  63. data/vendor/bulma/sass/layout/_all.sass +6 -0
  64. data/vendor/bulma/sass/layout/footer.sass +11 -0
  65. data/vendor/bulma/sass/layout/hero.sass +153 -0
  66. data/vendor/bulma/sass/layout/section.sass +17 -0
  67. data/vendor/bulma/sass/utilities/_all.sass +9 -0
  68. data/vendor/bulma/sass/utilities/animations.sass +1 -0
  69. data/vendor/bulma/sass/utilities/controls.sass +49 -0
  70. data/vendor/bulma/sass/utilities/derived-variables.sass +114 -0
  71. data/vendor/bulma/sass/utilities/extends.sass +25 -0
  72. data/vendor/bulma/sass/utilities/functions.sass +135 -0
  73. data/vendor/bulma/sass/utilities/initial-variables.sass +79 -0
  74. data/vendor/bulma/sass/utilities/mixins.sass +303 -0
  75. data/vendor/lesli-css/_index.scss +34 -0
  76. data/vendor/lesli-css/lesli.scss +51 -0
  77. data/vendor/lesli-css/license +28 -0
  78. data/vendor/lesli-css/src/base/fonts.scss +50 -0
  79. data/vendor/lesli-css/src/base/normalize.scss +118 -0
  80. data/vendor/lesli-css/src/components/blockquote.scss +61 -0
  81. data/vendor/lesli-css/src/components/columns.scss +92 -0
  82. data/vendor/lesli-css/src/components/container.scss +47 -0
  83. data/vendor/lesli-css/src/components/grid.scss +0 -0
  84. data/vendor/lesli-css/src/components/navigation.scss +59 -0
  85. data/vendor/lesli-css/src/functions/colors.scss +184 -0
  86. data/vendor/lesli-css/src/helpers/units.scss +44 -0
  87. data/vendor/lesli-css/src/mixins/breakpoint.scss +184 -0
  88. data/vendor/lesli-css/src/mixins/flex.scss +80 -0
  89. data/vendor/lesli-css/src/mixins/scrollbar.scss +46 -0
  90. data/vendor/lesli-css/src/settings/variables.scss +26 -0
  91. data/vendor/lesli-css/tests/base/normalize.spec.scss +125 -0
  92. data/vendor/lesli-css/tests/functions/colors.spec.scss +117 -0
  93. data/vendor/lesli-css/tests/mixins/breakpoint.spec.scss +429 -0
  94. data/vendor/lesli-css/tests/mixins/scrollbar.spec.scss +82 -0
  95. data/vendor/lesli-css/vendor/normalize.scss +351 -0
  96. data/vendor/remixicon/License +201 -0
  97. data/vendor/remixicon/fonts/remixicon.css +2583 -0
  98. metadata +96 -2
@@ -0,0 +1,118 @@
1
+ /*
2
+ Lesli
3
+
4
+ Copyright (c) 2020, Lesli Technologies, S. A.
5
+
6
+ This program is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ This program is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU General Public License for more details.
15
+
16
+ You should have received a copy of the GNU General Public License
17
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
18
+
19
+ LesliCSS - SCSS Utilities for websites, apps and web applications
20
+
21
+ Powered by https://www.lesli.tech
22
+ Building a better future, one line of code at a time.
23
+
24
+ @contact <hello@lesli.tech>
25
+ @website <https://lesli.tech>
26
+ @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
27
+
28
+ // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
29
+ // ·
30
+ */
31
+
32
+
33
+ // ·
34
+ @charset "utf-8";
35
+
36
+
37
+ // · include vendors
38
+ @import "../../vendor/normalize";
39
+
40
+
41
+ // ·
42
+ @mixin lesli-css-normalize($vendors: true) {
43
+
44
+
45
+ // · Normalize
46
+ @if $vendors {
47
+ @include normalize();
48
+ }
49
+
50
+
51
+ // · Reset
52
+ *,
53
+ *:before,
54
+ *:after {
55
+ box-sizing: border-box;
56
+ }
57
+
58
+
59
+ // ·
60
+ body,
61
+ html {
62
+ font-size: 16px;
63
+ font-family: "Helvetica Neue", "Helvetica", "Arial", "sans-serif", sans-serif;
64
+ -webkit-text-size-adjust: 100%;
65
+ -ms-text-size-adjust: 100%;
66
+ }
67
+
68
+
69
+ // · Estilo estandar para titulos
70
+ h1, h2, h3, h4, h5, h6 {
71
+ font-style: inherit;
72
+ font-weight: inherit;
73
+ text-rendering: optimizelegibility;
74
+ }
75
+
76
+
77
+ // · Estilos estandar para enlaces
78
+ a {
79
+ color: inherit;
80
+ text-decoration: none;
81
+
82
+ &:visited {
83
+ color: inherit;
84
+ }
85
+
86
+ }
87
+
88
+
89
+ // · Responsive images
90
+ img {
91
+ height: auto;
92
+ max-width: 100%;
93
+ }
94
+
95
+
96
+ // · Paragraphs
97
+ p {
98
+ margin: 0;
99
+ }
100
+
101
+
102
+ // · Navigation and list
103
+ ul {
104
+
105
+ li{
106
+ list-style: none;
107
+ }
108
+
109
+ }
110
+
111
+
112
+ // ·
113
+ input[type="password"] {
114
+ font-family: Verdana;
115
+ letter-spacing: 0.1em;
116
+ }
117
+
118
+ }
@@ -0,0 +1,61 @@
1
+ /**
2
+ Lesli
3
+
4
+ Copyright (c) 2022, Lesli Technologies, S. A.
5
+
6
+ This program is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ This program is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU General Public License for more details.
15
+
16
+ You should have received a copy of the GNU General Public License
17
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
18
+
19
+ LesliCSS - SCSS Utilities for websites, apps and web applications
20
+
21
+ Powered by https://www.lesli.tech
22
+ Building a better future, one line of code at a time.
23
+
24
+ @contact <hello@lesli.tech>
25
+ @website <https://lesli.tech>
26
+ @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
27
+
28
+ // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
29
+ // ·
30
+ */
31
+
32
+
33
+
34
+ // ·
35
+ @import "../functions/colors.scss";
36
+
37
+
38
+
39
+ // ·
40
+ @mixin lesli-blockquote($columns: 0, $margin: 0) {
41
+
42
+ margin: 1.5em 10px;
43
+ padding: 0.5em 10px;
44
+ background-color: lesli-css-color(silver, 100);
45
+ border-left: 10px solid lesli-css-color(silver, 300);
46
+ quotes: "\201C""\201D""\2018""\2019";
47
+
48
+ &:before {
49
+ color: lesli-css-color(silver);
50
+ vertical-align: -0.4em;
51
+ margin-right: 0.25em;
52
+ line-height: 0.1em;
53
+ font-size: 4em;
54
+ content: open-quote;
55
+ }
56
+
57
+ p {
58
+ display: inline;
59
+ }
60
+
61
+ }
@@ -0,0 +1,92 @@
1
+ /**
2
+ Lesli
3
+
4
+ Copyright (c) 2022, Lesli Technologies, S. A.
5
+
6
+ This program is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ This program is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU General Public License for more details.
15
+
16
+ You should have received a copy of the GNU General Public License
17
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
18
+
19
+ LesliCSS - SCSS Utilities for websites, apps and web applications
20
+
21
+ Powered by https://www.lesli.tech
22
+ Building a better future, one line of code at a time.
23
+
24
+ @contact <hello@lesli.tech>
25
+ @website <https://lesli.tech>
26
+ @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
27
+
28
+ // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
29
+ // ·
30
+ */
31
+
32
+
33
+ @import "../helpers/units.scss";
34
+
35
+
36
+ // ·
37
+ @mixin lesli-css-columns($columns: 0, $margin: 0) {
38
+
39
+
40
+ // basic styles for grid container
41
+ width: 100%;
42
+ font-size: 0;
43
+ margin: 0 auto;
44
+
45
+
46
+ // Estilos a pseudo elementos
47
+ &:before,
48
+ &:after {
49
+ content: "";
50
+ display: inline-block;
51
+ vertical-align: middle;
52
+ }
53
+
54
+
55
+ // · Manual columns definition
56
+ @if $columns != 0 {
57
+
58
+ //column-width: 250px;
59
+ //column-count: $columns;
60
+
61
+ // The column-gap property specifies the gap between the columns.
62
+ column-gap: $margin;
63
+
64
+ // Specify the minimum width for each column, and the maximum number of columns:
65
+ columns: $columns;
66
+ }
67
+
68
+
69
+ // Filas del grid
70
+ & > * {
71
+ font-size: initial;
72
+ white-space: initial;
73
+ display: inline-block;
74
+ margin-bottom: $margin;
75
+ }
76
+
77
+
78
+ $breakpoint: 320px;
79
+
80
+
81
+ // inicializa breakpoints
82
+ @media (max-width: (strip-unit($breakpoint) * 1px)) {
83
+
84
+ // Clase css para breakpoints
85
+ & > * {
86
+ display: block;
87
+ width: initial;
88
+ }
89
+
90
+ }
91
+
92
+ }
@@ -0,0 +1,47 @@
1
+ @import "../settings/variables.scss";
2
+ @import "../mixins/breakpoint.scss";
3
+
4
+ $container-offset: (2 * $gap) !default;
5
+ $container-max-width: $fullhd !default;
6
+
7
+ @mixin lesli-css-container($fluid:false) {
8
+ flex-grow: 1;
9
+ margin: 0 auto;
10
+ position: relative;
11
+ width: 100%;
12
+
13
+ @if ($fluid) {
14
+ max-width: none !important;
15
+ padding-left: $gap;
16
+ padding-right: $gap;
17
+ }
18
+
19
+ @include lesli-css-breakpoint("fullhd") {
20
+ max-width: min($fullhd, $container-max-width) - $container-offset;
21
+ }
22
+ /*
23
+ @include desktop {
24
+ max-width: $desktop - $container-offset;
25
+ }
26
+ @include until-widescreen {
27
+ &.is-widescreen:not(.is-max-desktop) {
28
+ max-width: min($widescreen, $container-max-width) - $container-offset;
29
+ }
30
+ }
31
+ @include until-fullhd {
32
+ &.is-fullhd:not(.is-max-desktop):not(.is-max-widescreen) {
33
+ max-width: min($fullhd, $container-max-width) - $container-offset;
34
+ }
35
+ }
36
+ @include widescreen {
37
+ &:not(.is-max-desktop) {
38
+ max-width: min($widescreen, $container-max-width) - $container-offset;
39
+ }
40
+ }
41
+ @include fullhd {
42
+ &:not(.is-max-desktop):not(.is-max-widescreen) {
43
+ max-width: min($fullhd, $container-max-width) - $container-offset;
44
+ }
45
+ }
46
+ */
47
+ }
File without changes
@@ -0,0 +1,59 @@
1
+ /*
2
+ Lesli
3
+
4
+ Copyright (c) 2022, Lesli Technologies, S. A.
5
+
6
+ This program is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ This program is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU General Public License for more details.
15
+
16
+ You should have received a copy of the GNU General Public License
17
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
18
+
19
+ LesliCSS - SCSS Utilities for websites, apps and web applications
20
+
21
+ Powered by https://www.lesli.tech
22
+ Building a better future, one line of code at a time.
23
+
24
+ @contact <hello@lesli.tech>
25
+ @website <https://lesli.tech>
26
+ @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
27
+
28
+ // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
29
+ // ·
30
+ */
31
+ @mixin lesli-css-navigation {
32
+ display: flex;
33
+ align-items: center;
34
+ justify-content: center;
35
+
36
+ &.space-around {
37
+ justify-content: space-around;
38
+ }
39
+
40
+ &.align-bottom {
41
+ align-items: flex-end;
42
+ }
43
+
44
+ ul {
45
+ margin: 0;
46
+ padding: 0;
47
+ display: flex;
48
+
49
+ &:first-child {
50
+ flex-grow: 1;
51
+ }
52
+
53
+ a {
54
+ display: block;
55
+ }
56
+
57
+ }
58
+
59
+ }
@@ -0,0 +1,184 @@
1
+ /*
2
+ Lesli
3
+
4
+ Copyright (c) 2020, Lesli Technologies, S. A.
5
+
6
+ This program is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ This program is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU General Public License for more details.
15
+
16
+ You should have received a copy of the GNU General Public License
17
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
18
+
19
+ LesliCSS - SCSS Utilities for websites, apps and web applications
20
+
21
+ Powered by https://www.lesli.tech
22
+ Building a better future, one line of code at a time.
23
+
24
+ @contact <hello@lesli.tech>
25
+ @website <https://lesli.tech>
26
+ @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
27
+
28
+ // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
29
+ // ·
30
+ */
31
+
32
+
33
+ // ·
34
+ @function lesli-css-color-builder($pallete, $variant: 500, $extracolors: ()) {
35
+
36
+ $lesli-css-colors: (
37
+
38
+ palette: (
39
+ primary: #0d52bf
40
+ ),
41
+
42
+ // · engines collection
43
+ collection: (
44
+ administration: #3b6cff,
45
+ intelligence: #172447,
46
+ productivity: #ff3c00,
47
+ integration: #edb78e,
48
+ analytics: #63ccb5,
49
+ security: #d3d3d3,
50
+ finance: #ff2453,
51
+ sales: #764aff,
52
+ it: #ffd700
53
+ ),
54
+
55
+ // · blue
56
+ blue: (
57
+ 100: #8cd5ff,
58
+ 300: #64baff,
59
+ 500: #3689e6,
60
+ 700: #0d52bf,
61
+ 900: #002e99
62
+ ),
63
+
64
+ // · Administration
65
+ bubble: (
66
+ 100: #fe9ab8,
67
+ 300: #f4679d,
68
+ 500: #de3e80,
69
+ 700: #bc245d,
70
+ 900: #910e38
71
+ ),
72
+
73
+ // · Sales & Marketing
74
+ grape: (
75
+ 100: #e4c6fa,
76
+ 300: #cd9ef7,
77
+ 500: #a56de2,
78
+ 700: #7239b3,
79
+ 900: #452981
80
+ ),
81
+
82
+ // · Productivity & Workteam
83
+ lime: (
84
+ 100: #d1ff82,
85
+ 300: #9bdb4d,
86
+ 500: #68b723,
87
+ 700: #3a9104,
88
+ 900: #206b00
89
+ ),
90
+
91
+ // · Finance
92
+ orange: (
93
+ 100: #ffc27d,
94
+ 300: #ffa154,
95
+ 500: #f37329,
96
+ 700: #cc3b02,
97
+ 900: #a62100
98
+ ),
99
+
100
+ // · Analytics
101
+ berry: (
102
+ 100: #ff8c82,
103
+ 300: #ed5353,
104
+ 500: #c6262e,
105
+ 700: #a10705,
106
+ 900: #7a0000
107
+ ),
108
+
109
+ // · Intelligence
110
+ cocoa: (
111
+ 100: #a3907c,
112
+ 300: #8a715e,
113
+ 500: #715344,
114
+ 700: #57392d,
115
+ 900: #3d211b
116
+ ),
117
+
118
+ // · IT & Help Desk
119
+ banana: (
120
+ 100: #fff394,
121
+ 300: #ffe16b,
122
+ 500: #f9c440,
123
+ 700: #d48e15,
124
+ 900: #ad5f00
125
+ ),
126
+
127
+ // · Security & Privacy
128
+ slate: (
129
+ 100: #95a3ab,
130
+ 300: #667885,
131
+ 500: #485a6c,
132
+ 700: #273445,
133
+ 900: #0e141f
134
+ ),
135
+
136
+ // · Integrations
137
+ mint: (
138
+ 100: #89ffdd,
139
+ 300: #43d6b5,
140
+ 500: #28bca3,
141
+ 700: #0e9a83,
142
+ 900: #007367
143
+ ),
144
+
145
+ // ·
146
+ black: (
147
+ 100: #666666,
148
+ 300: #4d4d4d,
149
+ 500: #333333,
150
+ 700: #1a1a1a,
151
+ 900: #000000
152
+ ),
153
+
154
+ // ·
155
+ silver: (
156
+ 100: #fafafa,
157
+ 300: #d4d4d4,
158
+ 500: #abacae,
159
+ 700: #7e8087,
160
+ 900: #555761
161
+ ),
162
+
163
+ // · Solid standard colors
164
+ solid: (
165
+ white: rgb(255, 255, 255)
166
+ )
167
+
168
+ );
169
+
170
+ $lesli-css-colors: map-merge($lesli-css-colors, $extracolors);
171
+
172
+ $pallete: map-get($lesli-css-colors, $pallete);
173
+
174
+ $color: map-get($pallete, $variant);
175
+
176
+ @return $color;
177
+
178
+ }
179
+
180
+
181
+ // ·
182
+ @function lesli-css-color($pallete, $variant: 500) {
183
+ @return lesli-css-color-builder($pallete, $variant);
184
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ Lesli
3
+
4
+ Copyright (c) 2022, Lesli Technologies, S. A.
5
+
6
+ This program is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ This program is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU General Public License for more details.
15
+
16
+ You should have received a copy of the GNU General Public License
17
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
18
+
19
+ LesliCSS - SCSS Utilities for websites, apps and web applications
20
+
21
+ Powered by https://www.lesli.tech
22
+ Building a better future, one line of code at a time.
23
+
24
+ @contact <hello@lesli.tech>
25
+ @website <https://lesli.tech>
26
+ @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
27
+
28
+ // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
29
+ // ·
30
+ */
31
+
32
+
33
+ // · Remove the unit of a length
34
+ // · @param {Number} $number - Number to remove unit from
35
+ // · @return {Number} - Unitless number
36
+ @function strip-unit($number) {
37
+
38
+ @if type-of($number) == 'number' and not unitless($number) {
39
+ @return $number / ($number * 0 + 1);
40
+ }
41
+
42
+ @return $number;
43
+
44
+ }