@dvrd/dvr-controls 1.0.14 → 1.0.16
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/index.ts +8 -1
- package/package.json +29 -23
- package/src/js/button/button.tsx +102 -0
- package/src/js/button/buttonController.tsx +179 -0
- package/src/js/button/closeButton.tsx +29 -0
- package/src/js/button/dvrdButton.tsx +128 -0
- package/src/js/button/outlinedButton.tsx +105 -0
- package/src/js/button/simpleButton.tsx +163 -0
- package/src/js/button/style/button.scss +95 -0
- package/src/js/button/style/closeButton.scss +15 -0
- package/src/js/button/style/dvrdButton.scss +30 -0
- package/src/js/button/style/outlinedButton.scss +84 -0
- package/src/js/button/style/simpleButton.scss +80 -0
- package/src/js/carousel/DVRCarousel.tsx +163 -0
- package/src/js/carousel/DVRCarouselController.tsx +95 -0
- package/src/js/carousel/style/DVRCarousel.scss +38 -0
- package/src/js/checkbox/checkbox.tsx +148 -0
- package/src/js/checkbox/checkboxController.tsx +131 -0
- package/src/js/checkbox/style/checkbox.scss +109 -0
- package/src/js/colorPicker/colorPicker.tsx +118 -0
- package/src/js/colorPicker/style/colorPicker.scss +20 -0
- package/src/js/date/dvrdDatePicker.tsx +357 -0
- package/src/js/date/style/dvrdDatePicker.scss +307 -0
- package/src/js/dialog/dialog.tsx +207 -0
- package/src/js/dialog/dialogController.tsx +70 -0
- package/src/js/dialog/inlineDialog.tsx +127 -0
- package/src/js/dialog/style/dialog.scss +61 -0
- package/src/js/events/withEvents.tsx +40 -0
- package/src/js/head/DVRHead.tsx +49 -0
- package/src/js/header/DVRHeader.tsx +417 -0
- package/src/js/header/style/header.scss +206 -0
- package/src/js/icon/awesomeIcon.tsx +20 -0
- package/src/js/image/imageUpload.tsx +69 -0
- package/src/js/image/style/imageUpload.scss +11 -0
- package/src/js/info/info.tsx +136 -0
- package/src/js/info/style/info.scss +39 -0
- package/src/js/input/animated/animatedTextField.tsx +159 -0
- package/src/js/input/date/dateField.tsx +360 -0
- package/src/js/input/date/dateFieldController.tsx +245 -0
- package/src/js/input/date/datePicker/datePicker.tsx +186 -0
- package/src/js/input/date/datePicker/style/datePicker.scss +102 -0
- package/src/js/input/date/input/dateInput.tsx +214 -0
- package/src/js/input/date/style/dateField.scss +40 -0
- package/src/js/input/date/timePicker/style/timePicker.scss +95 -0
- package/src/js/input/date/timePicker/timePicker.tsx +143 -0
- package/src/js/input/editor/DVREditor.tsx +21 -0
- package/src/js/input/number/numberInput.tsx +157 -0
- package/src/js/input/password/passwordInput.tsx +140 -0
- package/src/js/input/password/passwordRules.tsx +48 -0
- package/src/js/input/password/style/passwordInput.scss +39 -0
- package/src/js/input/password/style/passwordRules.scss +41 -0
- package/src/js/input/simple/style/simpleInput.scss +98 -0
- package/src/js/input/simple/v2/simpleInputV2.tsx +178 -0
- package/src/js/input/style/input.scss +138 -0
- package/src/js/input/v2/inputController_v2.tsx +250 -0
- package/src/js/input/v2/input_v2.tsx +7 -0
- package/src/js/label/label.tsx +196 -0
- package/src/js/label/style/label.scss +4 -0
- package/src/js/link/link.tsx +38 -0
- package/src/js/link/style/link.scss +30 -0
- package/src/js/loader/loader.tsx +79 -0
- package/src/js/loader/loaderController.tsx +61 -0
- package/src/js/loader/style/loader.scss +53 -0
- package/src/js/media/media.tsx +72 -0
- package/src/js/navigator/navigator.tsx +51 -0
- package/src/js/optionsList/dvrdOptionsList.tsx +112 -0
- package/src/js/optionsList/style/dvrdOptionsList.scss +84 -0
- package/src/js/optionsMenu/optionsMenu.tsx +187 -0
- package/src/js/optionsMenu/style/optionsMenu.scss +70 -0
- package/src/js/pdf/element/pdfElement.tsx +315 -0
- package/src/js/pdf/element/style/pdfElement.scss +111 -0
- package/src/js/pdf/history/pdfHistory.ts +57 -0
- package/src/js/pdf/image/pdfImage.tsx +175 -0
- package/src/js/pdf/image/style/pdfImage.scss +34 -0
- package/src/js/pdf/invoiceTable/pdfInvoiceTable.tsx +176 -0
- package/src/js/pdf/invoiceTable/style/pdfInvoiceTable.scss +32 -0
- package/src/js/pdf/pdfTemplateCreator.tsx +279 -0
- package/src/js/pdf/settings/buttons/iconButton.tsx +49 -0
- package/src/js/pdf/settings/buttons/style/iconButton.scss +50 -0
- package/src/js/pdf/settings/image/pdfImageSettings.tsx +82 -0
- package/src/js/pdf/settings/image/style/pdfImageSettings.scss +9 -0
- package/src/js/pdf/settings/invoiceTable/pdfInvoiceTableSettings.tsx +141 -0
- package/src/js/pdf/settings/invoiceTable/style/pdfInvoiceTableSettings.scss +38 -0
- package/src/js/pdf/settings/pdfElementSettings.tsx +86 -0
- package/src/js/pdf/settings/style/pdfElementSettings.scss +56 -0
- package/src/js/pdf/settings/text/pdfTextSettings.tsx +202 -0
- package/src/js/pdf/settings/text/style/pdfTextSettings.scss +94 -0
- package/src/js/pdf/style/pdfTemplateCreator.scss +118 -0
- package/src/js/pdf/text/pdfText.tsx +267 -0
- package/src/js/pdf/text/style/pdfText.scss +22 -0
- package/src/js/pdf/v2/pdfElement/pdfDraggableElement.tsx +193 -0
- package/src/js/pdf/v2/types/pdfTemplateTypes.ts +27 -0
- package/src/js/popup/style/withBackground.scss +29 -0
- package/src/js/popup/withBackground.tsx +92 -0
- package/src/js/select/async/asyncSelect.tsx +46 -0
- package/src/js/select/async/style/asyncSelect.scss +23 -0
- package/src/js/select/dvrdSelect.tsx +214 -0
- package/src/js/select/dvrdSelectController.tsx +81 -0
- package/src/js/select/select.tsx +310 -0
- package/src/js/select/selectController.tsx +341 -0
- package/src/js/select/style/dvrdSelect.scss +140 -0
- package/src/js/select/style/select.scss +199 -0
- package/src/js/sidebarMenu/sidebarMenu.tsx +167 -0
- package/src/js/sidebarMenu/style/sidebarMenu.scss +167 -0
- package/src/js/slider/DVRSlider.tsx +107 -0
- package/src/js/slider/style/DVRSlider.scss +88 -0
- package/src/js/snackbar/snackbar.tsx +72 -0
- package/src/js/snackbar/snackbarController.tsx +104 -0
- package/src/js/snackbar/style/snackbar.scss +46 -0
- package/src/js/switch/dvrdSwitch.tsx +53 -0
- package/src/js/switch/style/dvrdSwitch.scss +47 -0
- package/src/js/switch/style/switch.scss +84 -0
- package/src/js/switch/switch.tsx +115 -0
- package/src/js/switch/switchController.tsx +97 -0
- package/src/js/textField/dvrdInput.tsx +219 -0
- package/src/js/textField/dvrdInputController.tsx +97 -0
- package/src/js/textField/dvrdNumberInput.tsx +141 -0
- package/src/js/textField/dvrdPasswordInput.tsx +40 -0
- package/src/js/textField/style/dvrdInput.scss +114 -0
- package/src/js/textField/style/dvrdPassword.scss +15 -0
- package/src/js/topButton/style/topButton.scss +54 -0
- package/src/js/topButton/topButton.tsx +136 -0
- package/src/js/util/analyticsUtil.ts +41 -0
- package/src/js/util/colorUtil.ts +230 -0
- package/src/js/util/componentUtil.tsx +59 -0
- package/src/js/util/constants.ts +12 -0
- package/src/js/util/controlContext.tsx +46 -0
- package/src/js/util/controlUtil.ts +107 -0
- package/src/js/util/cookieUtil.ts +17 -0
- package/src/js/util/eventUtil.ts +65 -0
- package/src/js/util/googleUtil.ts +88 -0
- package/src/js/util/interfaces.ts +180 -0
- package/src/js/util/jwtUtil.ts +72 -0
- package/src/js/util/miscUtil.ts +170 -0
- package/src/js/util/momentUtil.ts +45 -0
- package/src/js/util/pdfUtil.ts +124 -0
- package/src/js/util/requestUtil.ts +145 -0
- package/src/js/util/responsiveUtil.ts +37 -0
- package/src/js/util/validationUtil.ts +13 -0
- package/src/res/img/lock-handle.png +0 -0
- package/src/res/img/lock-handle.webp +0 -0
- package/src/res/img/lock.png +0 -0
- package/src/res/img/lock.webp +0 -0
- package/src/style/common-icons-variables.scss +140 -0
- package/src/style/common-icons.scss +714 -0
- package/src/style/common-variables.scss +243 -0
- package/src/style/display-breakpoints.scss +141 -0
- package/src/style/fonts/common-icons.eot +0 -0
- package/src/style/fonts/common-icons.svg +150 -0
- package/src/style/fonts/common-icons.ttf +0 -0
- package/src/style/fonts/common-icons.woff +0 -0
- package/src/style/fonts/common-icons.woff2 +0 -0
- package/src/style/fonts/fontAwesome/css/all.css +7003 -0
- package/src/style/fonts/fontAwesome/css/all.min.css +6 -0
- package/src/style/fonts/fontAwesome/css/brands.css +1423 -0
- package/src/style/fonts/fontAwesome/css/brands.min.css +6 -0
- package/src/style/fonts/fontAwesome/css/fontawesome.css +5519 -0
- package/src/style/fonts/fontAwesome/css/fontawesome.min.css +6 -0
- package/src/style/fonts/fontAwesome/css/regular.css +19 -0
- package/src/style/fonts/fontAwesome/css/regular.min.css +6 -0
- package/src/style/fonts/fontAwesome/css/solid.css +19 -0
- package/src/style/fonts/fontAwesome/css/solid.min.css +6 -0
- package/src/style/fonts/fontAwesome/css/svg-with-js.css +634 -0
- package/src/style/fonts/fontAwesome/css/svg-with-js.min.css +6 -0
- package/src/style/fonts/fontAwesome/css/v4-font-face.css +26 -0
- package/src/style/fonts/fontAwesome/css/v4-font-face.min.css +6 -0
- package/src/style/fonts/fontAwesome/css/v4-shims.css +2146 -0
- package/src/style/fonts/fontAwesome/css/v4-shims.min.css +6 -0
- package/src/style/fonts/fontAwesome/css/v5-font-face.css +22 -0
- package/src/style/fonts/fontAwesome/css/v5-font-face.min.css +6 -0
- package/src/style/fonts/fontAwesome/webfonts/fa-brands-400.ttf +0 -0
- package/src/style/fonts/fontAwesome/webfonts/fa-brands-400.woff2 +0 -0
- package/src/style/fonts/fontAwesome/webfonts/fa-regular-400.ttf +0 -0
- package/src/style/fonts/fontAwesome/webfonts/fa-regular-400.woff2 +0 -0
- package/src/style/fonts/fontAwesome/webfonts/fa-solid-900.ttf +0 -0
- package/src/style/fonts/fontAwesome/webfonts/fa-solid-900.woff2 +0 -0
- package/src/style/fonts/fontAwesome/webfonts/fa-v4compatibility.ttf +0 -0
- package/src/style/fonts/fontAwesome/webfonts/fa-v4compatibility.woff2 +0 -0
- package/src/style/variables.scss +11 -0
- package/.gitignore +0 -31
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2021. Dave van Rijn Development
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
Contains common application stuff.
|
|
7
|
+
It should contain all common colors used in the application.
|
|
8
|
+
Specific colors that is only used once or in a component, should be contained in the css of that compponent.
|
|
9
|
+
*/
|
|
10
|
+
$color-blue-1: #009fe3;
|
|
11
|
+
$color-blue-1-hover: darken($color-blue-1, 10%);
|
|
12
|
+
$color-blue-1-darken: darken($color-blue-1, 10%);
|
|
13
|
+
$color-blue-2: #008dca;
|
|
14
|
+
$color-blue-3: #575757;
|
|
15
|
+
$color-blue-4: #DEEAF6;
|
|
16
|
+
$color-blue-5: #3687bc;
|
|
17
|
+
$color-blue-6: #779bbc;
|
|
18
|
+
$color-blue-text: #2A435F;
|
|
19
|
+
$color-blue-facebook: #4267B2;
|
|
20
|
+
$color-gray-1: #f8f8f8;
|
|
21
|
+
$color-gray-2: gray;
|
|
22
|
+
$color-gray-3: lighten(gray, 10%);
|
|
23
|
+
$color-gray-4: #ccc;
|
|
24
|
+
$color-gray-5: #434b50;
|
|
25
|
+
$color-gray-6: #F2F2F2;
|
|
26
|
+
$color-gray-7: #e4e4e4;
|
|
27
|
+
$color-gray-header: #3a4044;
|
|
28
|
+
$color-gray-header-text: #d8d8d8;
|
|
29
|
+
$color-orange-1: #f39320;
|
|
30
|
+
$color-orange-2: #b05a20;
|
|
31
|
+
$color-orange-1-hover: rgba(243, 147, 32, .8);
|
|
32
|
+
$color-yellow-1: #fff000;
|
|
33
|
+
$color-green-1: #18A155;
|
|
34
|
+
$color-green-2: rgb(234, 254, 234);
|
|
35
|
+
$color-green-3: #edf1f2;
|
|
36
|
+
$color-green-4: #94FB82;
|
|
37
|
+
$color-green-5: #E2EFDA;
|
|
38
|
+
$color-green-whatsapp: #29A71A;
|
|
39
|
+
$color-green-platform: #99cb00;
|
|
40
|
+
$color-pink-1: #fbe1d5;
|
|
41
|
+
$color-pink-1-hover: rgba(251, 225, 213, .6);
|
|
42
|
+
$color-red: red;
|
|
43
|
+
$color-red-secondary: #ffcfd0;
|
|
44
|
+
$color-red-1: #ff7e78;
|
|
45
|
+
$color-red-2: #FDD4CC;
|
|
46
|
+
$color-red-regio: #ca031a;
|
|
47
|
+
|
|
48
|
+
$color-text-dark: #333;
|
|
49
|
+
|
|
50
|
+
$z-index-normal: 100;
|
|
51
|
+
$z-index-high: 200;
|
|
52
|
+
$z-index-popup-1: 1000;
|
|
53
|
+
$z-index-popup-2: 1100;
|
|
54
|
+
$z-index-popup-3: 1200;
|
|
55
|
+
$z-index-popup-4: 1300;
|
|
56
|
+
$z-index-dialog: 1400;
|
|
57
|
+
$z-index-menu: 1350;
|
|
58
|
+
|
|
59
|
+
$border-radius-popup: 1.5rem;
|
|
60
|
+
|
|
61
|
+
@mixin hoverTransition($backgroundColor: $color-blue-1, $color: white, $hoverBackgroundColor: $color-blue-1-hover,
|
|
62
|
+
$hoverColor: white, $duration: .2s) {
|
|
63
|
+
background-color: $backgroundColor;
|
|
64
|
+
color: $color;
|
|
65
|
+
transition: background-color $duration ease, color $duration ease;
|
|
66
|
+
&:hover {
|
|
67
|
+
background-color: $hoverBackgroundColor;
|
|
68
|
+
color: $hoverColor;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@mixin hasDisabled() {
|
|
73
|
+
&:disabled {
|
|
74
|
+
background-color: $color-gray-3 !important;
|
|
75
|
+
user-select: none !important;
|
|
76
|
+
cursor: default !important;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@mixin headerBackgroundColor() {
|
|
81
|
+
background-color: $color-blue-1;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@mixin blueBackgroundColor() {
|
|
85
|
+
background-color: $color-blue-1;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@mixin primaryBackgroundColor() {
|
|
89
|
+
background-color: $color-gray-7;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@mixin activeBackgroundColor() {
|
|
93
|
+
background-color: $color-pink-1;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@mixin hoverBackgroundColor() {
|
|
97
|
+
background-color: $color-green-2;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@mixin linkFontColorBlue() {
|
|
101
|
+
color: $color-blue-1;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@mixin s-borderRadius() {
|
|
105
|
+
border-radius: .25rem;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@mixin borderRadius($customRadius: .3125rem) {
|
|
109
|
+
border-radius: $customRadius;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@mixin l-borderRadius() {
|
|
113
|
+
border-radius: .5rem;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@mixin box-shadow($shadow-radius, $shadow-opacity, $red: 0, $green: 0, $blue: 0) {
|
|
117
|
+
box-shadow: 0 0 $shadow-radius 0 rgba($red, $green, $blue, $shadow-opacity);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@mixin boxShadow($shadow-radius: .5rem, $shadow-opacity: .2) {
|
|
121
|
+
@include box-shadow($shadow-radius, $shadow-opacity);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
//Current platform Label-A shadow. Light shadow bottom/right
|
|
125
|
+
@mixin boxShadow2() {
|
|
126
|
+
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, .2);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@mixin boxShadow3() {
|
|
130
|
+
box-shadow: 0 .375rem .75rem rgba(0, 0, 0, .175);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@mixin transform($translateX, $translateY) {
|
|
134
|
+
transform: translateX($translateX) translateY($translateY);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@mixin transformY($translateY) {
|
|
138
|
+
transform: translateY($translateY);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@mixin transformX($translateX) {
|
|
142
|
+
transform: translateX($translateX);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@mixin centerXY($position: absolute) {
|
|
146
|
+
position: $position;
|
|
147
|
+
top: 50%;
|
|
148
|
+
left: 50%;
|
|
149
|
+
@include transform(-50%, -50%);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
@mixin centerY() {
|
|
153
|
+
top: 50%;
|
|
154
|
+
@include transformY(-50%);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@mixin centerX() {
|
|
158
|
+
left: 50%;
|
|
159
|
+
@include transformX(-50%);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// Put this on the parent
|
|
163
|
+
@mixin centerFlexVertical() {
|
|
164
|
+
display: flex;
|
|
165
|
+
align-items: center;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
@mixin hideLongText() {
|
|
169
|
+
overflow: hidden;
|
|
170
|
+
white-space: nowrap;
|
|
171
|
+
text-decoration: none;
|
|
172
|
+
text-overflow: ellipsis;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
@mixin row() {
|
|
176
|
+
@include clearfix();
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
@mixin defaultPopup($position: absolute, $z-index: $z-index-high, $top: 0, $width: 45rem) {
|
|
180
|
+
@include centerX;
|
|
181
|
+
@include borderRadius(1rem);
|
|
182
|
+
@include boxShadow(1rem, .6);
|
|
183
|
+
position: $position;
|
|
184
|
+
top: $top;
|
|
185
|
+
background-color: white;
|
|
186
|
+
z-index: $z-index;
|
|
187
|
+
width: $width;
|
|
188
|
+
max-width: calc(90% - 2rem);
|
|
189
|
+
|
|
190
|
+
@include for-phone-only() {
|
|
191
|
+
margin-left: 2rem;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
@mixin mobilePopupLocation() {
|
|
196
|
+
@include for-phone-only() {
|
|
197
|
+
position: fixed;
|
|
198
|
+
width: calc(90% - 4rem);
|
|
199
|
+
margin-left: 2rem;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
@mixin withBackground() {
|
|
204
|
+
z-index: $z-index-popup-4;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
@mixin textStroke($strokeColor: lighten($color-gray-5, 5%)) {
|
|
208
|
+
text-shadow: -1px -1px 0 $strokeColor,
|
|
209
|
+
1px -1px 0 $strokeColor,
|
|
210
|
+
-1px 1px 0 $strokeColor,
|
|
211
|
+
1px 1px 0 $strokeColor;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
@mixin backgroundShadow($color: black) {
|
|
215
|
+
box-shadow: 0 1px 5px 0 rgba($color, 0.2), 0 2px 2px 0 rgba($color, 0.14), 0 3px 1px -2px rgba($color, 0.12);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@mixin backgroundShadow2(){
|
|
219
|
+
box-shadow: 0 4px 4px rgba(black, 0.05);
|
|
220
|
+
border-radius: .5rem;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
@mixin popupContainer() {
|
|
224
|
+
position: fixed;
|
|
225
|
+
top: 0;
|
|
226
|
+
left: 0;
|
|
227
|
+
width: 100%;
|
|
228
|
+
height: 100%;
|
|
229
|
+
background-color: rgba(black, .4);
|
|
230
|
+
z-index: $z-index-popup-4 + 1;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
@mixin popupDialog() {
|
|
234
|
+
@include centerXY;
|
|
235
|
+
@include backgroundShadow;
|
|
236
|
+
@include borderRadius(.5rem);
|
|
237
|
+
background-color: white;
|
|
238
|
+
overflow: hidden;
|
|
239
|
+
|
|
240
|
+
@include break-sm-down {
|
|
241
|
+
max-width: 90vw;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2021. Dave van Rijn Development
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
It contains common device/screen breakpoints. Be careful updating these when devices change through the years.
|
|
7
|
+
Ref: https://medium.com/@catalinbridinel/this-makes-more-sense-than-the-counter-example-but-it-definitely-not-the-100-correct-way-7f4fb7e66c87
|
|
8
|
+
**/
|
|
9
|
+
|
|
10
|
+
//===========================
|
|
11
|
+
// Material-UI Breakpoints
|
|
12
|
+
//===========================
|
|
13
|
+
@mixin break-xs {
|
|
14
|
+
@media(max-width: 599px) {
|
|
15
|
+
@content;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@mixin break-sm {
|
|
20
|
+
@media(min-width: 600px) and (max-width: 959px) {
|
|
21
|
+
@content;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@mixin break-sm-down {
|
|
26
|
+
@media(max-width: 959px) {
|
|
27
|
+
@content;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@mixin break-sm-up {
|
|
32
|
+
@media(min-width: 600px) {
|
|
33
|
+
@content;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@mixin break-md {
|
|
38
|
+
@media(min-width: 960px) and (max-width: 1279px) {
|
|
39
|
+
@content;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@mixin break-md-down {
|
|
44
|
+
@media(max-width: 1279px) {
|
|
45
|
+
@content;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@mixin break-md-up {
|
|
50
|
+
@media(min-width: 960px) {
|
|
51
|
+
@content;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@mixin break-lg {
|
|
56
|
+
@media(min-width: 1280px) and (max-width: 1919px) {
|
|
57
|
+
@content;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@mixin break-lg-down {
|
|
62
|
+
@media(max-width: 1919px) {
|
|
63
|
+
@content;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@mixin break-lg-up {
|
|
68
|
+
@media(min-width: 1280px) {
|
|
69
|
+
@content;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@mixin break-xl {
|
|
74
|
+
@media(min-width: 1920px) {
|
|
75
|
+
@content;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
//===========================
|
|
80
|
+
// End Material-UI Breakpoints
|
|
81
|
+
//===========================
|
|
82
|
+
|
|
83
|
+
@mixin for-phone-only {
|
|
84
|
+
@media (max-width: 599px) {
|
|
85
|
+
@content;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@mixin for-tablet-portrait-up {
|
|
90
|
+
@media (min-width: 600px) {
|
|
91
|
+
@content;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@mixin for-tablet-portait-only {
|
|
96
|
+
@media (min-width: 600px) and (max-width: 899px) {
|
|
97
|
+
@content;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@mixin for-tablet-portrait-down {
|
|
102
|
+
@media (max-width: 899px) {
|
|
103
|
+
@content;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@mixin for-tablet-landscape-up {
|
|
108
|
+
@media (min-width: 900px) {
|
|
109
|
+
@content;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@mixin for-tablet-landscape-only {
|
|
114
|
+
@media (min-width: 900px) and (max-width: 1199px) {
|
|
115
|
+
@content;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@mixin for-tablet-landscape-down {
|
|
120
|
+
@media (max-width: 1199px) {
|
|
121
|
+
@content;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@mixin for-desktop-up {
|
|
126
|
+
@media (min-width: 1200px) {
|
|
127
|
+
@content;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@mixin for-desktop-only {
|
|
132
|
+
@media (min-width: 1200px) and (max-width: 1799px) {
|
|
133
|
+
@content;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@mixin for-big-desktop-up {
|
|
138
|
+
@media (min-width: 1800px) {
|
|
139
|
+
@content;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
Binary file
|