make appbar responsive #18
|
@ -507,10 +507,10 @@ div#content {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
div#main-content > h2,
|
#main-content > h2,
|
||||||
div#appbar > h2,
|
#appbar > h2,
|
||||||
div#main-content .top-title h2,
|
#main-content .top-title h2,
|
||||||
div#content h2 {
|
#content h2 {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
color: #161c2a;
|
color: #161c2a;
|
||||||
|
@ -1117,101 +1117,97 @@ $appicons: add, agendas, announces, bankcard, book, calendar, cards, categories,
|
||||||
|
|
||||||
#appbar {
|
#appbar {
|
||||||
position: relative;
|
position: relative;
|
||||||
& > a {
|
border-radius: 3px 3px 0 0;
|
||||||
position: relative;
|
display: flex;
|
||||||
top: -45px;
|
flex-wrap: wrap;
|
||||||
float: right;
|
align-items: baseline;
|
||||||
margin-left: 2em;
|
margin-bottom: 20px;
|
||||||
|
|
||||||
|
& > h2 {
|
||||||
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
span.actions {
|
span.actions {
|
||||||
position: absolute;
|
position: relative;
|
||||||
bottom: 0px;
|
flex: 1 1 auto;
|
||||||
right: 0;
|
display: flex;
|
||||||
|
flex-direction: row-reverse;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
> * {
|
> * {
|
||||||
float: right;
|
|
||||||
margin-left: 2em;
|
margin-left: 2em;
|
||||||
}
|
}
|
||||||
@media print {
|
@media print {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
> a {
|
||||||
& > a,
|
@extend %button;
|
||||||
span.actions > a {
|
&.disabled {
|
||||||
@extend %button;
|
border-color: #aaa;
|
||||||
&.disabled {
|
|
||||||
border-color: #aaa;
|
|
||||||
color: #aaa;
|
|
||||||
background: #eee;
|
|
||||||
pointer-events: none;
|
|
||||||
&:hover {
|
|
||||||
background: #eee;
|
|
||||||
color: #aaa;
|
color: #aaa;
|
||||||
}
|
background: #eee;
|
||||||
}
|
pointer-events: none;
|
||||||
}
|
|
||||||
border-radius: 3px 3px 0 0;
|
|
||||||
span.actions a.extra-actions-menu-opener,
|
|
||||||
a.extra-actions-menu-opener {
|
|
||||||
border: 1px solid transparent;
|
|
||||||
color: $primary-color;
|
|
||||||
&::before {
|
|
||||||
border-radius: 3px;
|
|
||||||
cursor: pointer;
|
|
||||||
content: "\f142"; /* ellipsis-v */
|
|
||||||
font-family: FontAwesome;
|
|
||||||
border-bottom: 0;
|
|
||||||
position: relative;
|
|
||||||
z-index: 200;
|
|
||||||
top: 2px;
|
|
||||||
}
|
|
||||||
&.open, &.open:hover {
|
|
||||||
background: $primary-color;
|
|
||||||
color: white;
|
|
||||||
border: 1px solid transparent;
|
|
||||||
border-radius: 3px 3px 0 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.extra-actions-menu {
|
|
||||||
padding: 0px;
|
|
||||||
list-style: none;
|
|
||||||
position: absolute;
|
|
||||||
right: 0px;
|
|
||||||
margin-top: -20px;
|
|
||||||
background: $primary-color;
|
|
||||||
box-shadow: 0px 1px 1px 2px rgba(0, 0, 0, 0.04);
|
|
||||||
z-index: 100;
|
|
||||||
display: none;
|
|
||||||
min-width: 12em;
|
|
||||||
&.open {
|
|
||||||
border-radius: 3px 0 3px 3px;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
li {
|
|
||||||
margin: 0;
|
|
||||||
a {
|
|
||||||
color: white;
|
|
||||||
float: none;
|
|
||||||
display: block;
|
|
||||||
margin: 0;
|
|
||||||
padding: 5px 10px;
|
|
||||||
border: 0;
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: lighten($primary-color, 20%);
|
background: #eee;
|
||||||
|
color: #aaa;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
a.extra-actions-menu-opener {
|
||||||
span.actions {
|
border: 1px solid transparent;
|
||||||
|
color: $primary-color;
|
||||||
|
&::before {
|
||||||
|
border-radius: 3px;
|
||||||
|
cursor: pointer;
|
||||||
|
content: "\f142"; /* ellipsis-v */
|
||||||
|
font-family: FontAwesome;
|
||||||
|
border-bottom: 0;
|
||||||
|
position: relative;
|
||||||
|
z-index: 200;
|
||||||
|
top: 2px;
|
||||||
|
}
|
||||||
|
&.open, &.open:hover {
|
||||||
|
background: $primary-color;
|
||||||
|
color: white;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
border-radius: 3px 3px 0 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
.extra-actions-menu {
|
.extra-actions-menu {
|
||||||
|
padding: 0px;
|
||||||
|
list-style: none;
|
||||||
|
position: absolute;
|
||||||
|
right: 0px;
|
||||||
|
background: $primary-color;
|
||||||
|
box-shadow: 0px 1px 1px 2px rgba(0, 0, 0, 0.04);
|
||||||
|
z-index: 100;
|
||||||
|
display: none;
|
||||||
|
min-width: 12em;
|
||||||
margin-top: 0px;
|
margin-top: 0px;
|
||||||
top: 100%;
|
top: 100%;
|
||||||
|
&.open {
|
||||||
|
border-radius: 3px 0 3px 3px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
li {
|
||||||
|
margin: 0;
|
||||||
|
a {
|
||||||
|
color: white;
|
||||||
|
float: none;
|
||||||
|
display: block;
|
||||||
|
margin: 0;
|
||||||
|
padding: 5px 10px;
|
||||||
|
border: 0;
|
||||||
|
&:hover {
|
||||||
|
background: lighten($primary-color, 20%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.highlight {
|
&.highlight {
|
||||||
background: linear-gradient(to right, $primary-color 30%, $secondary-color 100%);
|
background: linear-gradient(to right, $primary-color 30%, $secondary-color 100%);
|
||||||
border-radius: $cell-border-radius;
|
border-radius: $cell-border-radius;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
padding-bottom: 5px;
|
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
h2 {
|
h2 {
|
||||||
color: white;
|
color: white;
|
||||||
|
|
Loading…
Reference in New Issue