blob: e8a6cfcb80808ebec78096d98d3e278878d9c628 [file] [log] [blame]
avm9996306167752020-09-08 00:50:36 +02001.TWPT-badge {
2 width: calc(18/13*var(--icon-size, 16px));
3 height: calc(18/13*var(--icon-size, 16px));
4 border-radius: 50%;
5
6 display: flex;
7 flex-direction: row;
8 flex-wrap: wrap;
9 justify-content: center;
10 align-content: center;
11 align-items: center;
12
13 background-color: #009688;
14 color: #fff;
15 box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.22), 0 2px 2px 0 rgba(0, 0, 0, 0.12);
16
17 user-select: none;
18}
19
20.TWPT-badge .material-icon-i {
21 font-size: var(--icon-size, 16px);
22}
23
avm99963f5923962020-12-07 16:44:37 +010024.TWPT-btn--with-badge {
25 position: relative;
26 padding: 4px;
27 cursor: pointer;
28}
29
30.TWPT-btn--with-badge .content {
31 padding: 8px;
32}
33
34.TWPT-btn--with-badge .TWPT-badge {
35 --icon-size: 13px;
36 position: absolute;
37 bottom: 6px;
38 right: 5px;
39}
40
41.TWPT-dark-theme {
42 padding: 4px 8px!important;
43}
44
Adrià Vilanova Martínez1f652522021-10-14 00:23:23 +020045/* TODO(b/twpowertools/80): Remove this code. */
avm9996306167752020-09-08 00:50:36 +020046.TWPT-previous-posts {
47 display: flex;
48 flex-direction: row;
49 align-items: center;
50}
51
52.TWPT-previous-posts .TWPT-badge {
53 --icon-size: 18px;
54 margin-right: 8px;
55}
avm99963f5923962020-12-07 16:44:37 +010056
Adrià Vilanova Martínez1f652522021-10-14 00:23:23 +020057/* Unified profiles "previous posts" link badge */
58.TWPT-user-link .TWPT-badge {
59 display: inline-flex;
60 margin: 4px;
61}
62
63.TWPT-user-link {
64 text-decoration: none!important;
65}
66
67.TWPT-user-link:hover span {
68 text-decoration: underline!important;
69}
70
avm99963f5923962020-12-07 16:44:37 +010071.TWPT-dialog {
72 display: block!important;
73 width: 600px;
74 max-width: 100%;
75 padding: 16px 0;
76 background: white;
77 box-shadow: 0 24px 38px 3px rgba(0,0,0,.14), 0 9px 46px 8px rgba(0,0,0,.12), 0 11px 15px -7px rgba(0,0,0,.2);
78}
79
80.TWPT-dialog-header {
81 padding: 24px 24px 0;
82 width: 100%;
83 box-sizing: border-box;
84}
85
86.TWPT-dialog-header--title {
87 color: #202124;
88 font-family: 'Google Sans', sans-serif;
89 font-size: 22px;
90 font-weight: 400;
91 line-height: 24px;
92 margin-bottom: 4px;
93 text-align: center;
94}
95
96.TWPT-dialog-main {
97 font-size: 13px;
98 font-weight: 400;
99 color: rgba(0, 0, 0, .87);
100 overflow: auto;
101 padding: 0 24px;
102}
103
104.TWPT-dialog-footer {
105 padding: 0 24px;
106}
107
108.TWPT-dialog-footer.is-hidden {
109 display: none;
110}
111
112.TWPT-dialog-footer-btn {
113 display: inline-block;
114 float: right;
115 position: relative;
116 height: 36px;
117 min-width: 64px;
118 margin: 0 4px;
119 cursor: pointer;
120}
121
122.TWPT-dialog-footer-btn:hover::after {
123 content: "";
124 display: block;
125 position: absolute;
126 top: 0;
127 right: 0;
128 bottom: 0;
129 left: 0;
130 background-color: currentColor;
131 outline: 2px solid transparent;
132 opacity: .12;
133 border-radius: inherit;
134 pointer-events: none;
135}
136
137.TWPT-dialog-footer-btn:not(.is-disabled) {
138 color: #1a73e8!important;
139}
140
141.TWPT-dialog-footer-btn.is-disabled {
142 color: #5f6368!important;
143 cursor: not-allowed;
144}
145
146.TWPT-dialog-footer-btn--content {
147 line-height: 36px;
148 text-align: center;
149}
150
151.TWPT-log {
152 max-height: 300px;
153 padding: 0 8px;
154 margin-bottom: 8px;
155 overflow-y: auto;
156 background-color: #e0e0e0;
157}
158
159.TWPT-log-entry {
160 font-family: 'Roboto Mono', 'Courier New', monospace;
161}
162
163.TWPT-log-entry.TWPT-log-entry--error {
164 color: #ff1744;
165}
avm99963c93d6c72021-05-29 12:54:34 +0200166
167/*
168 * Fix for the headers' right controls so the dark theme switch has space and
169 * doesn't overlap the search bar.
170 **/
171.material-content > header .right-control {
172 width: auto!important;
173 max-width: 252px!important;
174}