From f4f2fa4e19b3f35ab738ee1030f17028a1438e9c Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Fri, 24 Nov 2017 15:33:48 +0000 Subject: [PATCH] Use Overleaf logo as the main menu icon. --- .../web/app/views/project/editor/header.pug | 2 +- .../public/img/ol-brand/overleaf-o-white.svg | 18 ++++++++++++++++++ .../web/public/stylesheets/app/editor.less | 10 ++++++++++ .../public/stylesheets/core/ol-variables.less | 2 +- 4 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 services/web/public/img/ol-brand/overleaf-o-white.svg diff --git a/services/web/app/views/project/editor/header.pug b/services/web/app/views/project/editor/header.pug index 8bd37f707c..4eaae86373 100644 --- a/services/web/app/views/project/editor/header.pug +++ b/services/web/app/views/project/editor/header.pug @@ -7,7 +7,7 @@ header.toolbar.toolbar-header.toolbar-with-labels( href, ng-click="ui.leftMenuShown = true;", ) - i.fa.fa-fw.fa-bars + i.fa.fa-fw.fa-bars.editor-menu-icon p.toolbar-label #{translate("menu")} a( href="/project" diff --git a/services/web/public/img/ol-brand/overleaf-o-white.svg b/services/web/public/img/ol-brand/overleaf-o-white.svg new file mode 100644 index 0000000000..be896abcc3 --- /dev/null +++ b/services/web/public/img/ol-brand/overleaf-o-white.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + diff --git a/services/web/public/stylesheets/app/editor.less b/services/web/public/stylesheets/app/editor.less index 017ea2ecc8..46b85fde26 100644 --- a/services/web/public/stylesheets/app/editor.less +++ b/services/web/public/stylesheets/app/editor.less @@ -26,6 +26,16 @@ } } +.editor-menu-icon when (@is-overleaf = true) { + &.fa::before { + // Disable the font-awesome icon when in Overleaf by replacing it with a + // non-breakable space instead (otherwise the browser would render a + // zero-width element). + content: "\00a0"; + } + background: url(/img/ol-brand/overleaf-o-white.svg) center / contain no-repeat; +} + .full-size { position: absolute; top: 0; diff --git a/services/web/public/stylesheets/core/ol-variables.less b/services/web/public/stylesheets/core/ol-variables.less index d6d925a8ca..4911a9d2c4 100644 --- a/services/web/public/stylesheets/core/ol-variables.less +++ b/services/web/public/stylesheets/core/ol-variables.less @@ -171,7 +171,7 @@ @toolbar-icon-btn-color : #FFF; @toolbar-icon-btn-hover-color : #FFF; @toolbar-icon-btn-hover-shadow : none; -@toolbar-border-bottom : 0; +@toolbar-border-bottom : 1px solid @toolbar-border-color; // Editor file-tree @file-tree-bg : @ol-blue-gray-4; @file-tree-item-color : #FFF;