Skip to content

Commit

Permalink
Stylelint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed Oct 28, 2021
1 parent 0ad23d2 commit 19ef60c
Show file tree
Hide file tree
Showing 29 changed files with 5,922 additions and 1,638 deletions.
13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,18 @@
"url": "git@github.com:eea/volto-industry-theme.git"
},
"addons": [
"@eeacms/volto-tableau",
"@eeacms/volto-datablocks",
"@eeacms/volto-openlayers-map",
"@eeacms/volto-columns-block"
],
"dependencies": {
"@cypress/code-coverage": "^3.9.5",
"@eeacms/volto-datablocks": "2.0.13",
"@eeacms/volto-openlayers-map": "0.1.2",
"@eeacms/volto-columns-block": "4.4.6",
"@eeacms/volto-tableau": "^1.2.4",
"@eeacms/volto-datablocks": "^2.0.13",
"@eeacms/volto-openlayers-map": "^0.1.2",
"@eeacms/volto-columns-block": "^4.4.6",
"tableau-api-js": "github:eea/tableau-api-js#1.1.1",
"axios": "0.24.0",
"babel-plugin-transform-class-properties": "^6.24.1",
"react-highlight-words": "0.17.0",
Expand All @@ -41,8 +44,8 @@
"test": "make test",
"test:fix": "make test-update",
"pre-commit": "yarn stylelint:fix && yarn prettier:fix && yarn lint:fix",
"stylelint": "if [ -d ./project ]; then ./project/node_modules/stylelint/bin/stylelint.js --allow-empty-input 'src/**/*.{css,less}'; else ../../../node_modules/stylelint/bin/stylelint.js --allow-empty-input 'src/**/*.{css,less}'; fi",
"stylelint:overrides": "if [ -d ./project ]; then ./project/node_modules/.bin/stylelint --syntax less --allow-empty-input 'theme/**/*.overrides' 'src/**/*.overrides'; else ../../../node_modules/.bin/stylelint --syntax less --allow-empty-input 'theme/**/*.overrides' 'src/**/*.overrides'; fi",
"stylelint": "../../../node_modules/stylelint/bin/stylelint.js --allow-empty-input 'src/**/*.{css,less}'",
"stylelint:overrides": "../../../node_modules/.bin/stylelint --syntax less --allow-empty-input 'theme/**/*.overrides' 'src/**/*.overrides'",
"stylelint:fix": "yarn stylelint --fix && yarn stylelint:overrides --fix",
"prettier": "if [ -d ./project ]; then ./project/node_modules/.bin/prettier --single-quote --check 'src/**/*.{js,jsx,json,css,less,md}'; else ../../../node_modules/.bin/prettier --single-quote --check 'src/**/*.{js,jsx,json,css,less,md}'; fi",
"prettier:fix": "if [ -d ./project ]; then ./project/node_modules/.bin/prettier --single-quote --write 'src/**/*.{js,jsx,json,css,less,md}'; else ../../../node_modules/.bin/prettier --single-quote --write 'src/**/*.{js,jsx,json,css,less,md}'; fi",
Expand Down
6 changes: 3 additions & 3 deletions src/components/manage/Blocks/ExploreEprtr/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
.column.description {
display: flex;
flex-flow: column;
justify-content: space-between;
align-self: stretch;
justify-content: space-between;
font-size: @fontSize;

.explore-tile {
Expand All @@ -46,14 +46,14 @@
}

p {
color: @lightBlue;
margin-bottom: 0;
color: @lightBlue;
font-weight: bold;

&.title {
margin-bottom: 0.2rem;
color: @darkBlue;
font-size: 1.2em;
margin-bottom: 0.2rem;
}
}
}
Expand Down
53 changes: 27 additions & 26 deletions src/components/manage/Blocks/FiltersBlock/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
.filters-block {
@textColor: var(--text-color, @darkBlue);
display: flex;
flex-flow: row;
height: 100%;
flex-flow: row;

.search-container {
position: relative;
Expand All @@ -20,25 +20,25 @@
height: 100%;

input {
margin-right: 1rem;
border-radius: 2em;
padding-right: 3.5em !important;
padding-left: 1em !important;
padding-top: @verticalPadding !important;
padding-right: 3.5em !important;
padding-bottom: @verticalPadding !important;
padding-left: 1em !important;
margin-right: 1rem;
border-radius: 2em;
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.08);
}

.icon {
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
border: none;
right: 0;
width: 1em;
padding: 0;
border: none;
margin: 0;
width: 1em;
opacity: 0.8;
transform: translateY(-50%);

&.search {
right: 2em;
Expand All @@ -51,9 +51,9 @@

&:not(.loading) {
.icon {
pointer-events: all !important;
cursor: pointer;
color: @textColor;
cursor: pointer;
pointer-events: all !important;

&:hover {
opacity: 1;
Expand All @@ -64,19 +64,19 @@

.ui.list {
position: absolute;
background: #fff;
border-radius: 1em;
z-index: 1;
width: calc(100% - 1rem);
padding: 1rem;
margin-top: 0;
background: #fff;
border-radius: 1em;
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.08);
width: calc(100% - 1rem);
z-index: 1;

.item {
display: flex;
justify-content: space-between;
cursor: pointer;
padding: 6px 10px;
cursor: pointer;

&:hover {
background-color: @lightGrey;
Expand Down Expand Up @@ -105,6 +105,7 @@

.search-container {
margin-bottom: 1rem;

.ui.input {
input {
margin-right: 0;
Expand All @@ -117,17 +118,17 @@
.ui.modal.filters-block {
> .header,
h3 {
color: @primaryColor;
margin-top: 1rem;
color: @primaryColor;
}

> .header {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 0;
justify-content: space-between;
padding-top: 1rem !important;
padding-bottom: 1rem !important;
margin-top: 0;

.icon {
cursor: pointer;
Expand All @@ -145,10 +146,10 @@
align-items: center;

.icon {
cursor: pointer;
margin-bottom: 1rem;
fill: @orange !important;
color: @orange !important;
cursor: pointer;
fill: @orange !important;

&:hover {
.darkenFilter(0.9);
Expand All @@ -158,25 +159,25 @@

.ui.dropdown {
display: inline-flex;
margin-bottom: 1rem;
margin-right: 1rem;
max-width: 14em;
margin-right: 1rem;
margin-bottom: 1rem;

> .dropdown.icon:before {
color: @orange;
}

.text {
width: 100%;
overflow: hidden;
white-space: nowrap;
width: 100%;
text-overflow: ellipsis;
white-space: nowrap;
}
}

.actions {
text-align: center;
padding: 1rem !important;
text-align: center;

button {
margin-right: 2rem;
Expand Down
46 changes: 27 additions & 19 deletions src/components/manage/Blocks/IndustryDataTable/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

.industry-table {
display: flex;
overflow-x: auto;
min-height: 400px;
align-items: baseline;
overflow-x: auto;

.ui.loader {
align-self: center;
Expand All @@ -34,8 +34,8 @@

&::after {
display: none;
border-bottom: none;
padding: 0;
border-bottom: none;
}
}
}
Expand All @@ -45,18 +45,20 @@
tr {
border: none;
background-color: #f8f8f8;

&.hidden-row {
border: none;
display: none;
border: none;

td {
padding: 0;

.table-flex-container {
display: flex;
justify-content: space-between;
overflow: hidden;
transition: opacity 0.4s cubic-bezier(0, 0, 1, 1);
justify-content: space-between;
padding: 0 0.4rem;
transition: opacity 0.4s cubic-bezier(0, 0, 1, 1);

&.action {
padding: 0;
Expand All @@ -69,29 +71,33 @@
}

span.header {
font-weight: bold;
color: @primaryColor;
margin-bottom: 1em;
color: @primaryColor;
font-weight: bold;
}
}
}

&.show {
border: none;
display: table-row;
border: none;

td {
padding: 20px 16px 20px 16px;

.table-flex-container {
padding: 1em;
max-height: fit-content;
padding: 1em;
opacity: 1;

&.action {
padding: 0;
margin-top: 1em;
}

&.white {
color: #000;
background: #fff;
color: #000;
}
}
}
Expand All @@ -101,18 +107,18 @@
&.hide {
td {
.table-flex-container {
padding: 0;
max-height: 0;
padding: 0;
opacity: 0;
}
}
}

button {
cursor: pointer;
background: transparent;
border: none;
padding: 0;
border: none;
background: transparent;
cursor: pointer;

&:focus {
outline: none;
Expand All @@ -129,6 +135,7 @@

&.row-active {
font-weight: bold;

button {
svg.icon {
fill: @orange !important;
Expand All @@ -148,14 +155,14 @@

tfoot {
th {
border: none;
padding: 0.78571429em 0;
border: none;
}
}

td {
border: none;
padding: 4px 16px;
border: none;
}
}

Expand All @@ -165,17 +172,18 @@

.ui.pagination.menu {
border: 1px solid rgba(34, 36, 38, 0.15);
box-shadow: 0 1px 2px 0 rgba(34, 36, 38, 0.15);
border-radius: 0.28571429rem;
box-shadow: 0 1px 2px 0 rgba(34, 36, 38, 0.15);

.item {
&:before {
position: absolute;
content: '';
top: 0;
right: 0;
height: 100%;
width: 1px;
height: 100%;
background: rgba(34, 36, 38, 0.1);
content: '';
}

&:focus {
Expand Down
Loading

0 comments on commit 19ef60c

Please sign in to comment.