@imiobe/plonetheme-smartweb-base 0.3.9 → 0.3.11
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/CHANGELOG.md +12 -0
- package/dist/css/theme.css +1 -1
- package/package.json +1 -1
- package/src/scss/_general.scss +0 -6
- package/src/scss/_trucaverif.scss +0 -4
- package/src/scss/common/_com-edition.scss +93 -0
- package/src/scss/common/_com-footer.scss +1 -1
- package/src/scss/common/_com-react.scss +4 -0
- package/src/scss/homepage/_banner.scss +6 -0
- package/src/scss/main.scss +4 -0
- package/src/scss/sections/_se-file.scss +0 -1
- package/src/scss/sections/_se-horodatee.scss +33 -0
- package/src/scss/variables.scss +1 -1
- package/theme.zip +0 -0
- package/update-changelog.js +18 -14
package/package.json
CHANGED
package/src/scss/_general.scss
CHANGED
|
@@ -44,3 +44,96 @@ figcaption {
|
|
|
44
44
|
margin: 1rem auto;
|
|
45
45
|
padding: 0.2rem;
|
|
46
46
|
}
|
|
47
|
+
|
|
48
|
+
/* Reset propre */
|
|
49
|
+
.folder-factories {
|
|
50
|
+
list-style: none;
|
|
51
|
+
margin: 0;
|
|
52
|
+
padding: 0;
|
|
53
|
+
display: grid;
|
|
54
|
+
grid-template-columns: repeat(auto-fill, minmax(216px, 2fr));
|
|
55
|
+
gap: 1.25rem;
|
|
56
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* Chaque item */
|
|
60
|
+
.folder-factories li {
|
|
61
|
+
position: relative;
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
padding: 0.75rem;
|
|
65
|
+
border-radius: 14px;
|
|
66
|
+
background: #fff;
|
|
67
|
+
border: 1px solid #e5e7eb;
|
|
68
|
+
transition: all 0.25s ease;
|
|
69
|
+
height: 100%;
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* On cache le radio natif */
|
|
74
|
+
.folder-factories input[type="radio"] {
|
|
75
|
+
position: absolute;
|
|
76
|
+
opacity: 0%;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* Hover */
|
|
80
|
+
.folder-factories li:hover {
|
|
81
|
+
border-color: #cbd5e1;
|
|
82
|
+
box-shadow: 0 6px 18px rgba(0, 0, 0, 6%);
|
|
83
|
+
transform: translateY(-2px);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* Icône */
|
|
87
|
+
.folder-factories label img {
|
|
88
|
+
display: none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* Titre */
|
|
92
|
+
.folder-factories label {
|
|
93
|
+
font-weight: 600;
|
|
94
|
+
font-size: 1rem;
|
|
95
|
+
color: #111827;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.folder-factories label::before {
|
|
99
|
+
content: "";
|
|
100
|
+
display: block;
|
|
101
|
+
position: absolute;
|
|
102
|
+
left: 0;
|
|
103
|
+
right: 0;
|
|
104
|
+
top: 0;
|
|
105
|
+
bottom: 0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* Description */
|
|
109
|
+
.folder-factories .discreet {
|
|
110
|
+
display: block;
|
|
111
|
+
font-size: 0.85rem;
|
|
112
|
+
color: #6b7280;
|
|
113
|
+
line-height: 1.4;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* Etat sélectionné */
|
|
117
|
+
.folder-factories input[type="radio"]:checked + li {
|
|
118
|
+
border: 2px solid #2563eb;
|
|
119
|
+
background: #f0f7ff;
|
|
120
|
+
box-shadow: 0 0 0 4px rgba(37, 99, 235, 15%);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* Petit indicateur sélection */
|
|
124
|
+
.folder-factories input[type="radio"]:checked + label::after {
|
|
125
|
+
content: "✓";
|
|
126
|
+
position: absolute;
|
|
127
|
+
top: 14px;
|
|
128
|
+
right: 16px;
|
|
129
|
+
background: #2563eb;
|
|
130
|
+
color: white;
|
|
131
|
+
font-size: 0.75rem;
|
|
132
|
+
font-weight: bold;
|
|
133
|
+
width: 22px;
|
|
134
|
+
height: 22px;
|
|
135
|
+
border-radius: 50%;
|
|
136
|
+
display: flex;
|
|
137
|
+
align-items: center;
|
|
138
|
+
justify-content: center;
|
|
139
|
+
}
|
package/src/scss/main.scss
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
$row-gap-tamp: 10px;
|
|
2
2
|
|
|
3
3
|
.sectiontimestampedpublications {
|
|
4
|
+
margin-top: 2rem;
|
|
5
|
+
margin-bottom: 2rem;
|
|
6
|
+
|
|
7
|
+
.section-title {
|
|
8
|
+
margin-bottom: 1.5rem;
|
|
9
|
+
}
|
|
10
|
+
|
|
4
11
|
.row {
|
|
5
12
|
gap: $row-gap-tamp;
|
|
13
|
+
margin-bottom: 0;
|
|
6
14
|
|
|
7
15
|
@for $i from 1 through 12 {
|
|
8
16
|
.col-md-#{$i} {
|
|
@@ -35,4 +43,29 @@ $row-gap-tamp: 10px;
|
|
|
35
43
|
}
|
|
36
44
|
}
|
|
37
45
|
}
|
|
46
|
+
|
|
47
|
+
.table_display {
|
|
48
|
+
background: #f1f1f1;
|
|
49
|
+
padding: 30px;
|
|
50
|
+
border-radius: 10px;
|
|
51
|
+
list-style: none;
|
|
52
|
+
|
|
53
|
+
&::marker {
|
|
54
|
+
display: none !important;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.table_image {
|
|
58
|
+
text-decoration: none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.table_date {
|
|
62
|
+
font-size: 0.75rem;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.table_title {
|
|
66
|
+
font-weight: 700;
|
|
67
|
+
font-size: 1.125rem;
|
|
68
|
+
padding-bottom: 20px;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
38
71
|
}
|
package/src/scss/variables.scss
CHANGED
|
@@ -376,7 +376,7 @@ $section-contact-portrait-ration: calc(4 / 5);
|
|
|
376
376
|
$section-contact-background: #f3f3f3 !default;
|
|
377
377
|
|
|
378
378
|
// section-files
|
|
379
|
-
$section-file-background-color: #
|
|
379
|
+
$section-file-background-color: #f8f8f8 !default;
|
|
380
380
|
$enable-full-width-section-files: false !default;
|
|
381
381
|
$enable-light-color-section-files: false !default;
|
|
382
382
|
|
package/theme.zip
CHANGED
|
Binary file
|
package/update-changelog.js
CHANGED
|
@@ -1,30 +1,34 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const { execSync } = require(
|
|
3
|
-
const fs = require(
|
|
4
|
-
const path = require(
|
|
2
|
+
const { execSync } = require("child_process");
|
|
3
|
+
const fs = require("fs");
|
|
4
|
+
const path = require("path");
|
|
5
5
|
|
|
6
6
|
const version = process.argv[2];
|
|
7
7
|
if (!version) {
|
|
8
|
-
console.error(
|
|
8
|
+
console.error("Usage: node update-changelog.js <version>");
|
|
9
9
|
process.exit(1);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
const date = new Date().toISOString().split(
|
|
13
|
-
const repoUrl =
|
|
12
|
+
const date = new Date().toISOString().split("T")[0];
|
|
13
|
+
const repoUrl = "https://github.com/IMIO/imio_smartweb_themes";
|
|
14
14
|
|
|
15
15
|
// Previous tag (before new one is created)
|
|
16
16
|
let prevTag;
|
|
17
17
|
try {
|
|
18
|
-
prevTag = execSync(
|
|
18
|
+
prevTag = execSync("git describe --tags --abbrev=0", {
|
|
19
|
+
encoding: "utf8",
|
|
20
|
+
}).trim();
|
|
19
21
|
} catch (e) {
|
|
20
22
|
prevTag = null;
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
// Commits touching current directory (base/) since previous tag
|
|
24
|
-
let commits =
|
|
26
|
+
let commits = "";
|
|
25
27
|
try {
|
|
26
|
-
const range = prevTag ? `${prevTag}...HEAD` :
|
|
27
|
-
commits = execSync(`git log --pretty=format:"* %s (%h)" ${range} -- .`, {
|
|
28
|
+
const range = prevTag ? `${prevTag}...HEAD` : "HEAD";
|
|
29
|
+
commits = execSync(`git log --pretty=format:"* %s (%h)" ${range} -- .`, {
|
|
30
|
+
encoding: "utf8",
|
|
31
|
+
}).trim();
|
|
28
32
|
} catch (e) {
|
|
29
33
|
// no commits
|
|
30
34
|
}
|
|
@@ -39,13 +43,13 @@ const newEntry = commits
|
|
|
39
43
|
: `## [${version}](${compareUrl}) (${date})`;
|
|
40
44
|
|
|
41
45
|
// Prepend to CHANGELOG.md
|
|
42
|
-
const infile = path.join(__dirname,
|
|
43
|
-
let existing =
|
|
46
|
+
const infile = path.join(__dirname, "CHANGELOG.md");
|
|
47
|
+
let existing = "";
|
|
44
48
|
try {
|
|
45
|
-
existing = fs.readFileSync(infile,
|
|
49
|
+
existing = fs.readFileSync(infile, "utf8").trim();
|
|
46
50
|
} catch (e) {
|
|
47
51
|
// file doesn't exist yet
|
|
48
52
|
}
|
|
49
53
|
|
|
50
|
-
fs.writeFileSync(infile, newEntry + (existing ?
|
|
54
|
+
fs.writeFileSync(infile, newEntry + (existing ? "\n\n" + existing : "") + "\n");
|
|
51
55
|
console.log(`CHANGELOG.md updated for v${version}`);
|