summaryrefslogtreecommitdiff
path: root/material/material.css
blob: bdc63a65b2e139faf740c20127f3b773df84cd87 (plain)
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/* Copyright 2015 Google Inc.
Copyright 2016, 2017 Benjamin Barenblat

Licensed under the Apache License, Version 2.0 (the “License”); you may not use
this file except in compliance with the License.  You may obtain a copy of the
License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.  See the License for the
specific language governing permissions and limitations under the License. */

html, body {
  margin: 0;
  padding: 0;
  background: #fafafa;
  font-family: Roboto;
}

.Material_stackingContext {
  position: absolute;
  z-index: 0;
}

.Material_Ripple_ink {
  display: block;
  position: fixed;
  transform: scale(0);
  background: #fafafa;
  border-radius: 100%;
  animation: ripple 300ms linear;
}

.Material_AppBar_bar {
  background: #9c27b0;
  height: 56px;
  box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.34);  /* 4dp */
  display: flex;
}

/* Aggressively align text to baseline by pretending it’s a drop cap
(http://blogs.adobe.com/webplatform/2014/08/13/one-weird-trick-to-baseline-align-text/). */
.Material_AppBar_title {
  line-height: 0px;
}
.Material_AppBar_title:after {
  display: inline-block;
  height: 100%;
  content: "";
}

.Material_AppBar_title {
  margin: auto auto 20px 14px;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: visible;
  /* We can’t use text-overflow because line-height got set to zero for baseline
  adjustment. */
}

.Material_Checkbox_checkbox {
  display: block;
  box-sizing: border-box;
  border: 2px solid #9c27b0;
  border-radius: 2px;
  transition: background 300ms;

  /* These must match the width and height defined in Material.Checkbox. */
  width: 24px;
  height: 24px;
}

.Material_Checkbox_checked {
  background: #9c27b0 url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgdmVyc2lvbj0iMS4xIgogICB2aWV3Qm94PSIwIDAgMSAxIgogICBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWluWU1pbiBtZWV0Ij4KICA8cGF0aAogICAgIGQ9Ik0gMC4wNDAzODA1OSwwLjYyNjc3NjcgMC4xNDY0NDY2MSwwLjUyMDcxMDY4IDAuNDI5Mjg5MzIsMC44MDM1NTMzOSAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IE0gMC4yMTcxNTcyOSwwLjgwMzU1MzM5IDAuODUzNTUzMzksMC4xNjcxNTcyOSAwLjk1OTYxOTQxLDAuMjczMjIzMyAwLjMyMzIyMzMsMC45MDk2MTk0MSB6IgogICAgIGlkPSJyZWN0Mzc4MCIKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgo8L3N2Zz4K);
}

.Material_Checkbox_container .Material_Ripple_ink {
  background: #9c27b0;  /* TODO(bbaren): Is this the correct color? */

  /* Place the ripple effect underneath the checkmark. */
  z-index: -1;
}

.Material_FloatingActionButton_container {
  width: 56px;
  height: 56px;
  position: fixed;
  right: 16px;
  bottom: 16px;
  border-radius: 100%;
  overflow: hidden;
  box-shadow: 0px 6px 12px 0px rgba(0,0,0,0.34);  /* 6dp */
}

.Material_FloatingActionButton_element {
  width: 100%;
  height: 100%;
  background: #ff9800;
  border: none;

  /* Black text on orange looks a bit weird, but the MDL color picker says that’s
  correct, so.... */
  color: #000;
}

.Material_List_SingleLine_element {
  list-style-type: none;
  height: 48px;
  font-size: 16px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.Material_List_SingleLine_icon {
  margin: 12px 32px 12px 0;
  height: 24px;
  width: 24px;
}

.Material_List_SingleLine_list {
  margin: 8px 16px;
  padding: 0;
}

@keyframes ripple {
  to {
    opacity: 0;
    transform: scale(2);
  }
}