Commit 48225442 authored by Cédric Anne's avatar Cédric Anne Committed by Johan Cwiklinski

Use stylelint to lint CSS

parent a1c029fa
......@@ -36,6 +36,7 @@ shared: &shared
command: |
if [[ $(php --version|grep "7\.3") ]]; then vendor/bin/phpcs -d memory_limit=512M -p -n --extensions=php --standard=PSR2 ./src && vendor/bin/phpcs -d memory_limit=512M -p --extensions=php --standard=vendor/glpi-project/coding-standard/GlpiStandard/ --ignore=/.git,/config,/files,/lib,/node_modules,/plugins,/src,/tests/config,/vendor ./; else echo "No CS for this version"; fi
if [[ $(php --version|grep "7\.3") ]]; then node_modules/.bin/eslint ./js && node_modules/.bin/eslint --env=node --parser-options=ecmaVersion:6 --rule 'indent: ["error", 4]' ./webpack.config.js && echo "ESLint found no errors"; else echo "No CS for this version"; fi
if [[ $(php --version|grep "7\.3") ]]; then node_modules/.bin/stylelint "css/**/*.{,s,sa}css" --ignore-pattern="css/tiny_mce/**" && echo "ESLint found no errors"; else echo "No CS for this version"; fi
- run:
name: Update DB
command: |
......
{
"extends": "stylelint-config-recommended",
"rules": {
"indentation": 3,
"no-descending-specificity": null,
"no-duplicate-selectors": null,
"font-family-no-missing-generic-family-keyword": [
true,
{
"severity": "warning"
}
]
}
}
......@@ -150,9 +150,6 @@ html .ui-autocomplete {
border-width: 1px;
border-style: solid;
padding: .2em;
}
.ui-widget-content .error {
border-color: red;
}
......@@ -212,10 +209,10 @@ html .ui-autocomplete {
min-width: 72px;
position: relative;
text-overflow: clip;
text-overflow: ellipsis;
background-color: #FFF;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding-left: 1em;
max-width: 270px;
}
......@@ -227,7 +224,6 @@ html .ui-autocomplete {
background-color: inherit;
padding-left: 1em;
margin-left: .5em;
background-color: inherit;
line-height: 26px;
margin-top: -2px;
padding-right: .1em;
......@@ -263,36 +259,36 @@ html .ui-autocomplete {
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button
{
font-family: 'Bitstream Vera Sans', arial, Tahoma, 'Sans serif';
font-size: 11px;
font-family: 'Bitstream Vera Sans', Arial, Tahoma, 'Sans serif', sans-serif;
font-size: 11px;
}
.select2-results li {
font-family: 'Bitstream Vera Sans', arial, Tahoma, 'Sans serif';
font-family: 'Bitstream Vera Sans', Arial, Tahoma, 'Sans serif', sans-serif;
font-size: 11px;
}
.select2-search input {
font-family: 'Bitstream Vera Sans', arial, Tahoma, 'Sans serif';
font-family: 'Bitstream Vera Sans', Arial, Tahoma, 'Sans serif', sans-serif;
font-size: 11px;
}
.select2-container .select2-choice {
height: 22px;
padding: 0 0 0 8px;
font-weight: normal;
margin-top: 0px;
vertical-align: top;
height: 22px;
padding: 0 0 0 8px;
font-weight: normal;
margin-top: 0px;
vertical-align: top;
}
.select2-container .select2-choice span {
margin-top: -2px;
/* to have cut on left : not working reverse display for simple items*/
/*direction: rtl;*/
margin-top: -2px;
/* to have cut on left : not working reverse display for simple items*/
/*direction: rtl;*/
}
.select2-container .select2-choice div b {
margin-top: -2px;
margin-top: -2px;
}
#show_validator_field .select2-container{
width: 60%;
width: 60%;
}
.select2-results ul.select2-result-sub > li .select2-result-label { padding-left: 10px }
.select2-results ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 10px }
......@@ -327,7 +323,7 @@ input.submit {
}
.fn-gantt .ganttMilestone {
background-color: #000000;
background-color: #000000;
}
/** select2 disabled **/
......
This diff is collapsed.
......@@ -37,7 +37,7 @@
/* ################--------------- Default style ---------------#################### */
body {
font-family: 'Bitstream Vera Sans', arial, Tahoma, 'Sans serif';
font-family: 'Bitstream Vera Sans', Arial, Tahoma, 'Sans serif', sans-serif;
font-size: 12px;
margin: 0;
padding: 0;
......@@ -71,7 +71,7 @@ img {
}
small {
font-family: verdana;
font-family: Verdana, sans-serif;
font-size: 10px;
}
......@@ -287,10 +287,6 @@ table {
border:0;
}
th { }
td { }
.tab_glpi {
margin: 0 auto;
}
......@@ -318,7 +314,6 @@ td { }
.tab_cadre_navigation {
margin: 0 auto;
padding: 4px;
margin: 1px;
border: 1px solid #aaaaaa;
......@@ -457,13 +452,13 @@ li.auto_comp {
}
.actor_title, .actor-bloc {
display: table-cell;
float: none;
vertical-align: top;
display: table-cell;
float: none;
vertical-align: top;
}
.actor-bloc {
width: 29%;
float: left;
width: 29%;
float: left;
}
......@@ -644,12 +639,11 @@ ul#onglet {
ul#onglet li {
float: left;
height: 21px;
background-color: #eeeeee;
margin: 2px 2px 0 1px;
border: 1px solid #CC9900;
border-bottom: 1px solid #fff;
-moz-border-radius: 4px;
background: url("../pics/fond_onglet.png") repeat-x;
background: url("../pics/fond_onglet.png") repeat-x #eeeeee;
}
ul#onglet li.actif {
......@@ -660,7 +654,6 @@ ul#onglet li.actif {
ul#onglet li.invisible {
border-bottom: 1px solid #fff;
border: 1px solid #fff;
background-color: #ffffff;
width: 15px;
background: transparent;
}
......@@ -712,7 +705,7 @@ ul#onglet span.fake {
-moz-border-radius: 5px;
}
#onglet_plugins dl {
#onglet_plugins dl {
margin: 0;
padding: 0;
list-style-type: none;
......@@ -936,7 +929,7 @@ ul#onglet span.fake {
}
.sous_logo {
font-family: arial;
font-family: Arial, sans-serif;
font-size: 9px;
color: #eeeeee;
text-decoration: none;
......@@ -960,7 +953,6 @@ ul#onglet span.fake {
color :#757575;
font-family: Verdana,Arial,Helvetica,sans-serif;
font-weight: bold;
margin-top:10px;
margin:auto;
}
......@@ -1025,7 +1017,7 @@ div#c_recherche form {
div#c_recherche form div#champRecherche input {
border: 1px solid #000;
height: 14px;
font-family: 'Bitstream Vera Sans', arial, Tahoma, 'Sans serif';
font-family: 'Bitstream Vera Sans', Arial, Tahoma, 'Sans serif', sans-serif;
font-size: 11px;
}
......@@ -1038,7 +1030,7 @@ div#c_recherche form div#boutonRecherche {
}
div#c_recherche form div#boutonRecherche input {
font-family: 'Bitstream Vera Sans', arial, Tahoma, 'Sans serif';
font-family: 'Bitstream Vera Sans', Arial, Tahoma, 'Sans serif', sans-serif;
font-size: 0.7em;
width: 15px;
height: 15px;
......@@ -1340,7 +1332,7 @@ div#show_all_menu {
text-align: center;
margin: 0;
padding: 1px .5em;
font-family: helvetica,arial,sans-serif;
font-family: Helvetica,Arial,sans-serif;
font-size: 10px;
font-weight: bold;
background-color: #fff;
......@@ -1367,7 +1359,7 @@ div#show_all_menu {
text-align: center;
margin: 0;
padding: 1px .5em;
font-family: helvetica,arial,sans-serif;
font-family: Helvetica,Arial,sans-serif;
font-size: 10px;
font-weight: bold;
background-color: #fff;
......
......@@ -33,14 +33,14 @@
body {
background-color:#1B2F62;
font-family: Verdana;
font-family: Verdana, sans-serif;
color:#FFF;
}
#principal {
width:760px;
font-family: Verdana;
font-family: Verdana, sans-serif;
font-size:12px;
text-align: center;
margin: auto;
......@@ -109,10 +109,6 @@ th {
vertical-align:bottom;
}
.tab_cadre { }
.tab_bg_1 { }
.tab_check {
padding:10px;
background-color: #FFF;
......@@ -194,7 +190,7 @@ span.vsubmit, a.vsubmit {
padding: 5px;
cursor:pointer;
height: auto;
font: bold 12px Arial, Helvetica;
font: bold 12px Arial, Helvetica, sans-serif;
color: #8f5a0a;
background-color: #FEC95C;
border: 0;
......@@ -286,5 +282,5 @@ a.vsubmit:hover {
/* Language dropdown */
.select2-container ul {
color: #000;
color: #000;
}
......@@ -41,7 +41,7 @@ $break_tablets: 1300px;
/* ################--------------- Default style ---------------#################### */
body {
font-family: 'Bitstream Vera Sans', Verdana, Tahoma, 'Sans serif';
font-family: 'Bitstream Vera Sans', Verdana, Tahoma, 'Sans serif', sans-serif;
font-size: 12px;
margin: 0;
padding: 0;
......@@ -88,7 +88,7 @@ img {
}
small {
font-family: verdana;
font-family: Verdana, sans-serif;
font-size: 10px;
}
......@@ -590,7 +590,7 @@ input {
padding: 5px;
cursor: pointer;
height: auto;
font: bold 12px Arial, Helvetica;
font: bold 12px Arial, Helvetica, sans-serif;
color: #8f5a0a;
background-color: #FEC95C;
border: 0;
......@@ -603,7 +603,7 @@ span.vsubmit, a.vsubmit {
padding: 5px;
cursor: pointer;
height: auto;
font: bold 12px Arial, Helvetica;
font: bold 12px Arial, Helvetica, sans-serif;
color: #8f5a0a;
background-color: #FEC95C;
border: 0;
......@@ -615,7 +615,7 @@ span.vsubmit, a.vsubmit {
padding: 5px;
cursor: pointer;
height: auto;
font: bold 12px Arial, Helvetica;
font: bold 12px Arial, Helvetica, sans-serif;
color: #5F5F5F;
background-color: #E6E6E6;
border: 0;
......@@ -1090,8 +1090,6 @@ table {
border: 0;
}
th, td {}
.tab_glpi {
margin: 0 auto;
}
......@@ -1123,7 +1121,6 @@ th, td {}
}
.tab_cadre_navigation {
margin: 0 auto;
padding: 4px;
margin: 1px;
border: 1px solid #aaaaaa;
......@@ -1176,11 +1173,8 @@ th, td {}
}
.tab_cadre th, .tab_cadre_fixe th, .tab_cadre_fixehov th, .tab_cadrehov th, h2.header {
font-size: 12px;
font-weight: bold;
text-align: center;
border-radius: 4px;
padding: 2px;
border-radius: 0;
margin: 0;
font-size: 1.1em;
......@@ -1383,7 +1377,6 @@ td {
float: left;
font-weight: bold;
text-align: center;
padding-top: 30px;
font-size: 1.1em;
padding: 3px 5px;
background-color: #F1F1F1;
......@@ -1461,7 +1454,6 @@ td {
}
#searchcriteria {
margin-top: 10px;
background-color: #FFF;
width: 80%;
margin: 0 auto;
......@@ -1740,7 +1732,7 @@ img.picture_square {
}
.calendrier_jour {
font-family: arial,helvetica,sans-serif;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: black;
}
......@@ -2400,19 +2392,11 @@ a.icon_nav_move {
}
.partialavailableend {
background-image: -webkit-linear-gradient(left, red 50%, green 0%);
background-image: -moz-linear-gradient(left, red 50%, green 0%);
background-image: -ms-linear-gradient(left, red 50%, green 0%);
background-image: -o-linear-gradient(left, red 50%, green 0%);
background-image: linear-gradient(left, red 50%, green 0%);
background-image: linear-gradient(to right, red 50%, green 0%);
}
.partialavailablebegin {
background-image: -webkit-linear-gradient(left, green 50%, red 0%);
background-image: -moz-linear-gradient(left, green 50%, red 0%);
background-image: -ms-linear-gradient(left, green 50%, red 0%);
background-image: -o-linear-gradient(left, green 50%, red 0%);
background-image: linear-gradient(left, green 50%, red 0%);
background-image: linear-gradient(to right, green 50%, red 0%);
}
/* ################--------------- Menu navigation ---------------#################### */
......@@ -2593,7 +2577,6 @@ a.icon_nav_move {
.login_input {
position: relative;
width: 13em;
margin: 15px auto 5px;
width: 240px;
}
......@@ -2648,7 +2631,7 @@ a.icon_nav_move {
}
.login_input:before {
font-family: 'Font Awesome\ 5 Free';
font-family: 'Font Awesome 5 Free';
left: 8px;
position: absolute;
top: 3px;
......@@ -2704,7 +2687,7 @@ a.icon_nav_move {
}
.sous_logo {
font-family: arial;
font-family: Arial, sans-serif;
font-size: 9px;
color: #eeeeee;
text-decoration: none;
......@@ -2843,7 +2826,7 @@ a.icon_nav_move {
height: 22px;
width: 150px;
padding: 0 3px;
font-family: 'Bitstream Vera Sans', Verdana, Tahoma, 'Sans serif';
font-family: 'Bitstream Vera Sans', Verdana, Tahoma, 'Sans serif', sans-serif;
font-size: 12px;
border-radius: 3px 0px 0px 3px;
position: relative;
......@@ -2853,7 +2836,7 @@ a.icon_nav_move {
#myname {
font-size: 11px;
font-family: 'Bitstream Vera Sans', Verdana, Tahoma, 'Sans serif';
font-family: 'Bitstream Vera Sans', Verdana, Tahoma, 'Sans serif', sans-serif;
margin: 0 0 .5em .5em;
display: inline-block;
vertical-align: bottom;
......@@ -3179,7 +3162,6 @@ ul#menu {
font-size: 9px;
color: #000;
background-color: #E2E1DE;
padding: 6px;
height: 18px;
padding: 5px;
......@@ -3210,7 +3192,7 @@ a.copyright {
text-align: center;
margin: 0;
padding: 1px .5em;
font-family: helvetica,arial,sans-serif;
font-family: Helvetica,Arial,sans-serif;
font-size: 10px;
font-weight: bold;
background-color: #fff;
......@@ -3243,7 +3225,7 @@ a.copyright {
text-align: center;
margin: 0;
padding: 1px .5em;
font-family: helvetica,arial,sans-serif;
font-family: Helvetica,Arial,sans-serif;
font-size: 10px;
font-weight: bold;
background-color: #fff;
......@@ -3385,7 +3367,7 @@ a.copyright {
text-align: left;
padding: 4px 8px;
margin-top: -10px;
font-family: 'Bitstream Vera Sans', Verdana, Tahoma, 'Sans serif';
font-family: 'Bitstream Vera Sans', Verdana, Tahoma, 'Sans serif', sans-serif;
.break {
clear: both;
......@@ -3555,10 +3537,8 @@ a.copyright {
.h_date {
background-repeat: no-repeat;
padding-left: 24px;
padding-top: 1px;
text-transform: capitalize;
text-align: center;
i {
font-size: 1.8em;
......@@ -4069,7 +4049,7 @@ a.copyright {
outline: none;
padding: 5px;
cursor: pointer;
font: bold 12px Arial, Helvetica;
font: bold 12px Arial, Helvetica, sans-serif;
color: #8f5a0a;
background-color: #FEC95C;
border: none;
......@@ -4104,7 +4084,7 @@ a.copyright {
}
.x-button-drop:after {
font-family: 'Font Awesome\ 5 Free';
font-family: 'Font Awesome 5 Free';
font-weight: 900;
}
......@@ -4230,7 +4210,7 @@ a.copyright {
&:before {
color: #929292;
font-family: 'Font Awesome\ 5 Free';
font-family: 'Font Awesome 5 Free';
padding-left: 2px;
}
}
......@@ -4569,7 +4549,7 @@ input[type=checkbox].toggle_comments {
}
&:after {
font-family: 'Font Awesome\ 5 Free';
font-family: 'Font Awesome 5 Free';
position: relative;
left: -15px;
top: 1px;
......@@ -5255,7 +5235,7 @@ button.unstyled {
.warning {
padding: .5em;
cursor: pointer;
font: bold 12px Arial, Helvetica;
font: bold 12px Arial, Helvetica, sans-serif;
color: #8f5a0a;
background-color: #FEC95C;
border: 0;
......@@ -5448,7 +5428,7 @@ div#viewgraph {
left: 0;
top: 0;
font-size: 15px;
font-family: 'Font Awesome\ 5 Free';
font-family: 'Font Awesome 5 Free';
position: absolute;
font-weight: 900;
}
......@@ -5629,9 +5609,6 @@ ul.indexes {
position: absolute;
bottom: 1px;
left: 0;
position: absolute;
bottom: 1px;
left: 0;
}
}
......@@ -5667,7 +5644,7 @@ ul.indexes {
font-size: 1em;
color: grey;
top: 5px;
font-family: 'Font Awesome\ 5 Free';
font-family: 'Font Awesome 5 Free';
position: absolute;
font-weight: 900;
}
......
......@@ -33,22 +33,22 @@
}
.x-tab-tabmenu-right {
background: transparent url(../pics/extrajs/tab-scroller-menu.gif) no-repeat 0 0;
border-bottom: 1px solid #8db2e3;
width:18px;
position:absolute;
right:0;
top:0;
z-index:10;
cursor:pointer;
background: transparent url(../pics/extrajs/tab-scroller-menu.gif) no-repeat 0 0;
border-bottom: 1px solid #8db2e3;
width:18px;
position:absolute;
right:0;
top:0;
z-index:10;
cursor:pointer;
}
.x-tab-tabmenu-over {
background-position: -18px 0;
background-position: -18px 0;
}
.x-tab-tabmenu-disabled {
background-position: 0 0;
opacity:.5;
-moz-opacity:.5;
filter:alpha(opacity=50);
cursor:default;
background-position: 0 0;
opacity:.5;
-moz-opacity:.5;
filter:alpha(opacity=50);
cursor:default;
}
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment