_main-header.scss
2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/* $header
------------------------------------------*/
mat-toolbar {
.toolbar-avatar {
width: 40px;
height: 40px;
line-height: 24px;
}
.toolbar-avatar img{
width: 40px;
border-radius: 50%;
}
.notification-label {
position: absolute;
top: 0;
left: 50%;
font-size: 12px;
font-weight: 700;
line-height: 13px;
border-radius: 50%;
width: 13px;
height: 13px;
background-color: mat-color($warn);
border: 4px solid mat-color($warn);
color: white;
text-align: center;
}
&.main-header {
padding: 0 8px;
position: relative;
box-shadow: 0 1px 8px rgba(0,0,0,.3);
z-index: 9;
.branding {
display: -webkit-box;
display: -moz-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin: auto 0;
line-height: 50px;
padding: 0 64px 0 16px;
}
.logo {
background-image: url(/assets/images/logo.svg);
width: 109px;
height: 25px;
-webkit-background-size: 109px 25px;
background-size: 109px 25px;
margin: auto;
}
.search-bar {
.search-form {
background: rgba(255,255,255,1);
position: relative;
border-radius: $border-radius-large;
margin-right: $gutter;
display: block;
max-width: 800px;
input {
font-size: 1rem;
padding: .95rem .75rem;
z-index: 2;
cursor: text;
text-indent: 30px;
border: none;
background: transparent;
width: 100%;
outline: 0;
}
.material-icons {
position: absolute;
top: 50%;
left: 10px;
margin-top: -12px;
color: rgba(mat-color($foreground, base), 0.87);
}
}
}
}
}
// Specific height for mobile devices in portrait mode.
@media ($mat-xsmall) and (orientation: portrait) {
mat-toolbar {
&.main-header {
.branding {
padding: 0 16px 0 16px;
}
.logo {
width: 87px;
height: 20px;
-webkit-background-size: 87px 20px;
background-size: 87px 20px;
}
}
}
}
[dir="rtl"] {
.main-header {
.branding {
padding: 0 16px 0 64px;
}
.search-bar {
.search-form {
.material-icons {
left: auto;
right: 10px;
}
}
}
}
}