From ae85645c5ebfccbb3145f128e2202e5f5e492880 Mon Sep 17 00:00:00 2001 From: codecalm Date: Sat, 21 Mar 2020 12:20:38 +0100 Subject: editor "active" class feature --- src/editor.html | 3 +++ src/style.scss | 4 ++++ 2 files changed, 7 insertions(+) (limited to 'src') diff --git a/src/editor.html b/src/editor.html index 6794a49..3a928f2 100644 --- a/src/editor.html +++ b/src/editor.html @@ -113,6 +113,9 @@ layout: default .on('click', '.js-icon', function (e) { var icon = $(this).attr('data-icon'); + $('.js-icon').removeClass('active'); + $(this).addClass('active'); + $('.js-icon-name').html(icon); localStorage.setItem('icon', icon); diff --git a/src/style.scss b/src/style.scss index 2ffbb47..49a1b2f 100644 --- a/src/style.scss +++ b/src/style.scss @@ -179,6 +179,10 @@ a { justify-content: center; border: 1px solid transparent; + &.active { + background: #f0f0f0; + } + @at-root a#{&}:hover { opacity: .75; } -- cgit v1.2.1 From fc65cd9348392ca62619be9d82d294a1c711130f Mon Sep 17 00:00:00 2001 From: codecalm Date: Sat, 21 Mar 2020 14:53:32 +0100 Subject: 14 new icons: `ad`, `building-arch`, `building-bridge-2`, `building-bridge`, `building-church`, `building-hospital`, `building-store`, `building`, `device-speaker`, `home-2`, `id`, `layout-bottombar`, `live-photo`, `template` Fixed icons: `layout-2`, `layout-columns`, `layout-navbar`, `layout-rows`, `layout-sidebar-right`, `layout-sidebar`, `layout`, `registered` Renamed icons: `ajdustments` renamed to `adjustments` --- src/_icons/ad.svg | 9 +++++++++ src/_icons/adjustments.svg | 14 ++++++++++++++ src/_icons/ajdustments.svg | 14 -------------- src/_icons/building-arch.svg | 7 +++++++ src/_icons/building-bridge-2.svg | 5 +++++ src/_icons/building-bridge.svg | 10 ++++++++++ src/_icons/building-church.svg | 9 +++++++++ src/_icons/building-hospital.svg | 9 +++++++++ src/_icons/building-store.svg | 9 +++++++++ src/_icons/building.svg | 12 ++++++++++++ src/_icons/device-speaker.svg | 7 +++++++ src/_icons/home-2.svg | 8 ++++++++ src/_icons/id.svg | 10 ++++++++++ src/_icons/layout-2.svg | 8 ++++---- src/_icons/layout-bottombar.svg | 6 ++++++ src/_icons/layout-columns.svg | 4 ++-- src/_icons/layout-navbar.svg | 4 ++-- src/_icons/layout-rows.svg | 4 ++-- src/_icons/layout-sidebar-right.svg | 4 ++-- src/_icons/layout-sidebar.svg | 4 ++-- src/_icons/layout.svg | 6 +++--- src/_icons/live-photo.svg | 7 +++++++ src/_icons/registered.svg | 2 +- src/_icons/template.svg | 10 ++++++++++ 24 files changed, 150 insertions(+), 32 deletions(-) create mode 100644 src/_icons/ad.svg create mode 100644 src/_icons/adjustments.svg delete mode 100644 src/_icons/ajdustments.svg create mode 100644 src/_icons/building-arch.svg create mode 100644 src/_icons/building-bridge-2.svg create mode 100644 src/_icons/building-bridge.svg create mode 100644 src/_icons/building-church.svg create mode 100644 src/_icons/building-hospital.svg create mode 100644 src/_icons/building-store.svg create mode 100644 src/_icons/building.svg create mode 100644 src/_icons/device-speaker.svg create mode 100644 src/_icons/home-2.svg create mode 100644 src/_icons/id.svg create mode 100644 src/_icons/layout-bottombar.svg create mode 100644 src/_icons/live-photo.svg create mode 100644 src/_icons/template.svg (limited to 'src') diff --git a/src/_icons/ad.svg b/src/_icons/ad.svg new file mode 100644 index 0000000..576b61d --- /dev/null +++ b/src/_icons/ad.svg @@ -0,0 +1,9 @@ +--- +tags: [] +--- + + + + + + diff --git a/src/_icons/adjustments.svg b/src/_icons/adjustments.svg new file mode 100644 index 0000000..fd9d200 --- /dev/null +++ b/src/_icons/adjustments.svg @@ -0,0 +1,14 @@ +--- +tags: [equalizer, sliders, controls, settings, filter] +--- + + + + + + + + + + + diff --git a/src/_icons/ajdustments.svg b/src/_icons/ajdustments.svg deleted file mode 100644 index fd9d200..0000000 --- a/src/_icons/ajdustments.svg +++ /dev/null @@ -1,14 +0,0 @@ ---- -tags: [equalizer, sliders, controls, settings, filter] ---- - - - - - - - - - - - diff --git a/src/_icons/building-arch.svg b/src/_icons/building-arch.svg new file mode 100644 index 0000000..298eb6c --- /dev/null +++ b/src/_icons/building-arch.svg @@ -0,0 +1,7 @@ +--- +--- + + + + + diff --git a/src/_icons/building-bridge-2.svg b/src/_icons/building-bridge-2.svg new file mode 100644 index 0000000..2ed3b4d --- /dev/null +++ b/src/_icons/building-bridge-2.svg @@ -0,0 +1,5 @@ +--- +--- + + + diff --git a/src/_icons/building-bridge.svg b/src/_icons/building-bridge.svg new file mode 100644 index 0000000..88cf6b6 --- /dev/null +++ b/src/_icons/building-bridge.svg @@ -0,0 +1,10 @@ +--- +--- + + + + + + + + diff --git a/src/_icons/building-church.svg b/src/_icons/building-church.svg new file mode 100644 index 0000000..5a746f4 --- /dev/null +++ b/src/_icons/building-church.svg @@ -0,0 +1,9 @@ +--- +--- + + + + + + + diff --git a/src/_icons/building-hospital.svg b/src/_icons/building-hospital.svg new file mode 100644 index 0000000..cf8ab60 --- /dev/null +++ b/src/_icons/building-hospital.svg @@ -0,0 +1,9 @@ +--- +--- + + + + + + + diff --git a/src/_icons/building-store.svg b/src/_icons/building-store.svg new file mode 100644 index 0000000..e088d1d --- /dev/null +++ b/src/_icons/building-store.svg @@ -0,0 +1,9 @@ +--- +--- + + + + + + + diff --git a/src/_icons/building.svg b/src/_icons/building.svg new file mode 100644 index 0000000..74602d4 --- /dev/null +++ b/src/_icons/building.svg @@ -0,0 +1,12 @@ +--- +--- + + + + + + + + + + diff --git a/src/_icons/device-speaker.svg b/src/_icons/device-speaker.svg new file mode 100644 index 0000000..3643b1e --- /dev/null +++ b/src/_icons/device-speaker.svg @@ -0,0 +1,7 @@ +--- +--- + + + + + diff --git a/src/_icons/home-2.svg b/src/_icons/home-2.svg new file mode 100644 index 0000000..86c9576 --- /dev/null +++ b/src/_icons/home-2.svg @@ -0,0 +1,8 @@ +--- +tags: [house, dashboard, living] +--- + + + + + diff --git a/src/_icons/id.svg b/src/_icons/id.svg new file mode 100644 index 0000000..f243557 --- /dev/null +++ b/src/_icons/id.svg @@ -0,0 +1,10 @@ +--- +tags: [] +--- + + + + + + + diff --git a/src/_icons/layout-2.svg b/src/_icons/layout-2.svg index 8582366..a97139c 100644 --- a/src/_icons/layout-2.svg +++ b/src/_icons/layout-2.svg @@ -2,8 +2,8 @@ tags: [grid, columns, masonry, collage] --- - - - - + + + + diff --git a/src/_icons/layout-bottombar.svg b/src/_icons/layout-bottombar.svg new file mode 100644 index 0000000..23ddd8f --- /dev/null +++ b/src/_icons/layout-bottombar.svg @@ -0,0 +1,6 @@ +--- +--- + + + + diff --git a/src/_icons/layout-columns.svg b/src/_icons/layout-columns.svg index 5914ea4..c98ef78 100644 --- a/src/_icons/layout-columns.svg +++ b/src/_icons/layout-columns.svg @@ -2,6 +2,6 @@ tags: [grid, column, rows] --- - - + + diff --git a/src/_icons/layout-navbar.svg b/src/_icons/layout-navbar.svg index 983012f..54d5f9b 100644 --- a/src/_icons/layout-navbar.svg +++ b/src/_icons/layout-navbar.svg @@ -2,6 +2,6 @@ tags: [grid, row, header] --- - - + + diff --git a/src/_icons/layout-rows.svg b/src/_icons/layout-rows.svg index f900f83..7ad1570 100644 --- a/src/_icons/layout-rows.svg +++ b/src/_icons/layout-rows.svg @@ -2,6 +2,6 @@ tags: [grid, masonry, collage] --- - - + + diff --git a/src/_icons/layout-sidebar-right.svg b/src/_icons/layout-sidebar-right.svg index fb372e9..499848d 100644 --- a/src/_icons/layout-sidebar-right.svg +++ b/src/_icons/layout-sidebar-right.svg @@ -2,6 +2,6 @@ tags: [grid, aside, column, columns] --- - - + + diff --git a/src/_icons/layout-sidebar.svg b/src/_icons/layout-sidebar.svg index dcee265..8d989f6 100644 --- a/src/_icons/layout-sidebar.svg +++ b/src/_icons/layout-sidebar.svg @@ -2,6 +2,6 @@ tags: [grid, aside, column, columns] --- - - + + diff --git a/src/_icons/layout.svg b/src/_icons/layout.svg index 4606baa..ba97da4 100644 --- a/src/_icons/layout.svg +++ b/src/_icons/layout.svg @@ -2,7 +2,7 @@ tags: [grid, columns, masonry, collage] --- - - - + + + diff --git a/src/_icons/live-photo.svg b/src/_icons/live-photo.svg new file mode 100644 index 0000000..bc04fed --- /dev/null +++ b/src/_icons/live-photo.svg @@ -0,0 +1,7 @@ +--- +--- + + + + + diff --git a/src/_icons/registered.svg b/src/_icons/registered.svg index a6fca27..b660199 100644 --- a/src/_icons/registered.svg +++ b/src/_icons/registered.svg @@ -3,5 +3,5 @@ tags: [copyright] --- - + diff --git a/src/_icons/template.svg b/src/_icons/template.svg new file mode 100644 index 0000000..dbd6a91 --- /dev/null +++ b/src/_icons/template.svg @@ -0,0 +1,10 @@ +--- +tags: [grid, columns, masonry, collage] +--- + + + + + + + -- cgit v1.2.1 From f6eac139ef0faa372a67b7f130c25770c79bdad6 Mon Sep 17 00:00:00 2001 From: codecalm Date: Sat, 21 Mar 2020 14:54:53 +0100 Subject: build new version --- src/_icons/ad.svg | 4 ++-- src/_icons/building-bridge-2.svg | 2 +- src/_icons/building-bridge.svg | 11 +++++------ src/_icons/device-speaker.svg | 2 +- src/_icons/live-photo.svg | 2 +- src/_icons/news.svg | 2 +- src/_icons/template.svg | 6 +++--- 7 files changed, 14 insertions(+), 15 deletions(-) (limited to 'src') diff --git a/src/_icons/ad.svg b/src/_icons/ad.svg index 576b61d..b2166f2 100644 --- a/src/_icons/ad.svg +++ b/src/_icons/ad.svg @@ -4,6 +4,6 @@ tags: [] - - + + diff --git a/src/_icons/building-bridge-2.svg b/src/_icons/building-bridge-2.svg index 2ed3b4d..23b8af5 100644 --- a/src/_icons/building-bridge-2.svg +++ b/src/_icons/building-bridge-2.svg @@ -1,5 +1,5 @@ --- --- - + diff --git a/src/_icons/building-bridge.svg b/src/_icons/building-bridge.svg index 88cf6b6..67b047b 100644 --- a/src/_icons/building-bridge.svg +++ b/src/_icons/building-bridge.svg @@ -1,10 +1,9 @@ --- --- - - - - - - + + + + + diff --git a/src/_icons/device-speaker.svg b/src/_icons/device-speaker.svg index 3643b1e..56f12ad 100644 --- a/src/_icons/device-speaker.svg +++ b/src/_icons/device-speaker.svg @@ -3,5 +3,5 @@ - + diff --git a/src/_icons/live-photo.svg b/src/_icons/live-photo.svg index bc04fed..d79dd7d 100644 --- a/src/_icons/live-photo.svg +++ b/src/_icons/live-photo.svg @@ -3,5 +3,5 @@ - + diff --git a/src/_icons/news.svg b/src/_icons/news.svg index 077d7ad..5ccabad 100644 --- a/src/_icons/news.svg +++ b/src/_icons/news.svg @@ -2,7 +2,7 @@ tags: [newspaper, article] --- - + diff --git a/src/_icons/template.svg b/src/_icons/template.svg index dbd6a91..163f1c2 100644 --- a/src/_icons/template.svg +++ b/src/_icons/template.svg @@ -4,7 +4,7 @@ tags: [grid, columns, masonry, collage] - - - + + + -- cgit v1.2.1 From 0908f417fe8cf18f6f88463eced6926c0e9d99de Mon Sep 17 00:00:00 2001 From: codecalm Date: Sat, 21 Mar 2020 20:02:57 +0100 Subject: 16 new icons: `alarm`, `arrow-back`, `arrow-forward`, `artboard`, `award`, `bug`, `calendar-event`, `globe`, `help`, `mug`, `palette`, `pencil`, `record-mail`, `ruler`, `scissors`, `stack` Fixed icons: `directions`, `disabled`, `disc`, `edit`, `switch-vertical` --- src/_icons/alarm.svg | 9 +++++++++ src/_icons/arrow-back.svg | 6 ++++++ src/_icons/arrow-forward.svg | 6 ++++++ src/_icons/artboard.svg | 13 +++++++++++++ src/_icons/award.svg | 6 ++++++ src/_icons/bug.svg | 13 +++++++++++++ src/_icons/calendar-event.svg | 10 ++++++++++ src/_icons/directions.svg | 4 ++-- src/_icons/disabled.svg | 2 +- src/_icons/disc.svg | 4 +++- src/_icons/edit.svg | 1 + src/_icons/globe.svg | 8 ++++++++ src/_icons/help.svg | 7 +++++++ src/_icons/mug.svg | 6 ++++++ src/_icons/palette.svg | 8 ++++++++ src/_icons/pencil.svg | 6 ++++++ src/_icons/record-mail.svg | 7 +++++++ src/_icons/ruler.svg | 11 +++++++++++ src/_icons/scissors.svg | 8 ++++++++ src/_icons/stack.svg | 7 +++++++ src/_icons/switch-vertical.svg | 2 -- src/_includes/icon.html | 2 +- 22 files changed, 139 insertions(+), 7 deletions(-) create mode 100644 src/_icons/alarm.svg create mode 100644 src/_icons/arrow-back.svg create mode 100644 src/_icons/arrow-forward.svg create mode 100644 src/_icons/artboard.svg create mode 100644 src/_icons/award.svg create mode 100644 src/_icons/bug.svg create mode 100644 src/_icons/calendar-event.svg create mode 100644 src/_icons/globe.svg create mode 100644 src/_icons/help.svg create mode 100644 src/_icons/mug.svg create mode 100644 src/_icons/palette.svg create mode 100644 src/_icons/pencil.svg create mode 100644 src/_icons/record-mail.svg create mode 100644 src/_icons/ruler.svg create mode 100644 src/_icons/scissors.svg create mode 100644 src/_icons/stack.svg (limited to 'src') diff --git a/src/_icons/alarm.svg b/src/_icons/alarm.svg new file mode 100644 index 0000000..4b7996b --- /dev/null +++ b/src/_icons/alarm.svg @@ -0,0 +1,9 @@ +--- +tags: [time, watch, clock] +--- + + + + + + diff --git a/src/_icons/arrow-back.svg b/src/_icons/arrow-back.svg new file mode 100644 index 0000000..dab9f27 --- /dev/null +++ b/src/_icons/arrow-back.svg @@ -0,0 +1,6 @@ +--- +tags: [] +--- + + + diff --git a/src/_icons/arrow-forward.svg b/src/_icons/arrow-forward.svg new file mode 100644 index 0000000..34c5e1d --- /dev/null +++ b/src/_icons/arrow-forward.svg @@ -0,0 +1,6 @@ +--- +tags: [] +--- + + + diff --git a/src/_icons/artboard.svg b/src/_icons/artboard.svg new file mode 100644 index 0000000..ebf7104 --- /dev/null +++ b/src/_icons/artboard.svg @@ -0,0 +1,13 @@ +--- +--- + + + + + + + + + + + diff --git a/src/_icons/award.svg b/src/_icons/award.svg new file mode 100644 index 0000000..3f488f3 --- /dev/null +++ b/src/_icons/award.svg @@ -0,0 +1,6 @@ +--- +--- + + + + diff --git a/src/_icons/bug.svg b/src/_icons/bug.svg new file mode 100644 index 0000000..9bf0b4f --- /dev/null +++ b/src/_icons/bug.svg @@ -0,0 +1,13 @@ +--- +--- + + + + + + + + + + + diff --git a/src/_icons/calendar-event.svg b/src/_icons/calendar-event.svg new file mode 100644 index 0000000..4aa8cee --- /dev/null +++ b/src/_icons/calendar-event.svg @@ -0,0 +1,10 @@ +--- +tags: [date, day, plan, schedule, agenda] +--- + + + + + + + diff --git a/src/_icons/directions.svg b/src/_icons/directions.svg index 4021d8b..9cb450d 100644 --- a/src/_icons/directions.svg +++ b/src/_icons/directions.svg @@ -2,8 +2,8 @@ tags: [travel, navigation, discover] --- - - + + diff --git a/src/_icons/disabled.svg b/src/_icons/disabled.svg index fd9c72a..157aa3e 100644 --- a/src/_icons/disabled.svg +++ b/src/_icons/disabled.svg @@ -5,5 +5,5 @@ tags: [wheelchair] - + diff --git a/src/_icons/disc.svg b/src/_icons/disc.svg index a87332b..f09c7b0 100644 --- a/src/_icons/disc.svg +++ b/src/_icons/disc.svg @@ -2,6 +2,8 @@ tags: [cd, music, album] --- - + + + diff --git a/src/_icons/edit.svg b/src/_icons/edit.svg index 1bc8b10..caf3023 100644 --- a/src/_icons/edit.svg +++ b/src/_icons/edit.svg @@ -4,4 +4,5 @@ tags: [pencil, change] + diff --git a/src/_icons/globe.svg b/src/_icons/globe.svg new file mode 100644 index 0000000..49ab576 --- /dev/null +++ b/src/_icons/globe.svg @@ -0,0 +1,8 @@ +--- +--- + + + + + + diff --git a/src/_icons/help.svg b/src/_icons/help.svg new file mode 100644 index 0000000..2a1cb0a --- /dev/null +++ b/src/_icons/help.svg @@ -0,0 +1,7 @@ +--- +--- + + + + + diff --git a/src/_icons/mug.svg b/src/_icons/mug.svg new file mode 100644 index 0000000..1525619 --- /dev/null +++ b/src/_icons/mug.svg @@ -0,0 +1,6 @@ +--- +--- + + + + diff --git a/src/_icons/palette.svg b/src/_icons/palette.svg new file mode 100644 index 0000000..14f09d0 --- /dev/null +++ b/src/_icons/palette.svg @@ -0,0 +1,8 @@ +--- +--- + + + + + + diff --git a/src/_icons/pencil.svg b/src/_icons/pencil.svg new file mode 100644 index 0000000..9ace377 --- /dev/null +++ b/src/_icons/pencil.svg @@ -0,0 +1,6 @@ +--- +--- + + + + diff --git a/src/_icons/record-mail.svg b/src/_icons/record-mail.svg new file mode 100644 index 0000000..8ee5886 --- /dev/null +++ b/src/_icons/record-mail.svg @@ -0,0 +1,7 @@ +--- +--- + + + + + diff --git a/src/_icons/ruler.svg b/src/_icons/ruler.svg new file mode 100644 index 0000000..847a84f --- /dev/null +++ b/src/_icons/ruler.svg @@ -0,0 +1,11 @@ +--- +--- + + + + + + + + + diff --git a/src/_icons/scissors.svg b/src/_icons/scissors.svg new file mode 100644 index 0000000..583197c --- /dev/null +++ b/src/_icons/scissors.svg @@ -0,0 +1,8 @@ +--- +--- + + + + + + diff --git a/src/_icons/stack.svg b/src/_icons/stack.svg new file mode 100644 index 0000000..554507e --- /dev/null +++ b/src/_icons/stack.svg @@ -0,0 +1,7 @@ +--- +--- + + + + + diff --git a/src/_icons/switch-vertical.svg b/src/_icons/switch-vertical.svg index 165cd54..1c4b7a4 100644 --- a/src/_icons/switch-vertical.svg +++ b/src/_icons/switch-vertical.svg @@ -2,10 +2,8 @@ tags: [toggle, up, down, arrows] --- - - diff --git a/src/_includes/icon.html b/src/_includes/icon.html index 25ec600..39b96aa 100644 --- a/src/_includes/icon.html +++ b/src/_includes/icon.html @@ -1,2 +1,2 @@ {% assign stroke = include.stroke | default: 2 %}{% assign width = 24 %}{% assign name = include.name %}{% assign icon = site.icons | where: "slug", name | first %}{% capture replace-to %} - {% endcapture %}{% assign content = icon.content | replace: '', replace-to %}{{ content }} + {% endcapture %}{% assign content = icon.content | replace: '', replace-to %}{{ content }} -- cgit v1.2.1