Skip to content

Commit

Permalink
Introduce system-status css
Browse files Browse the repository at this point in the history
  • Loading branch information
widoz committed Apr 6, 2018
1 parent 6f606c8 commit 1be9318
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 1 deletion.
1 change: 1 addition & 0 deletions resources/scss/system-status.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import 'system-status/views/table';
13 changes: 13 additions & 0 deletions resources/scss/system-status/_settings.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// Colors
//
$color__black: #000;
$color__gray: lighten($color__black, 50%);
$color__white: #fff;

$color__orange: #ffa500;
$color__red: #ff544b;

// Inpsyde
$color__inpsyde: #8fb900;
$color__inpsyde--dark: darken($color__inpsyde, 20%);
60 changes: 60 additions & 0 deletions resources/scss/system-status/views/_table.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
@import '../settings';

.systemstatus--table {
margin-bottom: 1em;

h2 {
font-size: .9rem;
margin: 0;
}

tr:nth-child( 2n ) {
th,
td {
background: darken($color__white, 2%);
}
}

th {
padding: 9px;
}

td, th {
font-size: .9rem;
font-weight: normal;

&:first-child {
width: 33%;
}

mark {
background: transparent none;
}

mark.yes {
color: $color__inpsyde;
}

mark.no {
color: $color__gray;
}

mark.error, .red {
color: $color__red;
}

ul {
margin: 0;
}
}

.systemstatus {

// Item
&__item-short-description {
color: $color__gray;
display: block;
font-size: .75rem;
}
}
}
2 changes: 1 addition & 1 deletion src/SystemStatus/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function register( Container $container ) {
public function boot( Container $container ) {

( new \Inpsyde\SystemStatus\Assets\Styles(
$container['translationmanager.plugin']->url( '/vendor/inpsyde/' ), '' )
$container['translationmanager.plugin']->url( '/assets/css/' ), '' )
)->init();
}
}

0 comments on commit 1be9318

Please sign in to comment.