Skip to content

Commit

Permalink
Split backend and frontend styles
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohutai committed Feb 20, 2018
1 parent 6182bf7 commit 12da332
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 55 deletions.
4 changes: 2 additions & 2 deletions src/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,11 @@ protected function registerAssets()
}

$assets[] = StyleSheet::create()
->setFileName('extensions/vendor/twokings/is-useful/extension.css')
->setFileName('extensions/vendor/twokings/is-useful/backend.css')
->setLate(true)
->setZone(Zone::BACKEND)
;

return $assets;
}

Expand Down
52 changes: 52 additions & 0 deletions web/backend.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/* Backend helper styles */

.is-useful-navbar {
margin-bottom: 2rem;
}
.is-useful-navbar ul {
width: 100%;
}

.is-useful-navbar ul > li{
display: inline-block;
}


.is-useful-navbar ul li:last-child{
float: right;
}


.is-useful-ip,
.is-useful-datetime {

}

.is-useful-message .well{
margin-bottom: 0;
}

.is-useful-actions .btn {
margin-bottom: .5rem;
}

.is-useful-quick-results {
margin-bottom: 2rem;
}

.is-useful-quick-results .well{
display: inline-block;
width: 33%;
max-width: 130px;
font-size: 1.5em;
font-weight: bold;
text-align: center;
}

.is-useful-block-no.well {
background: #f2dede;
}

.is-useful-block-yes.well {
background: #dff0d8;
}
53 changes: 0 additions & 53 deletions web/extension.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,56 +24,3 @@
width: 1px;
white-space: nowrap;
}

/* Backend helper styles */

.is-useful-navbar {
margin-bottom: 2rem;
}
.is-useful-navbar ul {
width: 100%;
}

.is-useful-navbar ul > li{
display: inline-block;
}


.is-useful-navbar ul li:last-child{
float: right;
}


.is-useful-ip,
.is-useful-datetime {

}

.is-useful-message .well{
margin-bottom: 0;
}

.is-useful-actions .btn {
margin-bottom: .5rem;
}

.is-useful-quick-results {
margin-bottom: 2rem;
}

.is-useful-quick-results .well{
display: inline-block;
width: 33%;
max-width: 130px;
font-size: 1.5em;
font-weight: bold;
text-align: center;
}

.is-useful-block-no.well {
background: #f2dede;
}

.is-useful-block-yes.well {
background: #dff0d8;
}

0 comments on commit 12da332

Please sign in to comment.