Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: static/scss/_navbar.scss

Issue 29587584: Issue 5635 - Implement website-default navbar component (Closed) Base URL: https://hg.adblockplus.org/website-defaults
Patch Set: Remove separate open/close states Created Dec. 8, 2017, 10:34 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: static/scss/_navbar.scss
===================================================================
new file mode 100644
--- /dev/null
+++ b/static/scss/_navbar.scss
@@ -0,0 +1,142 @@
+// This file is part of help.eyeo.com.
+// Copyright (C) 2017 Eyeo GmbH
+//
+// help.eyeo.com is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// help.eyeo.com is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with help.eyeo.com. If not, see <http://www.gnu.org/licenses/>.
+
+/*******************************************************************************
+ * Navbar component
+ ******************************************************************************/
+
+.navbar
+{
+ @extend .clearfix;
+}
+
+/* .navbar .navbar-branding
+ ****************************************************************************/
+
+.navbar-branding
+{
+ padding-top: $navbar-padding-v;
+ padding-bottom: $navbar-padding-v;
+}
+
+.navbar-branding img
+{
+ height: $navbar-branding-height;
+ vertical-align: text-top;
+}
+
+/* .navbar .toggle-navbar-collapse
+ ****************************************************************************/
+
+.toggle-navbar-collapse
juliandoucette 2017/12/08 15:24:06 @extend .link? (Maybe separately) (border, backg
ire 2017/12/11 15:11:57 Done.
+{
+ display: none;
+ margin: 0;
+ padding-top: $navbar-padding-v + ($navbar-padding-v / 2);
+ padding-bottom: $navbar-padding-v + ($navbar-padding-v / 2);
+ border: none;
+ background: none;
+ cursor: pointer;
+}
+
+.js .toggle-navbar-collapse
+{
+ display: block;
+
+ @media (min-width: $tablet-breakpoint)
+ {
+ display: none;
+ }
+}
+
+/* .navbar .navbar-collapse
+ ****************************************************************************/
+
+.navbar-collapse
+{
+ clear: both;
juliandoucette 2017/12/08 15:24:07 NIT: @extend .clearfix?
ire 2017/12/11 15:11:57 I don't think more than `clear: both` is needed he
+ padding-top: 0;
+
+ @media (min-width: $tablet-breakpoint)
+ {
+ float: right;
+ clear: none;
+ }
+}
+
+[dir="rtl"] .navbar-collapse
+{
+ float: left;
+}
+
+.js .navbar-collapse
+{
+ display: none;
+
+ @media (min-width: $tablet-breakpoint)
+ {
+ display: block;
+ }
+}
+
+.expanded .navbar-collapse
+{
+ display: block;
+ width: 100%;
+
+ @media (min-width: $tablet-breakpoint)
+ {
+ width: auto;
+ }
+}
+
+/* .navbar .navbar-nav
+ ****************************************************************************/
+
+.navbar .navbar-nav
+{
+ padding-bottom: $navbar-padding-v / 2;
+
+ @media (min-width: $tablet-breakpoint)
+ {
+ margin-right: -($navbar-padding-v / 2);
+ margin-left: -($navbar-padding-v / 2);
+ padding-bottom: 0;
+ }
+}
+
+.navbar .navbar-nav li
+{
+ @media (min-width: $tablet-breakpoint)
+ {
+ display: inline-block;
+ }
+}
+
+.navbar .navbar-nav a
+{
+ display: block;
+ padding-top: $navbar-padding-v / 2;
+ padding-bottom: $navbar-padding-v / 2;
+
+ @media (min-width: $tablet-breakpoint)
+ {
+ padding-top: $navbar-padding-v + ($navbar-padding-v / 2);
+ padding-right: $navbar-padding-v / 2;
+ padding-bottom: $navbar-padding-v + ($navbar-padding-v / 2);
+ padding-left: $navbar-padding-v / 2;
+ }
+}
« static/js/navbar.js ('K') | « static/js/navbar.js ('k') | static/scss/_variables.scss » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld