Skip to content

Commit

Permalink
Create an editorconfig
Browse files Browse the repository at this point in the history
- format all CSS files accordingly
  • Loading branch information
tudoramariei committed Jul 4, 2024
1 parent 7d33a4d commit 5a17aa7
Show file tree
Hide file tree
Showing 8 changed files with 479 additions and 471 deletions.
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[*]
tab_width = 4
indent_style = space

[{*.html,*.css,*.sh,*.yml}]
indent_size = 2
161 changes: 81 additions & 80 deletions backend/static_extras/css/admin/change_form.css
Original file line number Diff line number Diff line change
@@ -1,233 +1,234 @@
form.change-form {
flex: 1;
flex: 1;
}

.change-form .module.indent {
padding-top: 25px;
position: relative;
padding-top: 25px;
position: relative;
}

.required label, label.required {
font-weight: normal;
color: #9e9e9e;
font-weight: normal;
color: #9e9e9e;
}

fieldset.module.aligned {
margin-bottom: 0;
margin-bottom: 0;
}

.input-field label + div {
padding-top: 40px;
padding-top: 40px;
}

fieldset.aligned {
border: none;
border: none;
}

.selector-available select,
.selector-chosen select {
display: block;
display: block;
}

.select-wrapper .selector-available h2,
.select-wrapper .selector-chosen h2 {
background: #79aec8;
border: none;
color: white;
background: #79aec8;
border: none;
color: white;
}

.help.help-tooltip.help-icon {

}

.select-dropdown.dropdown-trigger {
display: none;
display: none;
}

form .related-widget-wrapper .select-dropdown.dropdown-trigger,
form .related-widget-wrapper .caret {
display: none;
display: none;
}

.selector .help-icon {
background: url(../img/icon-unknown-alt.svg) 0 0 no-repeat;
}

div.selector option {
height: 25px;
padding: 4px;
height: 25px;
padding: 4px;
}

div.selector select {
padding: 0;
border: 1px solid #ccc;
padding: 0;
border: 1px solid #ccc;
}

.selector-available input[type=text] {
height: 30px;
height: 30px;
}

div.submit-row {
border: none;
border: none;
}

td.original {
display: flex;
display: flex;
}

.inline-group,
.inline-group .tabular td.original p,
.inline-group .inline-related {
overflow: visible;
overflow: visible;
}

.inline-group .tabular tr.form-row td {
padding-bottom: 18px;
padding-bottom: 18px;
}

.inline-group .tabular tr.form-row td.delete {
vertical-align: bottom;
vertical-align: bottom;
}

.inline-group .tabular td .datetimeshortcuts{
position: absolute;
bottom: 0;
left: 2px;
.inline-group .tabular td .datetimeshortcuts {
position: absolute;
bottom: 0;
left: 2px;
}

.inline-group .tabular td .timezonewarning {
position: absolute;
font-size: 9px;
top: 0;
position: absolute;
font-size: 9px;
top: 0;
}

.related-wrapper-row {
position: relative;
position: relative;
}

a.add-related {
left: 10px;
left: 10px;
}

.delete-inline-row {
cursor: pointer
cursor: pointer
}

.inline-deletelink {
display: none;
display: none;
}

.inline-group .tabular tr.add-row td a.add-inline-link,
.add-inline-link {
background-image: none;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
margin-top: 10px;
background-image: none;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
margin-top: 10px;
}

.form-row {
border-bottom: none;
border-bottom: none;
}

.form-row .delete {
text-align: center;
vertical-align: middle;
text-align: center;
vertical-align: middle;
}

.form-row td {
position: relative;
position: relative;
}

.form-row td .url {
top: 38px;
top: 38px;
}


form .aligned div.help,
form .aligned input + div.help {
margin-left: -10px;
margin-left: -10px;
}

form .aligned p.help,
form .aligned div.help {
margin-top: 10px;
margin-top: 10px;
}

.aligned label,
.inline-group .aligned label {
width: 100%;
width: 100%;
}

.inline-group .inline-related .aligned label.checkbox-block {
width: 25px;
width: 25px;
}

.checkbox-row {
display: flex;
display: flex;
}

.aligned label + div.readonly {
padding-top: 0px !important;
padding-top: 0px !important;
}

.checkbox-label label {
color: #666;
font-size: 14px;
margin-top: -6px;
cursor: pointer;
width: 160px;
color: #666;
font-size: 14px;
margin-top: -6px;
cursor: pointer;
width: 160px;
}

label.checkbox-block {
width: 25px;
height: 25px;
margin-top: -7px;
cursor: pointer;
width: 25px;
height: 25px;
margin-top: -7px;
cursor: pointer;
}

label.checkbox-block span {
pointer-events: none;
pointer-events: none;
}

tr {
border: 0;
border: 0;
}

.form-row .input-field textarea.materialize-textarea {
width: 100%;
max-width: none;
width: 100%;
max-width: none;
}

.card-grid {
grid-gap: 5px;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
grid-template-rows: auto [last-line];
grid-gap: 5px;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
grid-template-rows: auto [last-line];
}

.stacked-inline-close {
text-align: right;
cursor: pointer;
float: right;
margin: 0 1% 1% 0;
text-align: right;
cursor: pointer;
float: right;
margin: 0 1% 1% 0;
}

.inline-related {
overflow: hidden;
overflow: hidden;
}

.inline-related .input-field p {
margin: 0;
margin: 0;
}

div.url {
position: absolute;
top: 12px;
right: 0;
background: white;
position: absolute;
top: 12px;
right: 0;
background: white;
}

.inline-related.has_original .delete {
display: none;
display: none;
}
16 changes: 8 additions & 8 deletions backend/static_extras/css/admin/style.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
.lang-switch-wrapper {
display: inline-block;
display: inline-block;
}

.lang-switch-wrapper .select-dropdown, .lang-switch-wrapper .caret {
display:none !important;
display: none !important;
}

select.select {
display: block;
border: none;
border-radius: 4px;
height: 2rem;
font-weight: 700;
margin: 10px;
display: block;
border: none;
border-radius: 4px;
height: 2rem;
font-weight: 700;
margin: 10px;
}
Loading

0 comments on commit 5a17aa7

Please sign in to comment.