Rework header for small-screens
background-color: #1E1E1E;
color: white;
padding: 8px 8px 16px 8px;
+ position: relative;
}
.blerg-header .logo {
color: black;
}
+.blerg-title {
+ float: left;
+ width: 35%;
+}
+
.blerg-controls {
float: right;
- position: relative;
- width: 50%;
margin-top: 8px;
margin-right: 8px;
font-size: large;
text-align: right;
- height: 114px;
}
.blerg-controls-toolbar {
position: absolute;
right: 0;
- bottom: 0;
+ top: 69pt;
+ margin-bottom: 16px;
+ margin-right: 16px;
}
.blerg-controls-toolbar .onyx-button {
font-size: 14pt;
}
+@media screen and (max-width: 800px) {
+ .blerg-title {
+ float: none;
+ width: auto;
+ }
+
+ .blerg-controls {
+ float: none;
+ text-align: left;
+ margin: 1em 0 0 0;
+ }
+
+ .blerg-controls-greeting {
+ margin: 1em 8px;
+ }
+
+ .blerg-controls-toolbar {
+ position: static;
+ margin: 1em 8px;
+ }
+
+ .blerg-controls-toolbar .onyx-button {
+ display: block;
+ width: 100%;
+ margin: 8px 0;
+ }
+
+ .blerg-controls .login {
+ display: block;
+ width: auto;
+ margin: 1em 0;
+ }
+}
+
.feed-button.new {
background-color: #E4C010;
}
]}
]},
{name: "loggedInControls", showing: false, components: [
- {name: "greeting", components: [
+ {name: "greeting", classes: "blerg-controls-greeting", components: [
{tag: null, content: "Hello, "},
{name: "userlink", tag: "a"},
{tag: null, content: ". "},
enyo.kind({
name: "blerg.Title",
kind: "Control",
- style: "float: left; width: 40%;",
+ classes: "blerg-title",
published: {
section: ""
},