mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-21 14:43:31 +00:00
Adopt theming system of Angular Material
The SASS has been simplified so that different themes can be applied by only using the $mdThemingProvider serivce. The resulting design is more "Materialized" and less prone to the future changes of Angular Material.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
md-toolbar {
|
||||
background-image: url("../img/felt-transp.png");
|
||||
background-blend-mode: luminosity;
|
||||
}
|
||||
|
||||
.sg-toolbar-search {
|
||||
background-color: sg-color($sogoPaper, 100);
|
||||
color: rgba(0,0,0,0.54);
|
||||
md-icon {
|
||||
color: rgba(0,0,0,0.54);
|
||||
}
|
||||
}
|
||||
@@ -16,9 +16,6 @@ md-toolbar {
|
||||
z-index: $z-index-toolbar;
|
||||
// dirty fix to override angular-material botchy typography
|
||||
font-size: 1em !important;
|
||||
background-image: url("../img/felt-transp.png");
|
||||
background-blend-mode: luminosity;
|
||||
//box-shadow: $whiteframe-shadow-z1;
|
||||
}
|
||||
|
||||
.md-toolbar-tools {
|
||||
@@ -43,11 +40,6 @@ md-toolbar,
|
||||
}
|
||||
}
|
||||
|
||||
// angular-material is overspecifying so we are
|
||||
.md-toolbar-tools[layout-align="start start"] {
|
||||
//align-items: flex-start;
|
||||
}
|
||||
|
||||
.md-toolbar-tools.md-toolbar-tools-top {
|
||||
align-items: flex-start;
|
||||
}
|
||||
@@ -66,24 +58,16 @@ header {
|
||||
}
|
||||
hgroup {
|
||||
align-items: center;
|
||||
//flex: 1 1 auto;
|
||||
&h3 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
.toolbar-main .md-button {
|
||||
// color: inherit;
|
||||
// font-size: sg-size(headline);
|
||||
}
|
||||
|
||||
.sg-toolbar-group {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
// & > .sg-icon-button:first-child {
|
||||
// padding-left: 0;
|
||||
// }
|
||||
&-1 {
|
||||
order: 1;
|
||||
max-width: $listView-width;
|
||||
@@ -98,10 +82,5 @@ hgroup {
|
||||
}
|
||||
|
||||
.sg-toolbar-search {
|
||||
background-color: sg-color($sogoPaper, 100);
|
||||
color: rgba(0,0,0,0.54);
|
||||
padding: $toolbar-padding 0;
|
||||
md-icon {
|
||||
color: rgba(0,0,0,0.54);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user