Skip to content

Commit

Permalink
front: upgrade sass
Browse files Browse the repository at this point in the history
  • Loading branch information
emersion committed Oct 4, 2024
1 parent b123aef commit 5a6ae29
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 22 deletions.
2 changes: 1 addition & 1 deletion front/src/modules/conflict/styles/_conflictList.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
align-items: center;
height: 43px;
.icons-arrow-up {
transition: all 0.2s ease-in-out;
@media screen and (max-width: 1023px) {
transform: rotate(180deg);
}
transition: all 0.2s ease-in-out;
&.expanded {
transition: all 0.2s ease-in-out;
transform: rotate(180deg);
Expand Down
8 changes: 4 additions & 4 deletions front/src/styles/scss/_body.scss
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ body {
}

.btn-map-infras-blinking {
animation-name: blinking;
animation-duration: 0.5s;
animation-direction: alternate;
animation-iteration-count: infinite;
@keyframes blinking {
from {
background-color: var(--orange);
Expand All @@ -207,10 +211,6 @@ body {
color: var(--orange);
}
}
animation-name: blinking;
animation-duration: 0.5s;
animation-direction: alternate;
animation-iteration-count: infinite;
}

.maplibregl-map {
Expand Down
5 changes: 4 additions & 1 deletion front/src/styles/scss/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use 'sass:color';

$colors: (
'oldblue': #0088ce,
'blue': #303383,
Expand Down Expand Up @@ -70,7 +72,8 @@ $colors: (
--breakpoint-lg: 1024px;
@each $color, $value in $colors {
--#{$color}: #{$value};
--#{$color}-rgb: #{red($value)}, #{green($value)}, #{blue($value)};
--#{$color}-rgb: #{color.channel($value, 'red')}, #{color.channel($value, 'green')},
#{color.channel($value, 'blue')};
}

--modal-gray-transparent-background: rgba(0, 0, 0, 0.1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
max-height: 88vh;
overflow-y: scroll;

width: 100%;
align-self: center;
overflow: auto;

> .rollingstock-card-header {
@media screen and (min-width: 1140px) {
height: 3rem;
Expand Down Expand Up @@ -92,10 +96,6 @@
cursor: default;
}

width: 100%;
align-self: center;
overflow: auto;

@media screen and (min-width: 767px) {
&-text {
*td,
Expand Down
7 changes: 7 additions & 0 deletions front/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ export default defineConfig(({ mode }) => {
outDir: 'build',
sourcemap: true,
},
css: {
preprocessorOptions: {
scss: {
api: 'modern',
},
},
},
server: {
open: false,
port: +env.OSRD_VITE_PORT || 3000,
Expand Down
36 changes: 24 additions & 12 deletions front/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6350,7 +6350,7 @@ cheerio@^1.0.0:
undici "^6.19.5"
whatwg-mimetype "^4.0.0"

"chokidar@>=3.0.0 <4.0.0", chokidar@^3.5.1, chokidar@^3.5.3, chokidar@^3.6.0:
chokidar@^3.5.1, chokidar@^3.5.3, chokidar@^3.6.0:
version "3.6.0"
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.6.0.tgz#197c6cc669ef2a8dc5e7b4d97ee4e092c3eb0d5b"
integrity sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==
Expand All @@ -6365,6 +6365,13 @@ cheerio@^1.0.0:
optionalDependencies:
fsevents "~2.3.2"

chokidar@^4.0.0:
version "4.0.1"
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-4.0.1.tgz#4a6dff66798fb0f72a94f616abbd7e1a19f31d41"
integrity sha512-n8enUVCED/KVRQlab1hr3MVpcVMvxtZjmEa956u+4YijlmQED223XMSYj2tLuKvr4jcCTzNNMpQDUer72MMmzA==
dependencies:
readdirp "^4.0.1"

chownr@^1.1.1:
version "1.1.4"
resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.4.tgz#6fc9d7b42d32a583596337666e7d08084da2cc6b"
Expand Down Expand Up @@ -9605,7 +9612,12 @@ immer@^10.0.3:
resolved "https://registry.yarnpkg.com/immer/-/immer-10.1.1.tgz#206f344ea372d8ea176891545ee53ccc062db7bc"
integrity sha512-s2MPrmjovJcoMaHtx6K11Ra7oD05NT97w1IC5zpMkT6Atjr7H8LjaDd81iIxUYpMKSRRNMJE703M1Fhr/TctHw==

immutable@^4.0.0, immutable@^4.3.4:
immutable@^4.0.0:
version "4.3.7"
resolved "https://registry.yarnpkg.com/immutable/-/immutable-4.3.7.tgz#c70145fc90d89fb02021e65c84eb0226e4e5a381"
integrity sha512-1hqclzwYwjRDFLjcFxOM5AYkkG0rpFPpr1RLPMEuGczoS7YA8gLhy8SWXYRAA/XwfEHpfo3cw5JGioS32fnMRw==

immutable@^4.3.4:
version "4.3.5"
resolved "https://registry.yarnpkg.com/immutable/-/immutable-4.3.5.tgz#f8b436e66d59f99760dc577f5c99a4fd2a5cc5a0"
integrity sha512-8eabxkth9gZatlwl5TBuJnCsoTADlL6ftEr7A4qgdaTsPyreilDSnUk57SO+jfKcNtxPa22U5KK6DSeAYhpBJw==
Expand Down Expand Up @@ -13255,6 +13267,11 @@ readable-stream@^3.1.1, readable-stream@^3.4.0, readable-stream@^3.6.0:
string_decoder "^1.1.1"
util-deprecate "^1.0.1"

readdirp@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-4.0.1.tgz#b2fe35f8dca63183cd3b86883ecc8f720ea96ae6"
integrity sha512-GkMg9uOTpIWWKbSsgwb5fA4EavTR+SG/PMPoAY8hkhHfEEY0/vqljY+XHqtDf2cr2IJtoNRDbrrEpZUiZCkYRw==

readdirp@~3.6.0:
version "3.6.0"
resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7"
Expand Down Expand Up @@ -13670,11 +13687,11 @@ sass-loader@^14.1.0:
neo-async "^2.6.2"

sass@^1.70.0:
version "1.75.0"
resolved "https://registry.yarnpkg.com/sass/-/sass-1.75.0.tgz#91bbe87fb02dfcc34e052ddd6ab80f60d392be6c"
integrity sha512-ShMYi3WkrDWxExyxSZPst4/okE9ts46xZmJDSawJQrnte7M1V9fScVB+uNXOVKRBt0PggHOwoZcn8mYX4trnBw==
version "1.79.4"
resolved "https://registry.yarnpkg.com/sass/-/sass-1.79.4.tgz#f9c45af35fbeb53d2c386850ec842098d9935267"
integrity sha512-K0QDSNPXgyqO4GZq2HO5Q70TLxTH6cIT59RdoCHMivrC8rqzaTw5ab9prjz9KUN1El4FLXrBXJhik61JR4HcGg==
dependencies:
chokidar ">=3.0.0 <4.0.0"
chokidar "^4.0.0"
immutable "^4.0.0"
source-map-js ">=0.6.2 <2.0.0"

Expand Down Expand Up @@ -14020,12 +14037,7 @@ sort-object@^3.0.3:
sort-desc "^0.2.0"
union-value "^1.0.1"

"source-map-js@>=0.6.2 <2.0.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.0.tgz#16b809c162517b5b8c3e7dcd315a2a5c2612b2af"
integrity sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==

source-map-js@^1.2.0, source-map-js@^1.2.1:
"source-map-js@>=0.6.2 <2.0.0", source-map-js@^1.2.0, source-map-js@^1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.1.tgz#1ce5650fddd87abc099eda37dcff024c2667ae46"
integrity sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==
Expand Down

0 comments on commit 5a6ae29

Please sign in to comment.