File size: 1,129 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
// New Posts Notice
// Slides in when there are new posts available
.reader-update-notice {
	position: fixed;
	right: 16px;
	top: calc(var(--masterbar-height) + 16px);
	background: color-mix(in srgb, var(--color-accent) 96%, transparent);
	padding: 8px 18px 8px 34px;
	border-radius: 24px; /* stylelint-disable-line scales/radii */
	color: var(--color-text-inverted);
	z-index: z-index("root", ".reader-update-notice");
	margin: 0;
	box-sizing: border-box;
	opacity: 0;
	transform: translateY(-100px);
	pointer-events: none;
	transition: background 0.15s ease-in-out, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	font-size: $font-body;

	@media (min-width: 600px) {
		top: calc(var(--masterbar-height) + (24px * 2));
		right: calc(24px* 2);
	}

	@media (min-width: 782px) {
		top: calc(var(--masterbar-height) + 32px);
		right: 32px;
	}

	&:hover {
		background: var(--color-primary);
	}

	&.is-active {
		opacity: 1;
		transform: translateY(0);
		pointer-events: auto;
		cursor: pointer;
	}
}

.reader-update-notice .gridicon {
	fill: var(--studio-white);
	display: inline-block;
	position: absolute;
	left: 10px;
}