Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[qa] Fixed stylelint issues #557

Merged
merged 1 commit into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@
"ignore": ["stylelint-commands", "after-comment"]
}
],
"declaration-colon-space-after": "always",
"indentation": [
2,
{
"except": ["value"]
}
],
"max-empty-lines": 4,
"rule-empty-line-before": [
"never-multi-line",
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,8 @@
.daterangepicker .drp-buttons {
text-align: center;
}
.daterangepicker .ranges, .daterangepicker .drp-calendar {
.daterangepicker .ranges,
.daterangepicker .drp-calendar {
float: none;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
left: 49%;
}
#device-map-container .leaflet-interactive:focus {
outline: none
outline: none;
}
#leaflet-config {
display: none;
Expand Down
51 changes: 36 additions & 15 deletions openwisp_monitoring/device/static/monitoring/css/monitoring.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#ow-device-status > fieldset > .inline-related {
padding: 0 1px;
}
#ow-device-status h2{
#ow-device-status h2 {
color: #333;
background-color: rgba(0, 0, 0, 0.05);
outline: 1px solid rgba(0, 0, 0, 0.3);
padding: 15px;
}
#ow-device-status .form-row,
#ow-device-status table th,
#ow-device-status table td{
#ow-device-status table td {
padding: 15px 20px !important;
}
#ow-device-status .form-row label,
Expand All @@ -21,11 +21,11 @@
#ow-device-status .form-row label {
padding-top: 2px;
}
#ow-device-status .inline-group{
#ow-device-status .inline-group {
margin-bottom: 0;
padding-top: 1px;
}
#ow-device-status table{
#ow-device-status table {
width: 100%;
margin: 0;
}
Expand All @@ -34,36 +34,57 @@
background: #f9f9f9 !important;
}
td.field-health_status,
.field-health_status .readonly{
.field-health_status .readonly {
font-weight: bold;
text-transform: uppercase;
}
.health-unknown{ color: grey }
.health-ok{ color: green }
.health-problem{ color: orange }
.health-critical{ color: red }
#ow-device-status table.addresses td{ width: 50% }
.health-unknown {
color: grey;
}
.health-ok {
color: green;
}
.health-problem {
color: orange;
}
.health-critical {
color: red;
}
#ow-device-status table.addresses td {
width: 50%;
}
.wifi-clients th.ht,
.wifi-clients th.vht,
.wifi-clients th.wmm,
.wifi-clients th.wds,
.wifi-clients th.wps{
.wifi-clients th.wps {
cursor: default;
}
#monitoring-metric-content_type-object_id-group .inline-related h3 {
padding: 10px 20px;
}
#monitoring-metric-content_type-object_id-group .djn-group-nested fieldset.djn-fieldset.module > h2,
#monitoring-metric-content_type-object_id-group .djn-group-nested fieldset.djn-fieldset.module .djn-inline-form > h3{
#monitoring-metric-content_type-object_id-group
.djn-group-nested
fieldset.djn-fieldset.module
> h2,
#monitoring-metric-content_type-object_id-group
.djn-group-nested
fieldset.djn-fieldset.module
.djn-inline-form
> h3 {
display: none;
}
#monitoring-metric-content_type-object_id-group{
#monitoring-metric-content_type-object_id-group {
padding-top: 0 !important;
}
.form-row.field-health_checks div.readonly {
margin-left: 0px !important;
}
.form-row.field-health_checks div div.flex-container div.readonly ul.health_checks {
.form-row.field-health_checks
div
div.flex-container
div.readonly
ul.health_checks {
margin-left: 0px !important;
padding-left: 0px !important;
}
30 changes: 15 additions & 15 deletions openwisp_monitoring/monitoring/static/monitoring/css/chart.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#ow-chart-fallback {
text-align: center;
}
#ow-chart-time{
#ow-chart-time {
margin-top: 15px;
text-align: center;
padding: 4px;
}
#ow-chart-time a{
#ow-chart-time a {
display: inline-block;
margin: 0 2px;
color: #fff;
Expand All @@ -16,32 +16,32 @@
border-radius: 3px;
cursor: pointer;
}
#ow-chart-time a:hover{
#ow-chart-time a:hover {
background-color: #777 !important;
}
#ow-chart-time a.active{
#ow-chart-time a.active {
background: transparent;
color: #666;
cursor: default;
border: 1px solid #666;
}
#ow-chart-time a.export{
#ow-chart-time a.export {
float: right;
background: #333;
}
#ow-chart-time a#daterangepicker-widget{
#ow-chart-time a#daterangepicker-widget {
float: left;
margin-right: 100px;
}
#ow-chart-time a.export:hover{
#ow-chart-time a.export:hover {
background: #777;
}
#ow-chart-fallback{
#ow-chart-fallback {
display: none;
border: 0 none;
}
#ow-chart-contents > div {
position: relative
position: relative;
}
.chart-help {
display: inline-block;
Expand All @@ -61,15 +61,15 @@
text-align: center;
font-size: 1.22em;
font-weight: normal;
color: #434B62;
color: #434b62;
}
.ow-chart {
margin-top: 1.5em;
padding-top: 1.5em;
border-top: 1px dotted rgba(0, 0, 0, 0.2);
text-align: center;
}
.ow-chart:first-child{
.ow-chart:first-child {
border: 0 none;
padding-top: 0;
margin-top: 2.25em;
Expand Down Expand Up @@ -110,13 +110,13 @@
margin-right: 2px;
}
#ow-chart-contents .circle > span {
font-size: .15em;
font-size: 0.15em;
word-spacing: -0.75px;
color: rgba(0, 0, 0, 0.6) !important;
font-size: 13px;
font-weight: bold;
}
#ow-chart-contents b{
#ow-chart-contents b {
background-color: #000 !important;
}
.chart-heading {
Expand All @@ -125,7 +125,7 @@
text-align: center;
font-size: 1.22em;
font-weight: normal;
color: #434B62;
color: #434b62;
}
#chart-loading-overlay {
width: 100%;
Expand All @@ -145,5 +145,5 @@
transform: translate(-50%, -50%);
text-align: center;
display: none;
font-size: 1.2em
font-size: 1.2em;
}
Loading