@trilogy-ds/styles 0.0.2-calendar → 0.0.2-timepicker

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.
@@ -15,6 +15,8 @@
15
15
  @import 'chips';
16
16
  @import 'container';
17
17
  @import 'countdown';
18
+ @import 'date-picker';
19
+ @import 'dropdown';
18
20
  @import 'divider';
19
21
  @import 'fab';
20
22
  @import 'flex-box';
@@ -64,7 +64,7 @@ $height-arrow-small:30px;
64
64
  .arrow-prev, .arrow-next {
65
65
  background-color: getColor('font');
66
66
  }
67
-
67
+
68
68
  }
69
69
 
70
70
  &:has(.tab-list.is-aligned-start) {
@@ -174,6 +174,12 @@ $height-arrow-small:30px;
174
174
  }
175
175
  }
176
176
 
177
+ &.is-fullwidth .tab-list {
178
+ display: flex;
179
+ > .tab {
180
+ flex:1;
181
+ }
182
+ }
177
183
 
178
184
  &.is-small{
179
185
 
@@ -194,6 +200,13 @@ $height-arrow-small:30px;
194
200
  transition: opacity 2s ease-in-out;
195
201
  transition-delay: 1s;
196
202
 
203
+ * {
204
+ -webkit-user-select: text;
205
+ -moz-user-select: text;
206
+ -ms-user-select: text;
207
+ user-select: text;
208
+ }
209
+
197
210
  &:not(.is-active) {
198
211
  display: none;
199
212
  }
@@ -27,7 +27,7 @@
27
27
  }
28
28
  }
29
29
  .has-icons-right {
30
- .icon-right, button[data-show-pwd]{
30
+ .icon-right, button[data-show-pwd], button[data-show-calendar] {
31
31
  position: absolute;
32
32
  height: 100%;
33
33
  width: 45px;
@@ -41,7 +41,7 @@
41
41
  }
42
42
  }
43
43
 
44
- button[data-show-pwd]{
44
+ button[data-show-pwd], button[data-show-calendar] {
45
45
  background-color: transparent;
46
46
  border:none;
47
47
  border-top-right-radius: $radius-small ;
@@ -9,8 +9,8 @@ Colors for buttons
9
9
  $button-colors: (
10
10
  'accent':['conversion', 'accent', 'background'],
11
11
  'primary': ['primary', 'main', 'background'],
12
- 'secondary': ['secondary', 'main-fade', 'main'],
13
- 'ghost': ['ghost', 'transparent', 'main']
12
+ 'secondary': ['secondary', 'main-fade', 'font'],
13
+ 'ghost': ['ghost', 'transparent', 'font']
14
14
  ) !default;
15
15
 
16
16
  %buttons-states {
@@ -188,6 +188,7 @@
188
188
  border-radius: var(--radius);
189
189
  box-sizing: border-box;
190
190
  background-color: getColor('background');
191
+ height: 100%;
191
192
 
192
193
  &:before {
193
194
  top: 16px;
@@ -6,13 +6,13 @@
6
6
  }
7
7
 
8
8
  @mixin until($device) {
9
- @media screen and (max-width: $device - 1px) {
9
+ @media screen and (max-width: #{$device - 1px}) {
10
10
  @content;
11
11
  }
12
12
  }
13
13
 
14
14
  @mixin mobile {
15
- @media screen and (max-width: $tablet - 1px) {
15
+ @media screen and (max-width: #{$tablet - 1px}) {
16
16
  @content;
17
17
  }
18
18
  }
@@ -24,13 +24,13 @@
24
24
  }
25
25
 
26
26
  @mixin tablet-only {
27
- @media screen and (min-width: $tablet) and (max-width: $desktop - 1px) {
27
+ @media screen and (min-width: #{$tablet}) and (max-width: #{$desktop - 1px}) {
28
28
  @content;
29
29
  }
30
30
  }
31
31
 
32
32
  @mixin touch {
33
- @media screen and (max-width: $desktop - 1px) {
33
+ @media screen and (max-width: #{$desktop - 1px}) {
34
34
  @content;
35
35
  }
36
36
  }
@@ -42,13 +42,13 @@
42
42
  }
43
43
 
44
44
  @mixin desktop-only {
45
- @media screen and (min-width: $desktop) and (max-width: $widescreen - 1px) {
45
+ @media screen and (min-width: #{$desktop}) and (max-width: #{$widescreen - 1px}) {
46
46
  @content;
47
47
  }
48
48
  }
49
49
 
50
50
  @mixin until-widescreen {
51
- @media screen and (max-width: $widescreen - 1px) {
51
+ @media screen and (max-width: #{$widescreen - 1px}) {
52
52
  @content;
53
53
  }
54
54
  }
@@ -60,13 +60,13 @@
60
60
  }
61
61
 
62
62
  @mixin widescreen-only {
63
- @media screen and (min-width: $widescreen) and (max-width: $fullhd - 1px) {
63
+ @media screen and (min-width: #{$widescreen}) and (max-width: #{$fullhd - 1px}) {
64
64
  @content;
65
65
  }
66
66
  }
67
67
 
68
68
  @mixin until-fullhd {
69
- @media screen and (max-width: $fullhd - 1px) {
69
+ @media screen and (max-width: #{$fullhd - 1px}) {
70
70
  @content;
71
71
  }
72
72
  }
@@ -78,7 +78,97 @@
78
78
  }
79
79
 
80
80
  @mixin all-desktop-only {
81
- @media screen and (min-width: $desktop) and (max-width: $fullhd - 1px) {
81
+ @media screen and (min-width: #{$desktop}) and (max-width: #{$fullhd - 1px}) {
82
82
  @content;
83
83
  }
84
84
  }
85
+
86
+ // Responsive for container queries
87
+ .query-container {
88
+ container-type: inline-size;
89
+ }
90
+
91
+ @mixin container-from($device) {
92
+ @container (min-width: #{$device}) {
93
+ @content;
94
+ }
95
+ }
96
+
97
+ @mixin container-until($device) {
98
+ @container (max-width: #{$device - 1px}) {
99
+ @content;
100
+ }
101
+ }
102
+
103
+ @mixin container-mobile {
104
+ @container (max-width: #{$tablet - 1px}) {
105
+ @content;
106
+ }
107
+ }
108
+
109
+ @mixin container-tablet {
110
+ @container (min-width: #{$tablet}) {
111
+ @content;
112
+ }
113
+ }
114
+
115
+ @mixin container-tablet-only {
116
+ @container (min-width: #{$tablet}) and (max-width: #{$desktop - 1px}) {
117
+ @content;
118
+ }
119
+ }
120
+
121
+ @mixin container-touch {
122
+ @container (max-width: #{$desktop - 1px}) {
123
+ @content;
124
+ }
125
+ }
126
+
127
+ @mixin container-desktop {
128
+ @container (min-width: #{$desktop}) {
129
+ @content;
130
+ }
131
+ }
132
+
133
+ @mixin container-desktop-only {
134
+ @container (min-width: #{$desktop}) and (max-width: #{$widescreen - 1px}) {
135
+ @content;
136
+ }
137
+ }
138
+
139
+ @mixin container-until-widescreen {
140
+ @container (max-width: #{$widescreen - 1px}) {
141
+ @content;
142
+ }
143
+ }
144
+
145
+ @mixin container-widescreen {
146
+ @container (min-width: #{$widescreen}) {
147
+ @content;
148
+ }
149
+ }
150
+
151
+ @mixin container-widescreen-only {
152
+ @container (min-width: #{$widescreen}) and (max-width: #{$fullhd - 1px}) {
153
+ @content;
154
+ }
155
+ }
156
+
157
+ @mixin container-until-fullhd {
158
+ @container (max-width: #{$fullhd - 1px}) {
159
+ @content;
160
+ }
161
+ }
162
+
163
+ @mixin container-fullhd {
164
+ @container (min-width: #{$fullhd}) {
165
+ @content;
166
+ }
167
+ }
168
+
169
+ @mixin container-all-desktop-only {
170
+ @container (min-width: #{$desktop}) and (max-width: #{$fullhd - 1px}) {
171
+ @content;
172
+ }
173
+ }
174
+
@@ -1,7 +1,7 @@
1
1
  // The container horizontal gap, which acts as the offset for breakpoints
2
- $gap: 20px !default;
2
+ $gap: 24px !default;
3
3
 
4
4
  $tablet: 768px !default;
5
- $desktop: 984px + 2 * $gap !default;
6
- $widescreen: 1200px + 2 * $gap !default;
7
- $fullhd: 1348px + 2 * $gap !default;
5
+ $desktop: 976px + 2 * $gap !default;
6
+ $widescreen: 1192px + 2 * $gap !default;
7
+ $fullhd: 1340px + 2 * $gap !default;
package/package.json CHANGED
@@ -1,7 +1,12 @@
1
1
  {
2
2
  "name": "@trilogy-ds/styles",
3
- "version": "0.0.2-calendar",
3
+ "version": "0.0.2-timepicker",
4
4
  "author": "Bouygues Telecom",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/BouyguesTelecom/trilogy",
8
+ "directory": "packages/styles"
9
+ },
5
10
  "license": "UNLICENSED",
6
11
  "files": [
7
12
  "framework/src",