Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
fix css to not impact other pages, and make interface easier to use
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreJunod committed May 29, 2024
1 parent 368cc33 commit 06998aa
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions geocity/apps/core/static/css/admin/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,37 @@
overflow-x: auto;
}

/*Reduce select2 field width so that CRUD button remain visible*/
tr .select2 {
width: 70% !important;
/* tweak admin-sortable2 for jazzmin compatibility with tabular inlines */
/* Used in "1.4 Formulaires", tab "Champs" */

fieldset.module.sortable tbody tr.form-row {
padding: 20px 0px 10px 0px; /* top right bottom left*/
border-bottom: 1px dashed #c7c7c7;
}

/* tweak admin-sortable2 for jazzmin compatibility with tabular inlines */
fieldset.module.sortable tbody .original {
width: 50px;
text-align: center;
}

tbody .original {
width: 100px;;
fieldset.module.sortable td.original p {
width: 45px !important;
}

tbody .field-field {
width: 500px;
fieldset.module.sortable tbody .field-field {
width: 650px;
}

tbody .delete {
width: 50px;
text-align: right;
fieldset.module.sortable tbody .delete {
width: 50px; /* width of div. (thead .original - tbody.original - tbody .field-field)*/
position: relative; /* used to move 50 px left */
left: 75px;
}

thead .original {
width: 80%;
fieldset.module.sortable thead .original {
width: 750px;
}

thead .column-field {
fieldset.module.sortable thead .column-field {
display: none;
}

0 comments on commit 06998aa

Please sign in to comment.