From 2b90b725fd496e00e759e867029d1a96b19a8196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sat, 17 Aug 2019 22:49:34 +0200 Subject: [PATCH] add icons for publik studio / cards management (#35089) --- gadjo/static/css/_portal.scss | 2 - gadjo/static/css/gadjo.scss | 20 +++++++- icons/cards.svg | 1 + icons/data.svg | 5 ++ icons/old-set/studio.svg | 88 +++++++++++++++++++++++++++++++++++ 5 files changed, 113 insertions(+), 3 deletions(-) create mode 100644 icons/cards.svg create mode 100644 icons/data.svg create mode 100644 icons/old-set/studio.svg diff --git a/gadjo/static/css/_portal.scss b/gadjo/static/css/_portal.scss index 60ab53e..49ee01e 100644 --- a/gadjo/static/css/_portal.scss +++ b/gadjo/static/css/_portal.scss @@ -1,7 +1,5 @@ @charset "UTF-8"; -$cell-border-radius: 3px; - div.cell.shown-because-admin { opacity: 0.5; background-image: repeating-linear-gradient(-45deg, #eee 0px, #eee 14px, transparent 15px, transparent 30px); diff --git a/gadjo/static/css/gadjo.scss b/gadjo/static/css/gadjo.scss index 7570fca..56df8ad 100644 --- a/gadjo/static/css/gadjo.scss +++ b/gadjo/static/css/gadjo.scss @@ -13,6 +13,8 @@ $sidepage-width: 210px; $header-height: 60px; $sidepage-border-width: 4px; +$cell-border-radius: 3px; + // blue $primary-color: #386ede; $secondary-color: #00d6eb; @@ -861,6 +863,12 @@ body.sidepage-expanded #sidepage span#applabel::before { a { @include vendor-prefix('transition', 'all 200ms ease'); } + &.sub { + margin-left: 1rem; + @media screen and (max-width: $mobile-limit) { + display: none; + } + } } li a { border: none; @@ -969,7 +977,7 @@ div.old-ie-warning p { $string-color: str-slice($primary-color + '', 2); -$appicons: add, announces, book, calendar, categories, clock, counter, facturier, forms, gis, grid, home, mail, management, organizational-units, passerelle, password, phone, portal, portal-agent, porte-doc, roles, security, services, settings, statistics, submission, system, texts, theme, users, workflows; +$appicons: add, announces, book, calendar, cards, categories, clock, counter, data, facturier, forms, gis, grid, home, mail, management, organizational-units, passerelle, password, phone, portal, portal-agent, porte-doc, roles, security, services, settings, statistics, studio, submission, system, texts, theme, users, workflows; @each $appicon in $appicons { ul#sidepage-menu li a.icon-#{$appicon} { background-image: url(icons/#{$appicon}.small.#{$string-color}.png); } @@ -1080,6 +1088,16 @@ $appicons: add, announces, book, calendar, categories, clock, counter, facturier top: 100%; } } + &.highlight { + background: linear-gradient(to right, $primary-color 30%, $secondary-color 100%); + border-radius: $cell-border-radius; + padding: 1rem; + padding-bottom: 5px; + margin-bottom: 1rem; + h2 { + color: white; + } + } } div.section { diff --git a/icons/cards.svg b/icons/cards.svg new file mode 100644 index 0000000..9d09372 --- /dev/null +++ b/icons/cards.svg @@ -0,0 +1 @@ +Pictos_v3_EXPORT \ No newline at end of file diff --git a/icons/data.svg b/icons/data.svg new file mode 100644 index 0000000..f99f398 --- /dev/null +++ b/icons/data.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/icons/old-set/studio.svg b/icons/old-set/studio.svg new file mode 100644 index 0000000..a71dc5f --- /dev/null +++ b/icons/old-set/studio.svg @@ -0,0 +1,88 @@ + + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + Gnome Symbolic Icon Theme + + + + + + + +