@iris.interactive/handcook 1.0.3 → 1.0.7
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 +1 -1
- package/public/fonts/svgfont/etourisme/etourisme-font.eot +0 -0
- package/public/fonts/svgfont/etourisme/etourisme-font.ttf +0 -0
- package/public/fonts/svgfont/etourisme/etourisme-font.woff +0 -0
- package/public/fonts/svgfont/info-neige/info-neige-font.eot +0 -0
- package/public/fonts/svgfont/info-neige/info-neige-font.ttf +0 -0
- package/public/fonts/svgfont/info-neige/info-neige-font.woff +0 -0
- package/public/fonts/svgfont/iris-tides/iris-tides-font.eot +0 -0
- package/public/fonts/svgfont/iris-tides/iris-tides-font.ttf +0 -0
- package/public/fonts/svgfont/iris-tides/iris-tides-font.woff +0 -0
- package/public/fonts/svgfont/iris-weather/iris-weather-font.eot +0 -0
- package/public/fonts/svgfont/iris-weather/iris-weather-font.ttf +0 -0
- package/public/fonts/svgfont/iris-weather/iris-weather-font.woff +0 -0
- package/public/fonts/svgfont/theme/theme-font.eot +0 -0
- package/public/fonts/svgfont/theme/theme-font.ttf +0 -0
- package/public/fonts/svgfont/theme/theme-font.woff +0 -0
- package/public/scripts/index.js +7 -98
- package/public/styles/scss/_init.scss +24 -0
- package/public/styles/scss/_layout.scss +190 -0
- package/public/styles/scss/_utils.scss +102 -0
- package/public/styles/scss/_variables.scss +412 -0
- package/public/styles/scss/lib/_etourisme-font.scss +54 -0
- package/public/styles/scss/lib/_info-neige-font.scss +36 -0
- package/public/styles/scss/lib/_iris-tides-font.scss +38 -0
- package/public/styles/scss/lib/_iris-weather-font.scss +47 -0
- package/public/styles/scss/lib/_theme-font.scss +134 -0
- package/public/styles/scss/mixins/_mixin-font.scss +31 -0
- package/public/styles/scss/mixins/_mixin-layout.scss +103 -0
- package/public/styles/scss/mixins/_mixin-style.scss +133 -0
- package/public/styles/style.css +219 -135
- package/public/scripts/index.js.map +0 -1
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
|
|
2
|
+
// Fonts file
|
|
3
|
+
@font-face {
|
|
4
|
+
font-family: 'theme-font';
|
|
5
|
+
font-weight: normal;
|
|
6
|
+
font-style: normal;
|
|
7
|
+
src: url("#{$svgfont_path}/theme/theme-font.eot"),
|
|
8
|
+
url("#{$svgfont_path}/theme/theme-font.woff") format('woff'),
|
|
9
|
+
url("#{$svgfont_path}/theme/theme-font.ttf") format('truetype'),
|
|
10
|
+
url("#{$svgfont_path}/theme/theme-font.eot?#iefix") format('embedded-opentype'),
|
|
11
|
+
url("#{$svgfont_path}/theme/theme-font.svg#theme-font") format('svg');
|
|
12
|
+
font-display: swap;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// Array fonts to mixin
|
|
16
|
+
$theme-icons: (
|
|
17
|
+
'theme':
|
|
18
|
+
(
|
|
19
|
+
"activites": "\ea01",
|
|
20
|
+
"add-location-alt-line": "\ea02",
|
|
21
|
+
"add-location-alt": "\ea03",
|
|
22
|
+
"add": "\ea04",
|
|
23
|
+
"arrow-back": "\ea05",
|
|
24
|
+
"arrow-downward": "\ea06",
|
|
25
|
+
"arrow-forward": "\ea07",
|
|
26
|
+
"arrow-upward": "\ea08",
|
|
27
|
+
"beenhere": "\ea09",
|
|
28
|
+
"by-a-boat": "\ea0a",
|
|
29
|
+
"by-car": "\ea0b",
|
|
30
|
+
"by-plane": "\ea0c",
|
|
31
|
+
"by-train": "\ea0d",
|
|
32
|
+
"calendar-today": "\ea0e",
|
|
33
|
+
"call": "\ea0f",
|
|
34
|
+
"capacity-banquet": "\ea10",
|
|
35
|
+
"capacity-carre": "\ea11",
|
|
36
|
+
"capacity-class": "\ea12",
|
|
37
|
+
"capacity-cocktail": "\ea13",
|
|
38
|
+
"capacity-modular": "\ea14",
|
|
39
|
+
"capacity-theatre": "\ea15",
|
|
40
|
+
"capacity-u": "\ea16",
|
|
41
|
+
"category": "\ea17",
|
|
42
|
+
"centered-position": "\ea18",
|
|
43
|
+
"check-box": "\ea19",
|
|
44
|
+
"chevron-bottom": "\ea1a",
|
|
45
|
+
"chevron-left": "\ea1b",
|
|
46
|
+
"chevron-right": "\ea1c",
|
|
47
|
+
"chevron-top": "\ea1d",
|
|
48
|
+
"circle": "\ea1e",
|
|
49
|
+
"close": "\ea1f",
|
|
50
|
+
"computer": "\ea20",
|
|
51
|
+
"confirmation-number": "\ea21",
|
|
52
|
+
"credit-score": "\ea22",
|
|
53
|
+
"delete-forever": "\ea23",
|
|
54
|
+
"direction-run": "\ea24",
|
|
55
|
+
"edit": "\ea25",
|
|
56
|
+
"email": "\ea26",
|
|
57
|
+
"error": "\ea27",
|
|
58
|
+
"event-available": "\ea28",
|
|
59
|
+
"facebook": "\ea29",
|
|
60
|
+
"favorite-filled": "\ea2a",
|
|
61
|
+
"favorite": "\ea2b",
|
|
62
|
+
"file-download": "\ea2c",
|
|
63
|
+
"file-upload": "\ea2d",
|
|
64
|
+
"filter": "\ea2e",
|
|
65
|
+
"forward-to-inbox": "\ea2f",
|
|
66
|
+
"fullscreen": "\ea30",
|
|
67
|
+
"group": "\ea31",
|
|
68
|
+
"hebergement": "\ea32",
|
|
69
|
+
"hebergements": "\ea33",
|
|
70
|
+
"hotel": "\ea34",
|
|
71
|
+
"infos-pratiques": "\ea35",
|
|
72
|
+
"instagram": "\ea36",
|
|
73
|
+
"layers": "\ea37",
|
|
74
|
+
"local-activity": "\ea38",
|
|
75
|
+
"location-on-line": "\ea39",
|
|
76
|
+
"location-on": "\ea3a",
|
|
77
|
+
"map": "\ea3b",
|
|
78
|
+
"menu-book": "\ea3c",
|
|
79
|
+
"mic": "\ea3d",
|
|
80
|
+
"photo-camera": "\ea3e",
|
|
81
|
+
"picture-as-pdf": "\ea3f",
|
|
82
|
+
"play-circle": "\ea40",
|
|
83
|
+
"print": "\ea41",
|
|
84
|
+
"question-answer": "\ea42",
|
|
85
|
+
"quote": "\ea43",
|
|
86
|
+
"remove": "\ea44",
|
|
87
|
+
"replay": "\ea45",
|
|
88
|
+
"reply": "\ea46",
|
|
89
|
+
"reset": "\ea47",
|
|
90
|
+
"restaurant": "\ea48",
|
|
91
|
+
"restaurants": "\ea49",
|
|
92
|
+
"schedule": "\ea4a",
|
|
93
|
+
"search": "\ea4b",
|
|
94
|
+
"sell": "\ea4c",
|
|
95
|
+
"share": "\ea4d",
|
|
96
|
+
"shopping-cart": "\ea4e",
|
|
97
|
+
"sites-visites": "\ea4f",
|
|
98
|
+
"support": "\ea50",
|
|
99
|
+
"thermostat": "\ea51",
|
|
100
|
+
"thumb-down": "\ea52",
|
|
101
|
+
"thumb-up": "\ea53",
|
|
102
|
+
"toggle-off": "\ea54",
|
|
103
|
+
"toggle-on": "\ea55",
|
|
104
|
+
"twitter": "\ea56",
|
|
105
|
+
"videocam": "\ea57",
|
|
106
|
+
"visibility": "\ea58",
|
|
107
|
+
"volume-off": "\ea59",
|
|
108
|
+
"volume-up": "\ea5a",
|
|
109
|
+
"whatsapp": "\ea5b",
|
|
110
|
+
"work": "\ea5c",
|
|
111
|
+
"youtube": "\ea5d"
|
|
112
|
+
)
|
|
113
|
+
|
|
114
|
+
);
|
|
115
|
+
|
|
116
|
+
$allicons: map-merge($allicons, $theme-icons);
|
|
117
|
+
|
|
118
|
+
.fi:before,
|
|
119
|
+
.fi:after {
|
|
120
|
+
display: inline-block;
|
|
121
|
+
vertical-align: middle;
|
|
122
|
+
font-family: 'theme-font', sans-serif;
|
|
123
|
+
font-style: initial;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@each $name, $icon in map-get($theme-icons,'theme') {
|
|
127
|
+
.fi--#{$name}:not(.fi--after):before {
|
|
128
|
+
content: $icon;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.fi--#{$name}.fi--after:after {
|
|
132
|
+
content: $icon;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Created by IRIS Interactive
|
|
3
|
+
* User : IRIS Interactive
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/* Import
|
|
7
|
+
/* ============================================= */
|
|
8
|
+
$allicons: ();
|
|
9
|
+
$svgfont_path: '../fonts/svgfont' !default;
|
|
10
|
+
|
|
11
|
+
/* Fonticon
|
|
12
|
+
/* ============================================= */
|
|
13
|
+
@mixin fi($name, $position : '', $plugin: 'theme') {
|
|
14
|
+
$content: "";
|
|
15
|
+
|
|
16
|
+
@each $label, $icon in map-get($allicons, '#{$plugin}') {
|
|
17
|
+
@if $label == $name {
|
|
18
|
+
$content: $icon;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
content: $content;
|
|
23
|
+
font-family: '#{$plugin}-font';
|
|
24
|
+
|
|
25
|
+
@if $position == "before" {
|
|
26
|
+
margin-right: 10px;
|
|
27
|
+
} @else if $position == "after" {
|
|
28
|
+
margin-left: 10px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Created by IRIS Interactive
|
|
3
|
+
* User : IRIS Interactive
|
|
4
|
+
*/
|
|
5
|
+
@use "sass:math";
|
|
6
|
+
|
|
7
|
+
/* Main gutter
|
|
8
|
+
/ ================================================== */
|
|
9
|
+
@mixin breakpoint($point) {
|
|
10
|
+
|
|
11
|
+
@if $point == "xlarge" {
|
|
12
|
+
@media screen and (min-width: #{$breakpoint-xlarge}) {
|
|
13
|
+
@content;
|
|
14
|
+
}
|
|
15
|
+
} @else if $point == "large" {
|
|
16
|
+
@media screen and (max-width: #{$breakpoint-large}) {
|
|
17
|
+
@content;
|
|
18
|
+
}
|
|
19
|
+
} @else if $point == "medium" {
|
|
20
|
+
@media screen and (max-width: #{$breakpoint-medium}) {
|
|
21
|
+
@content;
|
|
22
|
+
}
|
|
23
|
+
} @else if $point == "small" {
|
|
24
|
+
@media screen and (max-width: #{$breakpoint-small}) {
|
|
25
|
+
@content;
|
|
26
|
+
}
|
|
27
|
+
} @else if $point == "xsmall" {
|
|
28
|
+
@media screen and (max-width: #{$breakpoint-xsmall}) {
|
|
29
|
+
@content;
|
|
30
|
+
}
|
|
31
|
+
} @else if $point == "desktop" {
|
|
32
|
+
@media screen and (min-width: #{$breakpoint-desktop}) {
|
|
33
|
+
@content;
|
|
34
|
+
}
|
|
35
|
+
} @else {
|
|
36
|
+
@media screen and (max-width: $point) {
|
|
37
|
+
@content;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* display flex
|
|
43
|
+
/* ============================================= */
|
|
44
|
+
@mixin d-flex( $position-x, $position-y, $direction : row, $display : flex ) {
|
|
45
|
+
display: $display;
|
|
46
|
+
justify-content: $position-x;
|
|
47
|
+
align-items: $position-y;
|
|
48
|
+
flex-direction: $direction;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* Font size
|
|
52
|
+
/* ============================================= */
|
|
53
|
+
@function rem-size( $size ) {
|
|
54
|
+
$remSize: math.div($size, 16);
|
|
55
|
+
@return #{$remSize}rem;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// TODO : n'est plus utilisé
|
|
59
|
+
@function rem-size-ratio( $size, $ratio ) {
|
|
60
|
+
@return calc((#{$size} / 16 * 1rem) * #{$ratio});
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@function vw-size( $size ) {
|
|
64
|
+
$ceil-size: math.div(math.div($container, 1px), 1 - math.div($margin-xlarge, 100%) * 2);
|
|
65
|
+
@return calc(#{$size} * 100 / #{$ceil-size} * 1vw);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Breakpoint large recalcule font-size
|
|
69
|
+
@function clamp-size( $min, $value, $max) {
|
|
70
|
+
$val: vw-size($value);
|
|
71
|
+
@return clamp(#{$min}, #{$val}, #{$max});
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Hover - TODO
|
|
75
|
+
/* ============================================= */
|
|
76
|
+
@mixin hover {
|
|
77
|
+
|
|
78
|
+
.no-touchevents & {
|
|
79
|
+
&:hover {
|
|
80
|
+
@content;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* Touch
|
|
86
|
+
/* ============================================= */
|
|
87
|
+
@mixin touch {
|
|
88
|
+
|
|
89
|
+
.touchevents & {
|
|
90
|
+
@content;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* Clear
|
|
95
|
+
/* ============================================= */
|
|
96
|
+
@mixin clear {
|
|
97
|
+
|
|
98
|
+
&:after {
|
|
99
|
+
content: "";
|
|
100
|
+
display: block;
|
|
101
|
+
clear: both;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Created by IRIS Interactive
|
|
3
|
+
* User : IRIS Interactive
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/* Transition
|
|
7
|
+
/* ============================================= */
|
|
8
|
+
@mixin transition($delay : 0.2s) {
|
|
9
|
+
transition: $delay ease;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/* Hover
|
|
13
|
+
/* ============================================= */
|
|
14
|
+
@mixin animate {
|
|
15
|
+
transform: scale(1.02);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* Ellipsis
|
|
19
|
+
/* ============================================= */
|
|
20
|
+
@mixin ellipsis {
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
text-overflow: ellipsis;
|
|
23
|
+
white-space: nowrap;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
/* Adaptive height block
|
|
28
|
+
/* ============================================= */
|
|
29
|
+
@mixin adaptive-height($padding : 115%, $padding-medium : 0, $padding-small : 0, $padding-xsmall:0) {
|
|
30
|
+
position: relative;
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
|
|
33
|
+
&:after {
|
|
34
|
+
content: "";
|
|
35
|
+
display: block;
|
|
36
|
+
padding-bottom: $padding;
|
|
37
|
+
|
|
38
|
+
@if $padding-medium != 0 {
|
|
39
|
+
@include breakpoint(medium) {
|
|
40
|
+
padding-bottom: $padding-medium;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@if $padding-small != 0 {
|
|
45
|
+
@include breakpoint(small) {
|
|
46
|
+
padding-bottom: $padding-small;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@if $padding-small != 0 {
|
|
51
|
+
@include breakpoint(xsmall) {
|
|
52
|
+
padding-bottom: $padding-xsmall;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// TODO
|
|
58
|
+
img:not(.emoji) {
|
|
59
|
+
margin: 0 auto;
|
|
60
|
+
@include object-fit(absolute);
|
|
61
|
+
@include transition(0.4s);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Line clamp
|
|
66
|
+
/* ============================================= */
|
|
67
|
+
@mixin line-clamp($line : 0) {
|
|
68
|
+
display: -webkit-box;
|
|
69
|
+
line-clamp: $line;
|
|
70
|
+
-webkit-line-clamp: $line;
|
|
71
|
+
-webkit-box-orient: vertical;
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* Object fit
|
|
76
|
+
/* ============================================= */
|
|
77
|
+
@mixin object-fit($position : '') {
|
|
78
|
+
width: 100%;
|
|
79
|
+
height: 100%;
|
|
80
|
+
object-fit: cover;
|
|
81
|
+
|
|
82
|
+
@if $position == 'absolute' {
|
|
83
|
+
position: absolute;
|
|
84
|
+
top: 0;
|
|
85
|
+
left: 0;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
/* Linear Gradient
|
|
91
|
+
/* ============================================= */
|
|
92
|
+
@mixin linear-gradient {
|
|
93
|
+
background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* fit-content
|
|
97
|
+
/* ============================================= */
|
|
98
|
+
@mixin fit-content {
|
|
99
|
+
|
|
100
|
+
> *:last-child {
|
|
101
|
+
margin-bottom: 0;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* stretched-link
|
|
106
|
+
/* ============================================= */
|
|
107
|
+
@mixin stretched-link {
|
|
108
|
+
|
|
109
|
+
&:before {
|
|
110
|
+
position: absolute;
|
|
111
|
+
top: 0;
|
|
112
|
+
right: 0;
|
|
113
|
+
bottom: 0;
|
|
114
|
+
left: 0;
|
|
115
|
+
z-index: 1;
|
|
116
|
+
pointer-events: auto;
|
|
117
|
+
content: "";
|
|
118
|
+
background-color: rgba(0, 0, 0, 0);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* sr-only
|
|
123
|
+
/* ============================================= */
|
|
124
|
+
@mixin sr-only {
|
|
125
|
+
position: absolute;
|
|
126
|
+
width: 1px;
|
|
127
|
+
height: 1px;
|
|
128
|
+
padding: 0;
|
|
129
|
+
margin: -1px;
|
|
130
|
+
overflow: hidden;
|
|
131
|
+
clip: rect(0, 0, 0, 0);
|
|
132
|
+
border: 0;
|
|
133
|
+
}
|