+ tags:
+ - desktop
+ - light
+ - mobile
+ - navigation
+ - bar
+*/
+
+.navigation-bar {
+ @extend: %navigation-bar;
+ height: var(--height--large);
+ padding-left: var(--padding--navigation-bar);
+ padding-right: var(--padding--navigation-bar);
+ background: var(--background-color);
+ color: var(--color--navigation-bar);
+ box-shadow: var(--box-shadow--navigation-bar);
+ text-align: center;
+}
+
+.navigation-bar__item {
+ @extend: %navigation-bar__item;
+ margin: var(--margin);
+ line-height: var(--line-height--large);
+ vertical-align: top;
+}
+
+.navigation-bar__title {
+ @extend: %navigation-bar__title;
+ font-size: var(--font-size--large);
+ font-weight: var(--font-weight--large);
+ color: var(--color--navigation-bar);
+}
diff --git a/test/expected/mobile-dark.css b/test/expected/mobile-dark-navigation-bar.css
similarity index 72%
rename from test/expected/mobile-dark.css
rename to test/expected/mobile-dark-navigation-bar.css
index 529cea1..a10c1d0 100644
--- a/test/expected/mobile-dark.css
+++ b/test/expected/mobile-dark-navigation-bar.css
@@ -1,20 +1,4 @@
-/**
-*
-* Copyright 2012 Adobe Systems Inc.;
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/@font-face {
+@font-face {
font-family: "Source Sans Pro";
src: url('../font/SourceSansPro-Regular.otf');
}
@@ -31,14 +15,22 @@
font-weight: 600;
}
-body {
- font: 16px "Source Sans Pro", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
- font-weight: 400;
+html {
+ font-size: 16px;
}
body {
margin: 0;
padding: 0;
+ font-family: "Source Sans Pro",
+ "HelveticaNeue-Light",
+ "Helvetica Neue Light",
+ "Helvetica Neue",
+ Helvetica,
+ Arial,
+ "Lucida Grande",
+ sans-serif;
+ font-weight: 400;
background: hsla(200, 2%, 30%, 1);
}
@@ -68,7 +60,6 @@ body {
.topcoat-navigation-bar,
.topcoat-navigation-bar__item {
- -moz-box-sizing: border-box;
box-sizing: border-box;
background-clip: padding-box;
}
@@ -130,4 +121,4 @@ body {
font-size: 1.3rem;
font-weight: 400;
color: hsla(0, 100%, 100%, 1);
-}
\ No newline at end of file
+}
diff --git a/css/mobile-light.css b/test/expected/mobile-light-navigation-bar.css
similarity index 72%
rename from css/mobile-light.css
rename to test/expected/mobile-light-navigation-bar.css
index aa2213f..ad9d076 100644
--- a/css/mobile-light.css
+++ b/test/expected/mobile-light-navigation-bar.css
@@ -1,20 +1,4 @@
-/**
-*
-* Copyright 2012 Adobe Systems Inc.;
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/@font-face {
+@font-face {
font-family: "Source Sans Pro";
src: url('../font/SourceSansPro-Regular.otf');
}
@@ -31,14 +15,22 @@
font-weight: 600;
}
-body {
- font: 16px "Source Sans Pro", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
- font-weight: 400;
+html {
+ font-size: 16px;
}
body {
margin: 0;
padding: 0;
+ font-family: "Source Sans Pro",
+ "HelveticaNeue-Light",
+ "Helvetica Neue Light",
+ "Helvetica Neue",
+ Helvetica,
+ Arial,
+ "Lucida Grande",
+ sans-serif;
+ font-weight: 400;
background: hsla(180, 5%, 88%, 1);
}
@@ -68,7 +60,6 @@ body {
.topcoat-navigation-bar,
.topcoat-navigation-bar__item {
- -moz-box-sizing: border-box;
box-sizing: border-box;
background-clip: padding-box;
}
@@ -130,4 +121,4 @@ body {
font-size: 1.3rem;
font-weight: 400;
color: hsla(0, 0%, 27%, 1);
-}
\ No newline at end of file
+}
diff --git a/test/fixtures/license.txt b/test/fixtures/license.txt
deleted file mode 100644
index c0b7f2e..0000000
--- a/test/fixtures/license.txt
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
-*
-* Copyright 2012 Adobe Systems Inc.;
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
\ No newline at end of file
diff --git a/test/fixtures/mobile-dark.css b/test/fixtures/mobile-dark.css
deleted file mode 100644
index b76ed6f..0000000
--- a/test/fixtures/mobile-dark.css
+++ /dev/null
@@ -1,2 +0,0 @@
-@import "topcoat-theme-mobile-dark";
-@import "..";
\ No newline at end of file
diff --git a/test/fixtures/mobile-light.css b/test/fixtures/mobile-light.css
deleted file mode 100644
index 5a7fccd..0000000
--- a/test/fixtures/mobile-light.css
+++ /dev/null
@@ -1,2 +0,0 @@
-@import "topcoat-theme-mobile-light";
-@import "..";
\ No newline at end of file
diff --git a/test/navigation-bar.test.js b/test/navigation-bar.test.js
deleted file mode 100644
index 71c6890..0000000
--- a/test/navigation-bar.test.js
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- *
- * Copyright 2012 Adobe Systems Inc.;
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-/*global require, describe, it*/
-
-var grunt = require('grunt'),
- assert = require('assert');
-
-describe('Topcoat Navigation Bar', function() {
-
- it('should output correct mobile dark css', function() {
- var actual = grunt.file.read('css/mobile-dark.css');
- var expected = grunt.file.read('test/expected/mobile-dark.css');
- assert.equal(actual, expected, 'should generate correct css');
- });
-
- it('should output correct mobile light css', function() {
- var actual = grunt.file.read('css/mobile-light.css');
- var expected = grunt.file.read('test/expected/mobile-light.css');
- assert.equal(actual, expected, 'should generate correct css');
- });
-
- it('should not have any unrendered variables', function() {
- var actual = grunt.file.read('css/mobile-light.css');
- assert.equal(actual.match(/var-[a-z-]*[a-z]+/g), null, 'should not have missing vars');
- });
-
- it('should not have any unrendered variables', function() {
- var actual = grunt.file.read('css/mobile-dark.css');
- assert.equal(actual.match(/var-[a-z-]*[a-z]+/g), null, 'should not have missing vars');
- });
-
-});
-
diff --git a/test/perf/navigation-bar-test.jade b/test/perf/navigation-bar-test.jade
deleted file mode 100644
index 5c97e21..0000000
--- a/test/perf/navigation-bar-test.jade
+++ /dev/null
@@ -1,18 +0,0 @@
--var repeats = 200
-!!!
-html
- head
- title TopCoat navigation bar test
- |
- body
- -while (repeats > 0)
- -var repeats = repeats - 1
- div.topcoat-navigation-bar
- div.topcoat-navigation-bar__item.left.quarter
- a.topcoat-icon-button--quiet
- span.topcoat-icon.topcoat-icon--menu-stack
- div.topcoat-navigation-bar__item.center.half
- h1.topcoat-navigation-bar__title Title
- div.topcoat-navigation-bar__item.right.quarter
- a.topcoat-icon-button--quiet
- span.topcoat-icon.topcoat-icon--menu-stack
diff --git a/test/perf/navigation-bar-test.test.html b/test/perf/navigation-bar-test.test.html
deleted file mode 100644
index 7116844..0000000
--- a/test/perf/navigation-bar-test.test.html
+++ /dev/null
@@ -1 +0,0 @@
-TopCoat navigation bar test
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
Title
\ No newline at end of file
diff --git a/test/perf/topcoat_navigation-bar.test.html b/test/perf/topcoat_navigation-bar.test.html
deleted file mode 100644
index ffacd77..0000000
--- a/test/perf/topcoat_navigation-bar.test.html
+++ /dev/null
@@ -1 +0,0 @@
-
Title
\ No newline at end of file
diff --git a/test/perf/topcoat_navigation-bar.test.jade b/test/perf/topcoat_navigation-bar.test.jade
deleted file mode 100644
index 2db6eef..0000000
--- a/test/perf/topcoat_navigation-bar.test.jade
+++ /dev/null
@@ -1,9 +0,0 @@
-div.topcoat-navigation-bar
- div.topcoat-navigation-bar__item.left.quarter
- a.topcoat-icon-button--quiet
- span.topcoat-icon.topcoat-icon--menu-stack
- div.topcoat-navigation-bar__item.center.half
- h1.topcoat-navigation-bar__title Title
- div.topcoat-navigation-bar__item.right.quarter
- a.topcoat-icon-button--quiet
- span.topcoat-icon.topcoat-icon--menu-stack
diff --git a/test/topcoat-navigation-bar.test.js b/test/topcoat-navigation-bar.test.js
new file mode 100644
index 0000000..3bf2c61
--- /dev/null
+++ b/test/topcoat-navigation-bar.test.js
@@ -0,0 +1,32 @@
+var assert = require('assert');
+var fs = require('fs');
+
+function read(file) {
+ return fs.readFileSync(file, 'utf8');
+}
+
+describe('Topcoat Navigation Bar', function() {
+
+ it('should output correct mobile dark css', function() {
+ var actual = read('css/mobile-dark-navigation-bar.css');
+ var expected = read('test/expected/mobile-dark-navigation-bar.css');
+ assert.equal(actual, expected, 'should generate correct css');
+ });
+
+ it('should output correct mobile light css', function() {
+ var actual = read('css/mobile-light-navigation-bar.css');
+ var expected = read('test/expected/mobile-light-navigation-bar.css');
+ assert.equal(actual, expected, 'should generate correct css');
+ });
+
+ it('should not have any unrendered variables', function() {
+ var actual = read('css/mobile-light-navigation-bar.css');
+ assert.equal(actual.match(/var-[a-z-]*[a-z]+/g), null, 'should not have missing vars');
+ });
+
+ it('should not have any unrendered variables', function() {
+ var actual = read('css/mobile-dark-navigation-bar.css');
+ assert.equal(actual.match(/var-[a-z-]*[a-z]+/g), null, 'should not have missing vars');
+ });
+
+});