From e8d7e2e3378a5da4e1f11f20d426c9371395c806 Mon Sep 17 00:00:00 2001 From: NejcZdovc Date: Thu, 2 Feb 2017 07:17:15 +0100 Subject: [PATCH] Added new icons --- img/toolbar/add_BM_folder_btn.svg | 2 +- img/toolbar/add_bookmark_btn.svg | 2 +- img/toolbar/bookmarks_export.svg | 2 + img/toolbar/bookmarks_import.svg | 1 + js/about/bookmarks.js | 4 +- less/about/bookmarks.less | 62 +++++++++++++++++-------------- 6 files changed, 42 insertions(+), 31 deletions(-) create mode 100644 img/toolbar/bookmarks_export.svg create mode 100644 img/toolbar/bookmarks_import.svg diff --git a/img/toolbar/add_BM_folder_btn.svg b/img/toolbar/add_BM_folder_btn.svg index 79f11b5e104..b2ce75e48c2 100644 --- a/img/toolbar/add_BM_folder_btn.svg +++ b/img/toolbar/add_BM_folder_btn.svg @@ -1 +1 @@ -add_BM_folder_btn \ No newline at end of file + diff --git a/img/toolbar/add_bookmark_btn.svg b/img/toolbar/add_bookmark_btn.svg index 99341b82bad..58eaadbfa3f 100644 --- a/img/toolbar/add_bookmark_btn.svg +++ b/img/toolbar/add_bookmark_btn.svg @@ -1 +1 @@ -add_bookmark_btn \ No newline at end of file + diff --git a/img/toolbar/bookmarks_export.svg b/img/toolbar/bookmarks_export.svg new file mode 100644 index 00000000000..54b8e34ad88 --- /dev/null +++ b/img/toolbar/bookmarks_export.svg @@ -0,0 +1,2 @@ + diff --git a/img/toolbar/bookmarks_import.svg b/img/toolbar/bookmarks_import.svg new file mode 100644 index 00000000000..85e722f58a6 --- /dev/null +++ b/img/toolbar/bookmarks_import.svg @@ -0,0 +1 @@ + diff --git a/js/about/bookmarks.js b/js/about/bookmarks.js index 8476f3a7c0e..abf96166281 100644 --- a/js/about/bookmarks.js +++ b/js/about/bookmarks.js @@ -451,6 +451,8 @@ class AboutBookmarks extends React.Component {
+ + { this.state.search @@ -465,8 +467,6 @@ class AboutBookmarks extends React.Component {
- -
.bookmarkFolderList { @@ -153,27 +137,51 @@ padding-left: 12px; } -.addBookmarkFolder { +.addBookmarkFolder, +.addBookmark { background-color: @buttonColor; - -webkit-mask-image: url('../../img/toolbar/add_BM_folder_btn.svg'); -webkit-mask-repeat: no-repeat; - margin-right: 7px; width: 24px; height: 26px; float: right; + margin-right: 7px; } -.addBookmarkFolder:hover { - background-color: #000; + +.addBookmarkFolder { + -webkit-mask-image: url('../../img/toolbar/add_BM_folder_btn.svg'); } + .addBookmark { - background-color: @buttonColor; -webkit-mask-image: url('../../img/toolbar/add_bookmark_btn.svg'); - -webkit-mask-repeat: no-repeat; - margin-right: 7px; width: 20px; height: 20px; - float: right; } -.addBookmark:hover { - background-color: #000; + +.addBookmark, +.addBookmarkFolder, +.importBrowserData, +.exportBookmarks { + &:hover { + background-color: #000; + } +} + +.exportBookmarks, +.importBrowserData { + background-color: @buttonColor; + -webkit-mask-repeat: no-repeat; + width: 43px; + height: 22px; + display: inline-block; + vertical-align: top; + margin: 7px 10px 5px 0; +} + + +.importBrowserData { + -webkit-mask-image: url('../../img/toolbar/bookmarks_import.svg'); +} + +.exportBookmarks { + -webkit-mask-image: url('../../img/toolbar/bookmarks_export.svg'); }