forked from wagtail/wagtail
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modeladmin scss cleanups (wagtail#2481)
* Hyphenate classname: result_list => result-list * Fixed gulp config for compiling scss Was compiling to modeladmin/index.css instead of wagtailmodeladmin.css which caused the styles to not load * Nest scss rules Makes the scss easier to read I think * Let choose_parent_page.scss use an id selector * Converted ids to classes * scss style tweaks * Allow choose_parent_page.scss to use id selector We should definitely solve this. But need to get Drone working right now
- Loading branch information
Showing
8 changed files
with
188 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
147 changes: 0 additions & 147 deletions
147
wagtail/contrib/modeladmin/static_src/modeladmin/scss/index.scss
This file was deleted.
Oops, something went wrong.
5 changes: 3 additions & 2 deletions
5
...c/modeladmin/scss/choose_parent_page.scss → ...ilmodeladmin/scss/choose_parent_page.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#id_parent_page li { | ||
margin: 15px 0; | ||
margin: 15px 0; | ||
} | ||
|
||
#id_parent_page li label { | ||
float: none; | ||
float: none; | ||
} |
173 changes: 173 additions & 0 deletions
173
wagtail/contrib/modeladmin/static_src/wagtailmodeladmin/scss/index.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,173 @@ | ||
.content header { | ||
margin-bottom: 0; | ||
} | ||
|
||
|
||
.result-list { | ||
padding: 0 15px; | ||
|
||
table { | ||
margin-bottom: 0; | ||
} | ||
|
||
body th { | ||
background-color: transparent; | ||
text-align: left; | ||
padding: 1.2em 1em; | ||
} | ||
|
||
tbody tr:hover ul.actions { | ||
visibility: visible; | ||
} | ||
|
||
tbody td, | ||
tbody th { | ||
vertical-align: top; | ||
} | ||
} | ||
|
||
|
||
.changelist-filter { | ||
padding: 0 15px; | ||
|
||
h2 { | ||
background-color: #fafafa; | ||
font-size: 13px; | ||
line-height: 31px; | ||
margin-top: 0; | ||
padding-left: 8px; | ||
border-bottom: 1px solid #e6e6e6; | ||
} | ||
|
||
h3 { | ||
font-size: 12px; | ||
margin-bottom: 0; | ||
} | ||
|
||
ul { | ||
padding-left: 0; | ||
margin-bottom: 25px; | ||
} | ||
|
||
li { | ||
list-style-type: none; | ||
margin: 0 0 4px; | ||
padding-left: 0; | ||
} | ||
|
||
a { | ||
font-family: Open Sans,Arial,sans-serif; | ||
border-radius: 3px; | ||
width: auto; | ||
line-height: 1.2em; | ||
padding: 8px 12px; | ||
font-size: 0.9em; | ||
font-weight: normal; | ||
vertical-align: middle; | ||
display: block; | ||
background-color: #fff; | ||
border: 1px solid #43b1b0; | ||
color: #43b1b0; | ||
text-decoration: none; | ||
text-transform: uppercase; | ||
position: relative; | ||
overflow: hidden; | ||
outline: none; | ||
box-sizing: border-box; | ||
-webkit-font-smoothing: auto; | ||
-moz-appearance: none; | ||
-moz-box-sizing: border-box; | ||
|
||
&:hover { | ||
background-color: #358c8b; | ||
border-color: #358c8b; | ||
color: #fff; | ||
} | ||
} | ||
|
||
li.selected a { | ||
color: #fff !important; | ||
border-color: #43b1b0 !important; | ||
background-color: #43b1b0; | ||
} | ||
} | ||
|
||
|
||
.no-search-results { | ||
margin-top: 30px; | ||
|
||
h2 { | ||
padding-top: 0.3em; | ||
margin-bottom: 0.3em; | ||
} | ||
|
||
img { | ||
float: left; | ||
margin: 0 15px 15px 0; | ||
width: 50px; | ||
} | ||
} | ||
|
||
|
||
div.pagination { | ||
margin-top: 3em; | ||
border-top: 1px dashed #d9d9d9; | ||
padding: 2em 1em 0; | ||
|
||
ul { | ||
margin-top: -1.25em; | ||
} | ||
} | ||
|
||
|
||
p.no-results { | ||
margin: 30px 1em 0; | ||
} | ||
|
||
|
||
@media screen and (min-width: 50em) { | ||
.changelist-filter { | ||
float: right; | ||
padding: 0 1.5%; | ||
} | ||
|
||
.result-list { | ||
padding: 0 1.5% 0 0; | ||
} | ||
|
||
.result-list tbody th:first-child { | ||
padding-left: 50px; | ||
} | ||
|
||
.result-list.col12 tbody td:last-child { | ||
padding-right: 50px; | ||
} | ||
|
||
div.pagination { | ||
padding-left: 50px; | ||
padding-right: 50px; | ||
} | ||
|
||
div.pagination.col9 { | ||
width: 73.5%; | ||
} | ||
|
||
p.no-results { | ||
margin: 30px 50px 0; | ||
} | ||
} | ||
|
||
|
||
@media screen and (min-width: 1200px) { | ||
.result-list.col9 { | ||
width: 79%; | ||
} | ||
|
||
.changelist-filter { | ||
width: 21%; | ||
} | ||
|
||
div.pagination.col9 { | ||
width: 77.5%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.