Skip to content

Commit 71177c3

Browse files
committed
fix(style): use dist folder instead of src for packages's css import in package all
1 parent db64034 commit 71177c3

File tree

6 files changed

+97
-115
lines changed

6 files changed

+97
-115
lines changed

packages/Layout/footer-client/src/_footer-client-item.scss

-7
This file was deleted.

packages/Layout/footer-client/src/_footer-client-list.scss

-22
This file was deleted.

packages/Layout/footer-client/src/_language-selection.scss

-63
This file was deleted.

packages/Layout/footer-client/src/_social-network.scss

-17
This file was deleted.

packages/Layout/footer-client/src/footer-client.scss

+95-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
@import '@axa-fr/react-toolkit-core/src/common/scss/core.scss';
22

3-
@import '_footer-client-item';
4-
@import '_footer-client-list';
5-
@import '_language-selection';
6-
73
.social-network__list {
84
list-style: none;
95
display: flex;
@@ -56,3 +52,98 @@
5652
color: $color-white;
5753
line-height: 25px;
5854
}
55+
56+
.af-footer-client__column-item {
57+
margin-bottom: 25px;
58+
}
59+
60+
.af-footer-client__column-link {
61+
color: $color-white;
62+
}
63+
64+
.af-footer-client__top-container {
65+
display: flex;
66+
}
67+
68+
.af-footer-client__column {
69+
flex-grow: 1;
70+
}
71+
72+
.af-footer-client__column-title {
73+
font-size: 16px;
74+
font-weight: bold;
75+
letter-spacing: 0;
76+
text-align: left;
77+
text-transform: uppercase;
78+
margin-bottom: 25px;
79+
color: $color-white;
80+
}
81+
82+
.af-footer-client__column-items {
83+
list-style: none;
84+
padding: 0;
85+
}
86+
87+
.af-languageSelection {
88+
display: inline-block;
89+
}
90+
91+
.af-languageSelection__title {
92+
font-size: 14px;
93+
font-weight: bold;
94+
letter-spacing: 0;
95+
text-align: left;
96+
text-transform: uppercase;
97+
display: inline-block;
98+
margin-bottom: 0;
99+
color: $color-white;
100+
}
101+
102+
.af-languageSelection__list {
103+
list-style: none;
104+
padding: 0;
105+
display: inline-block;
106+
margin-left: 20px;
107+
margin-bottom: 0;
108+
}
109+
110+
.af-languageSelection__item {
111+
display: inline-block;
112+
font-size: 14px;
113+
font-weight: bold;
114+
letter-spacing: 0;
115+
text-align: left;
116+
text-transform: uppercase;
117+
color: rgba(255, 255, 255, 0.5);
118+
cursor: pointer;
119+
border-right: 2px solid $color-white;
120+
padding: 0 20px;
121+
122+
&:last-child {
123+
border: none;
124+
}
125+
126+
&--active {
127+
.af-languageSelection__item-button {
128+
color: $color-white;
129+
}
130+
}
131+
132+
&:hover {
133+
color: $color-white;
134+
}
135+
}
136+
137+
.af-languageSelection__item-button {
138+
background: none;
139+
border: none;
140+
display: inline-block;
141+
font-size: 14px;
142+
font-weight: bold;
143+
letter-spacing: 0;
144+
text-align: left;
145+
text-transform: uppercase;
146+
color: rgba(255, 255, 255, 0.5);
147+
cursor: pointer;
148+
padding: 0 20px;
149+
}

scripts/style.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const prepareStylePackages = (packagesScssfiles) => {
8484
.replace(`/${src}`, `/${dist}`)}`;
8585
const outputName = `/af-${path
8686
.basename(scssFile)
87-
.replace(`.scss`, '.css')}`;
87+
.replace('.scss', '.css')}`;
8888

8989
if (!fs.existsSync(outputPath)) {
9090
fs.mkdirSync(outputPath, { recursive: true });
@@ -145,7 +145,7 @@ const setFileImport = (filePath) => {
145145
.replace('packages/', '')
146146
.replace(/\//g, '-')
147147
.toLowerCase();
148-
return `@import '@axa-fr/react-toolkit-${basePath}/src/${fileSplit[1]}';`;
148+
return `@import '@axa-fr/react-toolkit-${basePath}/dist/${fileSplit[1]}';`;
149149
};
150150

151151
/**

0 commit comments

Comments
 (0)