summaryrefslogtreecommitdiff
path: root/@linaria/examples/Preact/preact-example/src/components/header/style.css
diff options
context:
space:
mode:
Diffstat (limited to '@linaria/examples/Preact/preact-example/src/components/header/style.css')
-rw-r--r--@linaria/examples/Preact/preact-example/src/components/header/style.css38
1 files changed, 38 insertions, 0 deletions
diff --git a/@linaria/examples/Preact/preact-example/src/components/header/style.css b/@linaria/examples/Preact/preact-example/src/components/header/style.css
new file mode 100644
index 0000000..9d3db38
--- /dev/null
+++ b/@linaria/examples/Preact/preact-example/src/components/header/style.css
@@ -0,0 +1,38 @@
+.header {
+ position: fixed;
+ left: 0;
+ top: 0;
+ width: 100%;
+ height: 56px;
+ padding: 0;
+ background: #673AB7;
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
+ z-index: 50;
+}
+
+.header nav {
+ float: right;
+ font-size: 100%;
+}
+
+.header nav a {
+ display: inline-block;
+ height: 56px;
+ line-height: 56px;
+ padding: 0 15px;
+ min-width: 50px;
+ text-align: center;
+ background: rgba(255,255,255,0);
+ text-decoration: none;
+ color: #FFF;
+ will-change: background-color;
+}
+
+.header nav a:hover,
+.header nav a:active {
+ background: rgba(0,0,0,0.2);
+}
+
+.header nav a.active {
+ background: rgba(0,0,0,0.4);
+}