-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use Stylelint (https://stylelint.io/) with "stylelint-config-standard" coding rules to uniformize all Esup-Pod CSS files. + minor Py code formatting * add minor code styling corrections * remove unused data-attribute * Auto Correct CSS by Prettier * Remove unused commented CSS lines * Remove CSS comments + correct a wrong default value "VOSK" for TRANSCRIPTION_TYPE
- Loading branch information
Showing
35 changed files
with
2,140 additions
and
2,234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,9 +17,11 @@ jobs: | |
git config user.email [email protected] | ||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} | ||
# Prettify js code with prettier | ||
# Prettify js+css code with prettier | ||
- name: Running prettier | ||
run: npx prettier --write pod/*/static/**/*.js | ||
run: | | ||
npx prettier --write pod/*/static/**/*.js | ||
npx prettier --write pod/*/static/**/*.css | ||
- name: Check for modified files | ||
id: prettier-git-check | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "stylelint-config-standard" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
/** | ||
* Esup-Pod BBB styles | ||
*/ | ||
|
||
#bbb_meetings_list .card-header { | ||
background: var(--color-black-alpha); | ||
padding: 0 .25rem; | ||
padding: 0 0.25rem; | ||
z-index: 9; | ||
} | ||
#bbb_meetings_list .card-header .text-muted{ | ||
color: var(--color-white) !important; | ||
|
||
#bbb_meetings_list .card-header .text-muted { | ||
color: var(--color-white) !important; | ||
} | ||
|
||
/* To always see publish button */ | ||
#bbb_meetings_list .infinite-item .card-body{ | ||
height: auto !important; | ||
#bbb_meetings_list .infinite-item .card-body { | ||
height: auto !important; | ||
} | ||
|
||
#bbb_meetings_list .infinite-item .card-body footer a { | ||
width: 100% !important; | ||
} | ||
#bbb_meetings_list .infinite-item .card-body footer a{ | ||
width: 100% !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,90 +1,107 @@ | ||
/** | ||
* Esup-Pod Chapter styles | ||
*/ | ||
|
||
/*** Table scroll ***/ | ||
table.scroll { | ||
width: 100%; | ||
border-collapse: collapse; | ||
border-spacing: 0; | ||
width: 100%; | ||
border-collapse: collapse; | ||
border-spacing: 0; | ||
} | ||
|
||
table.scroll .btn-sm, | ||
table.scroll .btn-group-sm > .btn { | ||
border-radius: 3px; | ||
font-size: 12px; | ||
line-height: 0.5; | ||
padding: 5px 10px; | ||
border-radius: 3px; | ||
font-size: 12px; | ||
line-height: 0.5; | ||
padding: 5px 10px; | ||
} | ||
|
||
table.scroll tbody, | ||
table.scroll thead { | ||
display: block; | ||
display: block; | ||
} | ||
|
||
table.scroll thead tr th { | ||
height: 27px; | ||
line-height: 27px; | ||
text-align: left; | ||
height: 27px; | ||
line-height: 27px; | ||
text-align: left; | ||
} | ||
|
||
table.scroll tbody { | ||
max-height: 200px; | ||
overflow-y: auto; | ||
overflow-x: hidden; | ||
max-height: 200px; | ||
overflow-y: auto; | ||
overflow-x: hidden; | ||
} | ||
|
||
table.scroll tbody td, | ||
table.scroll thead th { | ||
width: 10%; | ||
height: 20px; | ||
white-space: nowrap; | ||
line-height: 20px; | ||
width: 10%; | ||
height: 20px; | ||
white-space: nowrap; | ||
line-height: 20px; | ||
} | ||
|
||
table.scroll thead th.chapter_title, | ||
table.scroll thead th.chapter_time_start, | ||
table.scroll thead th.chapter_time_end { | ||
white-space: nowrap; | ||
white-space: nowrap; | ||
} | ||
|
||
#list_chapter .panel-heading, | ||
#form_chapter .panel-heading { | ||
border-bottom: 1px solid transparent; | ||
border-top-left-radius: 3px; | ||
border-top-right-radius: 3px; | ||
padding: 4px 15px; | ||
border-bottom: 1px solid transparent; | ||
border-top-left-radius: 3px; | ||
border-top-right-radius: 3px; | ||
padding: 4px 15px; | ||
} | ||
|
||
#form_new { | ||
padding-left: 12px; | ||
padding-bottom: 10px; | ||
padding-left: 12px; | ||
padding-bottom: 10px; | ||
} | ||
|
||
#form_chapter, | ||
#form_chapter_import, | ||
#form_vtt { | ||
padding: 10px; | ||
padding: 10px; | ||
} | ||
|
||
form#form_chapter, | ||
form#form_chapter_import { | ||
background-color: rgba(0, 0, 0, .05); | ||
background-color: rgba(0 0 0 0.05); | ||
} | ||
|
||
.form-group.row p { | ||
padding: 2px; | ||
padding: 2px; | ||
} | ||
|
||
/** Filepicker override **/ | ||
div.file-picker-overlay, | ||
div.file-picker, | ||
ul.css-tabs a { | ||
box-sizing: content-box; | ||
box-sizing: content-box; | ||
} | ||
|
||
textarea#id_description { | ||
line-height: normal; | ||
line-height: normal; | ||
} | ||
|
||
div.file-picker-overlay input[type="text"], | ||
div.file-picker-overlay textarea, | ||
div.file-picker-overlay textarea, | ||
div.file-picker-overlay select { | ||
border: 1px solid #ccc; | ||
border-radius: 4px; | ||
padding: 5px 6px; | ||
margin-top: 0; | ||
border: 1px solid #ccc; | ||
border-radius: 4px; | ||
padding: 5px 6px; | ||
margin-top: 0; | ||
} | ||
|
||
.file-list a:hover { | ||
cursor: pointer; | ||
color: #007bff !important; | ||
cursor: pointer; | ||
color: #007bff !important; | ||
} | ||
|
||
/** Bootstrap override **/ | ||
.card-title { | ||
margin: .45rem; | ||
} | ||
margin: 0.45rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.