File size: 2,025 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
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
@import "@wordpress/base-styles/breakpoints";
@import "@wordpress/base-styles/mixins";

.preview-toolbar__toolbar {
	// Move spinner to the bottom of browser header
	& ~ hr.spinner-line {
		width: calc(100% - 1px);
		top: 16px;
		left: 50%;
		transform: translateX(-50%);

		@include break-small {
			top: 82px;
		}
	}

	.preview-toolbar__browser-header,
	& ~ hr.spinner-line {
		.is-tablet & {
			max-width: 783px;
		}

		.is-phone & {
			max-width: 460px;
		}
	}
}

.preview-toolbar__devices {
	display: flex;
	justify-content: center;
	margin-bottom: 25px;
}

// Need the extra specificity here to override core
.button.preview-toolbar__button {
	height: auto;
	margin: 0 9px;
	transition: color 0.1s ease-in-out;

	svg {
		color: var(--studio-gray-10);
		fill: currentColor;
	}

	&.is-selected,
	&:hover,
	&:focus {
		svg {
			color: var(--studio-black);
		}
	}
}

.preview-toolbar__browser-header {
	position: relative;
	max-width: 100%;
	height: 40px;
	margin: 0 auto;
	transition: max-width 0.2s ease-out;

	svg {
		position: absolute;
		left: 20px;
		top: 50%;
		transform: translateY(-50%);
		fill: rgba(0, 0, 0, 0.12);
	}
}

.preview-toolbar__browser-header-content {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 100%;
	height: 100%;
	background-color: #fff;
	z-index: 1;

	&::before {
		content: "";
		position: absolute;
		width: 100%;
		height: 100%;
		border: 1px solid rgba(0, 0, 0, 0.12);
		/* stylelint-disable-next-line scales/radii */
		border-radius: 6px 6px 0 0;
		box-sizing: content-box;
	}
}

.preview-toolbar__browser-url {
	display: none;
	width: 60%;
	height: 24px;
	line-height: 24px;
	padding: 0 8px;
	border-radius: 8px; /* stylelint-disable-line scales/radii */
	color: #000;
	background: #f6f6f7;
	font-size: $font-body-extra-small;
	font-weight: normal;
	text-align: center;
	cursor: default;
	overflow: hidden;
	text-overflow: ellipsis;

	&::before {
		content: "https://";
		color: #8c8f94;
	}

	@include break-small {
		display: block;
	}
}