Skip to content

Commit

Permalink
Merge pull request #482 from loic425/features/new-admin-panel
Browse files Browse the repository at this point in the history
New fresh admin panel
  • Loading branch information
loic425 committed Nov 7, 2019
2 parents f01359b + 9ee3e46 commit 71b632d
Show file tree
Hide file tree
Showing 41 changed files with 1,575 additions and 749 deletions.
38 changes: 38 additions & 0 deletions assets/backend/img/admin-logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
230 changes: 230 additions & 0 deletions assets/backend/sass/_ui.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,230 @@
$app-brand-color: #1abb9c;
$segment-spacing: 1.8em;
$segment-title-spacing: 1.2em 1.8em;
$accordion-title-spacing: 1.2em 1.8em;

// ----------------------------------
// ------------ Globals
// ----------------------------------

.ui.inverted.menu {
background: #1d212b;
}

body.pushable .pusher {
background: #f9f9f9;
}

#wrapper.full.height {
padding: 64px 12px 0 12px;
}

a {
color: $app-brand-color;
&:hover { color: $app-brand-color; }
}

// ----------------------------------
// ------------ Buttons
// ----------------------------------

.ui.button {
font-weight: 400;
}

.ui.primary.button {
background-color: $app-brand-color;
&:hover, &:focus { background-color: #279c7f; }
}

.ui.labeled.icon.button {
padding-left: 2.8em !important;
}

.ui.labeled.icon.button>.icon,
.ui.labeled.icon.buttons>.button>.icon {
width: 2.8em !important;
background: none !important;
padding-left: .2em;
}

// ----------------------------------
// ------------ Forms
// ----------------------------------

.ui.form .field > label {
margin: 0 0 .5rem 0;
color: rgba(0,0,0,.8);
font-weight: 400;
}

.ui.form .field > input:focus,
.ui.form .field > textarea:focus {
border-color: rgba($app-brand-color, .4);
}

// ----------------------------------
// ------------ Sidebar menu
// ----------------------------------

#sidebar.ui.sidebar.vertical.menu {
> .item:first-child {
margin-bottom: 10px;
}

> .item:not(:first-child) {
margin-right: 10px;
}

.item > .header {
text-transform: uppercase;
font-size: 11px;
margin-bottom: 16px;
}

.item > i.icon {
float: none !important;
margin: 2px 10px 2px 0 !important;
opacity: .5;
}

.item::before {
display: none;
}

.item.active {
font-weight: inherit !important;
background: $app-brand-color !important;
border-radius: 0 99px 99px 0 !important;
}
}

// ----------------------------------
// ------------ Header
// ----------------------------------

.ui.header {
.content {
padding-left: 1.3rem !important;
}

.content .sub.header {
font-size: 1rem;
color: #9a9a9a;
padding-top: 3px;
}

.circular.icon {
width: 2.5em !important;
height: 2.5em !important;
font-size: 1em;
color: $app-brand-color;
background: rgba($app-brand-color, .1);
box-shadow: none;
}
}

// ----------------------------------
// ------------ Breadcrumb
// ----------------------------------

.ui.breadcrumb {
.active {
color: #9a9a9a;
font-weight: 400 !important;
}

a {
color: #9a9a9a;
&:hover { color: $app-brand-color; }
}

.divider {
opacity: .4;
}
}

// ----------------------------------
// ------------ Segment
// ----------------------------------

.ui.segment,
.ui.attached.segment {
box-shadow: 0 2px 4px 0 rgba(34,36,38,.03);
border: 1px solid rgba(34,36,38,.1);
padding: $segment-spacing;
width: 100%;
}

.ui.attached.segment {
margin-left: 0;
margin-right: 0;
}

.ui.attached.header {
padding: $segment-title-spacing;
margin: 0;
box-shadow: 0 2px 4px 0 rgba(34,36,38,.03);
border: 1px solid rgba(34,36,38,.1);
border-bottom: 1px solid #eaeaea;
font-size: inherit;
}

.segment.spaceless {
padding: 0 !important;
}

// ----------------------------------
// ------------ Accordion
// ----------------------------------

.ui.styled.accordion {
box-shadow: 0 2px 4px 0 rgba(34,36,38,.03);
border: 1px solid rgba(34,36,38,.1);

.title {
padding: $accordion-title-spacing;
border-top: none;
}

.content {
padding: $segment-spacing;
border-top: 1px solid #eaeaea;
}
}

// ----------------------------------
// ------------ Pagination / Menu
// ----------------------------------

.ui.menu {
box-shadow: 0 2px 4px 0 rgba(34,36,38,.03);
border: 1px solid rgba(34,36,38,.1);
}

// ----------------------------------
// ------------ Table
// ----------------------------------

.sylius-grid-table-wrapper {
.ui.sortable.table {
thead th {
padding-top: 20px;
padding-bottom: 20px;

&.sorted {
background: inherit;
color: $app-brand-color;
}
}
}
}

// ----------------------------------
// ------------ Toggle
// ----------------------------------

.ui.toggle.checkbox input:checked~.box:before, .ui.toggle.checkbox input:checked~label:before,
.ui.toggle.checkbox input:focus:checked~.box:before, .ui.toggle.checkbox input:focus:checked~label:before {
background-color: $app-brand-color !important;
}
1 change: 1 addition & 0 deletions assets/backend/sass/main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import "ui";
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@
"sylius/resource-bundle": "^1.4",
"sylius/review-bundle": "^1.4",
"sylius/taxonomy-bundle": "^1.4",
"sylius/ui-bundle": "^1.4",
"sylius/ui-bundle": "^1.6",
"sylius/user-bundle": "^1.4",
"symfony/dotenv": "^4.2",
"symfony/flex": "^1.2",
"symfony/monolog-bundle": "^3.3",
"symfony/flex": "^1.4",
"symfony/monolog-bundle": "^3.4",
"symfony/swiftmailer-bundle": "^3.0",
"symfony/twig-bundle": "^4.1",
"symfony/twig-bundle": "^4.2",
"twig/extensions": "^1.5",
"twig/twig": "^2.7",
"vich/uploader-bundle": "^1.8",
Expand Down Expand Up @@ -83,9 +83,9 @@
"phpstan/phpstan-webmozart-assert": "^0.10",
"phpunit/phpunit": "^7.4",
"se/selenium-server-standalone": " ^2.52",
"symfony/var-dumper": "^4.1",
"symfony/web-profiler-bundle": "^4.1",
"symfony/web-server-bundle": "^4.1"
"symfony/var-dumper": "^4.3",
"symfony/web-profiler-bundle": "^4.2",
"symfony/web-server-bundle": "^4.3"
},
"conflict": {
"symfony/symfony": "*"
Expand Down

0 comments on commit 71b632d

Please sign in to comment.