@lisergia/styles 0.0.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.
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@lisergia/styles",
3
+ "version": "0.0.0",
4
+ "files": [
5
+ "scss"
6
+ ],
7
+ "scripts": {
8
+ "lint": "stylelint \"**/*.scss\""
9
+ },
10
+ "dependencies": {
11
+ "@lisergia/config-stylelint": "*",
12
+ "include-media": "^2.0.0",
13
+ "stylelint": "^16.19.1"
14
+ }
15
+ }
@@ -0,0 +1,6 @@
1
+ .app {
2
+ height: 100%;
3
+ overflow: clip;
4
+ position: relative;
5
+ width: 100vw;
6
+ }
@@ -0,0 +1,21 @@
1
+ .lenis {
2
+ &:not(.lenis-autoToggle).lenis-stopped {
3
+ overflow: clip;
4
+ }
5
+
6
+ &.lenis-smooth {
7
+ [data-lenis-prevent] {
8
+ overscroll-behavior: contain;
9
+ }
10
+
11
+ iframe {
12
+ pointer-events: none;
13
+ }
14
+ }
15
+
16
+ &.lenis-autoToggle {
17
+ transition-behavior: allow-discrete;
18
+ transition-duration: 1ms;
19
+ transition-property: overflow;
20
+ }
21
+ }
@@ -0,0 +1,170 @@
1
+ *,
2
+ *::after,
3
+ *::before {
4
+ box-sizing: border-box;
5
+ }
6
+
7
+ html,
8
+ body,
9
+ div,
10
+ span,
11
+ applet,
12
+ object,
13
+ iframe,
14
+ h1,
15
+ h2,
16
+ h3,
17
+ h4,
18
+ h5,
19
+ h6,
20
+ p,
21
+ blockquote,
22
+ pre,
23
+ a,
24
+ abbr,
25
+ acronym,
26
+ address,
27
+ big,
28
+ cite,
29
+ code,
30
+ del,
31
+ dfn,
32
+ em,
33
+ img,
34
+ ins,
35
+ kbd,
36
+ q,
37
+ s,
38
+ samp,
39
+ small,
40
+ strike,
41
+ strong,
42
+ sub,
43
+ sup,
44
+ tt,
45
+ var,
46
+ b,
47
+ u,
48
+ i,
49
+ center,
50
+ dl,
51
+ dt,
52
+ dd,
53
+ ol,
54
+ ul,
55
+ li,
56
+ fieldset,
57
+ form,
58
+ label,
59
+ legend,
60
+ table,
61
+ caption,
62
+ tbody,
63
+ tfoot,
64
+ thead,
65
+ tr,
66
+ th,
67
+ td,
68
+ article,
69
+ aside,
70
+ canvas,
71
+ details,
72
+ embed,
73
+ figure,
74
+ figcaption,
75
+ footer,
76
+ header,
77
+ hgroup,
78
+ menu,
79
+ nav,
80
+ output,
81
+ ruby,
82
+ section,
83
+ summary,
84
+ time,
85
+ mark,
86
+ audio,
87
+ video {
88
+ border: 0;
89
+ font: inherit;
90
+ font-size: 100%;
91
+ margin: 0;
92
+ padding: 0;
93
+ vertical-align: baseline;
94
+ }
95
+
96
+ article,
97
+ aside,
98
+ details,
99
+ figcaption,
100
+ figure,
101
+ footer,
102
+ header,
103
+ hgroup,
104
+ menu,
105
+ nav,
106
+ section {
107
+ display: block;
108
+ }
109
+
110
+ html {
111
+ -webkit-font-smoothing: antialiased;
112
+ -moz-osx-font-smoothing: grayscale;
113
+ height: 100%;
114
+ left: 0;
115
+ position: fixed;
116
+ text-rendering: optimizelegibility;
117
+ top: 0;
118
+ width: 100%;
119
+ }
120
+
121
+ body {
122
+ height: 100%;
123
+ left: 0;
124
+ line-height: 1;
125
+ position: fixed;
126
+ top: 0;
127
+ width: 100%;
128
+ }
129
+
130
+ a {
131
+ color: inherit;
132
+ text-decoration: none;
133
+ }
134
+
135
+ button,
136
+ input,
137
+ textarea {
138
+ background: none;
139
+ border: none;
140
+ color: inherit;
141
+ font: inherit;
142
+ padding: 0;
143
+ }
144
+
145
+ button {
146
+ cursor: pointer;
147
+ }
148
+
149
+ ol,
150
+ ul {
151
+ list-style: none;
152
+ }
153
+
154
+ blockquote,
155
+ q {
156
+ quotes: none;
157
+ }
158
+
159
+ blockquote::before,
160
+ blockquote::after,
161
+ q::before,
162
+ q::after {
163
+ content: '';
164
+ content: none;
165
+ }
166
+
167
+ table {
168
+ border-collapse: collapse;
169
+ border-spacing: 0;
170
+ }
@@ -0,0 +1,10 @@
1
+ @import './base/app';
2
+ @import './base/reset';
3
+ @import './base/lenis';
4
+
5
+ @import './variables/easings';
6
+
7
+ @import './utils/functions';
8
+ @import './utils/mixins';
9
+
10
+ @import './plugins/include-media';
@@ -0,0 +1,7 @@
1
+ $breakpoints: (
2
+ 'phone': 768px,
3
+ 'tablet': 1024px,
4
+ 'desktop': 1920px,
5
+ ) !default;
6
+
7
+ @import '../../node_modules/include-media/dist/include-media';
@@ -0,0 +1,9 @@
1
+ @function z($name) {
2
+ @if index($z-indexes, $name) {
3
+ @return (length($z-indexes) - index($z-indexes, $name)) + 1;
4
+ } @else {
5
+ @warn 'There is no item "#{$name}" in this list; Choose one of: #{$z-indexes}';
6
+
7
+ @return null;
8
+ }
9
+ }
@@ -0,0 +1,19 @@
1
+ @mixin hover($element: '') {
2
+ @if $element == '' {
3
+ html.desktop &:hover {
4
+ @content;
5
+ }
6
+ } @else {
7
+ html.desktop #{$element}:hover & {
8
+ @content;
9
+ }
10
+ }
11
+ }
12
+
13
+ %cover {
14
+ height: 100%;
15
+ left: 0;
16
+ position: absolute;
17
+ top: 0;
18
+ width: 100%;
19
+ }
@@ -0,0 +1,33 @@
1
+ :root {
2
+ --ease-in-sine: cubic-bezier(0.47, 0, 0.745, 0.715);
3
+ --ease-out-sine: cubic-bezier(0.39, 0.575, 0.565, 1);
4
+ --ease-in-out-sine: cubic-bezier(0.445, 0.05, 0.55, 0.95);
5
+
6
+ --ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53);
7
+ --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
8
+ --ease-in-out-quad: cubic-bezier(0.455, 0.03, 0.515, 0.955);
9
+
10
+ --ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19);
11
+ --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
12
+ --ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1);
13
+
14
+ --ease-in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22);
15
+ --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
16
+ --ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);
17
+
18
+ --ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06);
19
+ --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
20
+ --ease-in-out-quint: cubic-bezier(0.86, 0, 0.07, 1);
21
+
22
+ --ease-in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035);
23
+ --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
24
+ --ease-in-out-expo: cubic-bezier(1, 0, 0, 1);
25
+
26
+ --ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.335);
27
+ --ease-out-circ: cubic-bezier(0.075, 0.82, 0.165, 1);
28
+ --ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.15, 0.86);
29
+
30
+ --ease-in-back: cubic-bezier(0.6, -0.28, 0.735, 0.045);
31
+ --ease-out-back: cubic-bezier(0.175, 0.885, 0.32, 1.275);
32
+ --ease-in-out-back: cubic-bezier(0.68, -0.55, 0.265, 1.55);
33
+ }