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

Run linter autofixable issues #4240

Merged
merged 5 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
run eslint --fix and stylelint --fix
  • Loading branch information
Crashillo committed Jun 20, 2024
commit efe4435ea4fe552d9b9ae0daf524b943fb221e5f
76 changes: 40 additions & 36 deletions app/assets/stylesheets/admin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
@import "purecss/build/pure-nr";
@import "purecss/build/grids-responsive";
@import "@fortawesome/fontawesome-free/css/all.css";

@import "modules/css-conf";

/* Override front fonts (defined in css-conf) */
Expand All @@ -18,9 +17,7 @@ $font_serif: 'Georgia, serif';
@import "modules/comp-tipsy";
@import "modules/comp-flash_messages";
@import "modules/defaults-admin";

@import url("https://fonts.googleapis.com/css?family=Libre+Franklin:200,400,700,600");

@import "https://fonts.googleapis.com/css?family=Libre+Franklin:200,400,700,600";
@import "modules/comp-indicator_widget";
@import "modules/comp-tabs";
@import "modules/comp-lists";
Expand Down Expand Up @@ -60,7 +57,7 @@ menu.main {
}

header.main {
margin: 0 0 1px 0;
margin: 0 0 1px;
clear: both;
position: fixed;
width: 100%;
Expand Down Expand Up @@ -278,7 +275,7 @@ body.gobierto_admin {

h1 {
font-size: 1.8em;
margin: 0 0 1em 0;
margin: 0 0 1em;
}

h2 {
Expand Down Expand Up @@ -308,7 +305,7 @@ body.gobierto_admin {
}

.tabs {
margin: 0 0 2em 0;
margin: 0 0 2em;

ul {
li {
Expand Down Expand Up @@ -343,7 +340,7 @@ body.gobierto_admin {

/* Forms modification */
.admin_tools {
margin: 0 0 2em 0;
margin: 0 0 2em;
font-size: 0.9em;

.button,
Expand Down Expand Up @@ -397,14 +394,15 @@ body.gobierto_admin {
/* Widget Save v2 */
.widget_save_v2 {
background: $color_neutral_soft;

@include border-radius(6px);

.w_s_content {
padding: 0.75em;
}

.publication_section {
background: rgba(var(--color-base-string), 0.15);
background: rgb(var(--color-base-string) 0.15);
}

.w_actions {
Expand All @@ -413,6 +411,7 @@ body.gobierto_admin {

> button {
width: 49%;

@include ellipsis;
}
}
Expand Down Expand Up @@ -491,12 +490,12 @@ pre {
font-size: 0.85em;
background: $color_separator;
padding: 0.5em 1em;
margin: 1em 0 2em 0;
margin: 1em 0 2em;
}

.list_item,
.list_item_with_editable_content {
margin: 0 0 0.5em 0;
margin: 0 0 0.5em;
display: flex;

.fa-bars {
Expand All @@ -516,8 +515,11 @@ pre {
flex-grow: 10;
background: $color_secondary;
padding: 6px 12px;

@include border-radius(4px);

font-weight: 600;

// width: calc(100% - 200px);

label {
Expand Down Expand Up @@ -601,12 +603,12 @@ pre {
}

.user_field_container {
margin: 0 0 1em 0;
margin: 0 0 1em;

@include border-radius(6px);

border: 1px solid lighten($color_separator, 5%);
padding: 1.5em 2em 1em 2em;
padding: 1.5em 2em 1em;

.field_item {
font-weight: 600;
Expand All @@ -617,7 +619,7 @@ pre {
height: initial;
display: initial;
padding: 0.25em 0.5em;
margin: 0 0 0.5em 0;
margin: 0 0 0.5em;
}
}

Expand All @@ -633,7 +635,7 @@ pre {
margin-bottom: 5em;

.globalize_tool {
margin: 0 0 1em 0;
margin: 0 0 1em;
font-size: 0.9em;

label {
Expand All @@ -652,11 +654,11 @@ pre {

@include border-radius(3px);

background: rgba(var(--color-base-string), 0.1);
background: rgb(var(--color-base-string) 0.1);
}

a.locale_option:hover {
background: rgba(var(--color-base-string), 0.3);
background: rgb(var(--color-base-string) 0.3);
}

a.selected,
Expand Down Expand Up @@ -705,7 +707,7 @@ pre {
@include border-radius(5px);

font-size: 0.85em;
margin: 0 0 1em 0;
margin: 0 0 1em;
display: inline-block;
}

Expand All @@ -715,7 +717,7 @@ pre {
*/
.activity_feed {
.activity_item {
margin: 0 0 1.5em 0;
margin: 0 0 1.5em;

h2 {
text-transform: none;
Expand All @@ -739,7 +741,7 @@ pre {
}

a:hover {
background: rgba(var(--color-base-string), 0.06);
background: rgb(var(--color-base-string) 0.06);
}
}

Expand Down Expand Up @@ -781,7 +783,7 @@ a .global_menu {
padding-left: 0;

li {
border-top: 1px solid rgba(0, 144, 158, 0.15);
border-top: 1px solid rgb(0 144 158 / 15%);
font-weight: 600;
padding: 0.5em 0;
}
Expand All @@ -793,7 +795,7 @@ a .global_menu {
top: -0.35rem;
left: -1.25rem;
background: #f5f4f4;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
box-shadow: 0 0 20px rgb(0 0 0 / 40%);
border-radius: 4px;
z-index: 1;
padding: 0.75rem 1.25rem;
Expand Down Expand Up @@ -830,7 +832,7 @@ a .global_menu {
}

.file_browser {
background: rgba(var(--color-base-string), 0.06);
background: rgb(var(--color-base-string) 0.06);
font-size: 0.85em;
box-sizing: border-box;
padding: 1em;
Expand All @@ -851,7 +853,7 @@ a .global_menu {

li:hover {
border-radius: 3px;
background: rgba(var(--color-base-string), 0.15);
background: rgb(var(--color-base-string) 0.15);
cursor: pointer;
}

Expand All @@ -863,7 +865,7 @@ a .global_menu {

.template_editor {
.template_editor_main_pane {
background: rgba(var(--color-base-string), 0.06);
background: rgb(var(--color-base-string) 0.06);
}

.action_buttons {
Expand All @@ -875,7 +877,7 @@ a .global_menu {
}

.code_editor {
background: rgba(var(--color-base-string), 0.06);
background: rgb(var(--color-base-string) 0.06);
box-sizing: border-box;
padding: 1em;
min-height: 600px;
Expand Down Expand Up @@ -988,27 +990,29 @@ table {

.border-el {
border: 1px solid $color_separator;

@include border-radius(6px);
}

/* Gobierto Vocabulary */
.v_container {
.v_el {
margin: 0 0 0 1.75em;
padding: 0.35em 0 0.15em 0;
padding: 0.35em 0 0.15em;

.v_el {
border-top: 1px solid rgba(var(--color-base-string), 0.2);
border-top: 1px solid rgb(var(--color-base-string) 0.2);
display: none;
}

.el-opened {
display: block;

// font-weight: bold;
}

.v_el:hover {
background: rgba(var(--color-base-string), 0.05);
background: rgb(var(--color-base-string) 0.05);

.v_el:hover {
background: transparentize(#fff, 0.5);
Expand Down Expand Up @@ -1051,9 +1055,9 @@ table {
.v_el_level {
@include border-radius(6px);

background: rgba(var(--color-base-string), 0.1);
background: rgb(var(--color-base-string) 0.1);
padding: 0.75em 0 0.5em 0.8em;
margin: 0 0 1em 0;
margin: 0 0 1em;

.icon-caret {
font-size: 1.25em;
Expand All @@ -1062,7 +1066,7 @@ table {

.list-group > .v_el_level {
background: initial;
padding: 0.35em 0 0.15em 0;
padding: 0.35em 0 0.15em;
margin: 0 0 0 1.75em;
border-radius: 0;

Expand All @@ -1088,7 +1092,7 @@ table {
}

.v_heading {
margin: 0 0 1em 0;
margin: 0 0 1em;

.v_el_decorated {
flex-grow: 5;
Expand Down Expand Up @@ -1174,7 +1178,7 @@ table {

.metric_progress_bar {
background: $color_neutral_soft;
margin: 14px 0 0 0;
margin: 14px 0 0;
width: 100%;
height: 8px;
border-radius: 8px;
Expand Down Expand Up @@ -1208,7 +1212,7 @@ a.f_soft,
.g_popup {
position: absolute;
background: #f0f0f0;
box-shadow: 0 0 26px 0 rgba(0, 0, 0, 0.24);
box-shadow: 0 0 26px 0 rgb(0 0 0 / 24%);
border-radius: 6px;
padding: 1.5em;
width: 25vw;
Expand All @@ -1234,7 +1238,7 @@ a.f_soft,
}

a:hover {
background: rgba(var(--color-base-string), 0.1);
background: rgb(var(--color-base-string) 0.1);
}
}

Expand Down
5 changes: 1 addition & 4 deletions app/assets/stylesheets/budgets.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
@import "purecss/build/pure-nr";
@import "purecss/build/grids-responsive";
@import "@fortawesome/fontawesome-free/css/all.css";

@import url("https://fonts.googleapis.com/css?family=Work+Sans:200,400,700,600|Source+Sans+Pro:200,400,700,600");

@import "https://fonts.googleapis.com/css?family=Work+Sans:200,400,700,600|Source+Sans+Pro:200,400,700,600";
@import "modules/css-conf";
@import "modules/populities";
@import "modules/mixins";
Expand All @@ -19,7 +17,6 @@
@import "modules/comp-tipsy";
@import "modules/comp-flash_messages";
@import "modules/defaults";

@import "modules/comp-metric_boxes";
@import "modules/comp-indicator_widget";
@import "modules/comp-graph-dc";
Expand Down
7 changes: 2 additions & 5 deletions app/assets/stylesheets/cms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
@import "purecss/build/pure-nr";
@import "purecss/build/grids-responsive";
@import "@fortawesome/fontawesome-free/css/all.css";

@import url("https://fonts.googleapis.com/css?family=Work+Sans:200,400,700,600|Source+Sans+Pro:200,400,700,600");

@import "https://fonts.googleapis.com/css?family=Work+Sans:200,400,700,600|Source+Sans+Pro:200,400,700,600";
@import "modules/css-conf";
@import "modules/populities";
@import "modules/mixins";
Expand All @@ -15,7 +13,6 @@
@import "modules/comp-social_buttons";
@import "modules/comp-tables";
@import "modules/defaults";

@import "modules/comp-text_content";

.home-cms {
Expand All @@ -25,7 +22,7 @@
}

.header {
margin: 1em 0 3em 0;
margin: 1em 0 3em;

@include min-screen(768) {
width: 75%;
Expand Down
Loading