forked from material-components/material-components-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathicon-toggle.scss
80 lines (71 loc) · 1.9 KB
/
icon-toggle.scss
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
//
// Copyright 2017 Google Inc. All Rights Reserved.
//
// 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.
//
@import "./common";
@import "../packages/mdc-icon-toggle/mdc-icon-toggle";
@import "../packages/mdc-ripple/mixins";
.demo-wrapper {
margin-left: 1rem;
}
.example {
display: flex;
flex-flow: row wrap;
align-content: left;
justify-content: left;
}
.toggle-example {
min-width: 240px;
padding: 24px;
margin: 24px;
}
#demo-color-combos {
display: flex;
align-items: center;
justify-content: flex-start;
}
.demo-color-combo {
width: 250px;
padding: 1rem;
border-radius: 4px;
display: inline-flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin-right: 8px;
}
#light-on-bg {
background-color: #3e82f7;
}
#light-on-bg .mdc-icon-toggle {
@include mdc-icon-toggle-ink-color(white);
@include mdc-states-base-color(white);
@include mdc-states-hover-opacity(.1);
@include mdc-states-focus-opacity(.3);
@include mdc-states-press-opacity(.4);
}
#dark-on-bg {
background-color: #00bcd6;
}
#dark-on-bg .mdc-icon-toggle {
@include mdc-icon-toggle-ink-color(black);
@include mdc-states(black);
}
#custom-color-combo .mdc-icon-toggle {
@include mdc-icon-toggle-ink-color(#de442c);
@include mdc-states-base-color(#de442c);
@include mdc-states-hover-opacity(.09);
@include mdc-states-focus-opacity(.26);
@include mdc-states-press-opacity(.35);
}