Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CssLsd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Florent Berthaut
CssLsd
Commits
635eeeb9
Commit
635eeeb9
authored
3 years ago
by
RANWEZ Pierre
Browse files
Options
Downloads
Patches
Plain Diff
feat: popup accordion
parent
2cd21bfd
No related branches found
No related tags found
1 merge request
!1
✨ feat: CSSLSD V2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
main.js
+15
-5
15 additions, 5 deletions
main.js
popup.html
+116
-108
116 additions, 108 deletions
popup.html
style.css
+10
-6
10 additions, 6 deletions
style.css
with
141 additions
and
119 deletions
main.js
+
15
−
5
View file @
635eeeb9
...
@@ -54,7 +54,11 @@ function setAutocompleteParameters() {
...
@@ -54,7 +54,11 @@ function setAutocompleteParameters() {
* Load the editor and add css
* Load the editor and add css
*/
*/
function
loadEditor
()
{
function
loadEditor
()
{
editor
=
ace
.
edit
(
"
editor
"
);
editor
=
ace
.
edit
(
"
editor
"
,
{
autoScrollEditorIntoView
:
true
,
maxLines
:
40
,
minLines
:
2
});
editor
.
setTheme
(
"
ace/theme/tomorrow_night_blue
"
);
editor
.
setTheme
(
"
ace/theme/tomorrow_night_blue
"
);
editor
.
session
.
setMode
(
"
ace/mode/css
"
);
editor
.
session
.
setMode
(
"
ace/mode/css
"
);
editor
.
getSession
().
setUseWorker
(
false
);
// Disable syntax checking, not working in chrome extension V3
editor
.
getSession
().
setUseWorker
(
false
);
// Disable syntax checking, not working in chrome extension V3
...
@@ -501,3 +505,9 @@ $(document).tooltip({
...
@@ -501,3 +505,9 @@ $(document).tooltip({
placement
:
'
top left
'
,
placement
:
'
top left
'
,
trigger
:
'
hover
'
trigger
:
'
hover
'
});
});
$
(
function
()
{
$
(
"
#accordion
"
).
accordion
({
collapsible
:
true
,
heightStyle
:
"
content
"
});
});
\ No newline at end of file
This diff is collapsed.
Click to expand it.
popup.html
+
116
−
108
View file @
635eeeb9
...
@@ -24,8 +24,9 @@
...
@@ -24,8 +24,9 @@
<div
class=
"audioI"
></div>
<div
class=
"audioI"
></div>
</div>
</div>
</div>
</div>
<details
open
>
<summary>
<div
id=
"accordion"
>
<h3>
<svg
<svg
xmlns=
"http://www.w3.org/2000/svg"
xmlns=
"http://www.w3.org/2000/svg"
class=
"icon icon-tabler icon-tabler-code"
class=
"icon icon-tabler icon-tabler-code"
...
@@ -44,11 +45,13 @@
...
@@ -44,11 +45,13 @@
<line
x1=
"14"
y1=
"4"
x2=
"10"
y2=
"20"
></line>
<line
x1=
"14"
y1=
"4"
x2=
"10"
y2=
"20"
></line>
</svg>
</svg>
CSSLSD
CSSLSD
</summary>
</h3>
<div>
<div
id=
"editor"
></div>
<div
id=
"editor"
></div>
</details>
<details
open
>
</div>
<summary>
<h3>
<svg
<svg
xmlns=
"http://www.w3.org/2000/svg"
xmlns=
"http://www.w3.org/2000/svg"
class=
"icon icon-tabler icon-tabler-variable"
class=
"icon icon-tabler icon-tabler-variable"
...
@@ -68,7 +71,8 @@
...
@@ -68,7 +71,8 @@
<path
d=
"M8 16c1.5 0 3 -2 4 -3.5s2.5 -3.5 4 -3.5"
></path>
<path
d=
"M8 16c1.5 0 3 -2 4 -3.5s2.5 -3.5 4 -3.5"
></path>
</svg>
</svg>
PARAMETRES
PARAMETRES
</summary>
</h3>
<div>
<table>
<table>
<thead>
<thead>
<tr>
<tr>
...
@@ -90,7 +94,8 @@
...
@@ -90,7 +94,8 @@
>
>
</th>
</th>
<th>
<th>
<a
title=
"r (aleatoire) d (decimal) i:1 (increment de 1)"
<a
title=
"r (aleatoire) d (decimal) i:1 (increment de 1)"
>
Options
</a
>
Options
</a
>
>
</th>
</th>
...
@@ -110,9 +115,8 @@
...
@@ -110,9 +115,8 @@
</thead>
</thead>
<tbody
id=
"parameters"
></tbody>
<tbody
id=
"parameters"
></tbody>
</table>
</table>
</details>
</div>
<details>
<h3>
<summary>
<svg
<svg
xmlns=
"http://www.w3.org/2000/svg"
xmlns=
"http://www.w3.org/2000/svg"
class=
"icon icon-tabler icon-tabler-repeat"
class=
"icon icon-tabler icon-tabler-repeat"
...
@@ -130,7 +134,8 @@
...
@@ -130,7 +134,8 @@
<path
d=
"M20 12v3a3 3 0 0 1 -3 3h-13m3 3l-3 -3l3 -3"
></path>
<path
d=
"M20 12v3a3 3 0 0 1 -3 3h-13m3 3l-3 -3l3 -3"
></path>
</svg>
</svg>
BOUCLES
BOUCLES
</summary>
</h3>
<div>
<table
width=
"100%"
>
<table
width=
"100%"
>
<thead>
<thead>
<tr>
<tr>
...
@@ -143,9 +148,9 @@
...
@@ -143,9 +148,9 @@
</thead>
</thead>
<tbody
id=
"loopList"
></tbody>
<tbody
id=
"loopList"
></tbody>
</table>
</table>
</d
etails
>
</d
iv
>
<details>
<
summary
>
<
h3
>
<svg
<svg
xmlns=
"http://www.w3.org/2000/svg"
xmlns=
"http://www.w3.org/2000/svg"
class=
"icon icon-tabler icon-tabler-file-text"
class=
"icon icon-tabler icon-tabler-file-text"
...
@@ -168,7 +173,8 @@
...
@@ -168,7 +173,8 @@
<line
x1=
"9"
y1=
"17"
x2=
"15"
y2=
"17"
></line>
<line
x1=
"9"
y1=
"17"
x2=
"15"
y2=
"17"
></line>
</svg>
</svg>
CHARGER / TELECHARGER
CHARGER / TELECHARGER
</summary>
</h3>
<div>
<table>
<table>
<tr>
<tr>
<td>
<td>
...
@@ -225,7 +231,9 @@
...
@@ -225,7 +231,9 @@
</td>
</td>
</tr>
</tr>
</table>
</table>
</details>
</div>
</div>
<p
style=
"text-align: center"
>
<p
style=
"text-align: center"
>
©
2022 - Universite de Lille -
<a
id=
"doc"
>
Voir la documentation
</a>
©
2022 - Universite de Lille -
<a
id=
"doc"
>
Voir la documentation
</a>
</p>
</p>
...
...
This diff is collapsed.
Click to expand it.
style.css
+
10
−
6
View file @
635eeeb9
...
@@ -165,7 +165,9 @@ details[open] > *:not(summary) {
...
@@ -165,7 +165,9 @@ details[open] > *:not(summary) {
transform
:
var
(
--details-translate
,
translateY
(
-0.5em
));
transform
:
var
(
--details-translate
,
translateY
(
-0.5em
));
}
}
}
}
summary
{
h3
{
border-top
:
rgba
(
255
,
255
,
255
,
0.3
)
solid
1px
;
padding
:
6px
;
font-size
:
17px
;
font-size
:
17px
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
...
@@ -199,16 +201,18 @@ tbody > tr {
...
@@ -199,16 +201,18 @@ tbody > tr {
.icon-tabler-minus
{
.icon-tabler-minus
{
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.ace_scrollbar
{
body
::-webkit-scrollbar
{
right
:
4px
;
width
:
6px
;
}
body
::-webkit-scrollbar
,
.ace_scrollbar
::-webkit-scrollbar
{
width
:
10px
;
}
}
body
::-webkit-scrollbar-track
{
body
::-webkit-scrollbar-track
,
.ace_scrollbar
::-webkit-scrollbar-track
{
box-shadow
:
inset
0
0
6px
rgba
(
0
,
0
,
0
,
0.3
);
box-shadow
:
inset
0
0
6px
rgba
(
0
,
0
,
0
,
0.3
);
}
}
body
::-webkit-scrollbar-thumb
{
body
::-webkit-scrollbar-thumb
,
.ace_scrollbar
::-webkit-scrollbar-thumb
{
background-color
:
rgba
(
255
,
255
,
255
,
0.3
);
background-color
:
rgba
(
255
,
255
,
255
,
0.3
);
border-radius
:
10px
;
border-radius
:
10px
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment