File size: 3,539 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
@import '@wordpress/base-styles/breakpoints';
@import '@automattic/components/src/styles/typography';
@import '@wordpress/base-styles/mixins';
@import '@wordpress/base-styles/variables';

$blueberry-color: #3858e9;

.hosting-dashboard-item-view__header {
	.hosting-dashboard-item-view__header-content {
		.hosting-dashboard-item-view__header-info {
			display: flex;
			flex-direction: row;
			flex-grow: 1;
			gap: 10px;
		}

		.hosting-dashboard-item-view__header-title-summary {
			word-wrap: anywhere;

			.hosting-dashboard-item-view__header-summary-link svg {
				padding: 0 0 2px 4px;
				vertical-align: middle;
			}

			.hosting-dashboard-item-view__header-env-data {
				padding-top: 6px;
				display: flex;
				gap: 16px;
				font-family: $font-sf-pro-text;
				font-size: rem( 14px );
				color: #101517;
				letter-spacing: -0.15px;

				.hosting-dashboard-item-view__header-env-data-item-link {
					color: $blueberry-color;
					font-size: inherit;
					padding: 0;
					height: auto;
					text-transform: capitalize;
				}
			}

			.hosting-dashboard-item-view__header-add-staging {
				text-decoration: none;

				&:hover {
					text-decoration: none;
				}

				&.components-button.has-icon {
					padding: 0 0 0 2px;
				}
			}
		}

		.hosting-dashboard-item-view__close,
		.item-view__close-button,
		.item-preview__admin-button {
			align-self: flex-start;
		}

		.item-view__close-button {
			margin-right: 15px;
		}

		&.hosting-dashboard-item-view__header-breadcrumbs {
			padding-top: 22px;
			padding-bottom: 22px;
		}
	}

	.hosting-dashboard-item-view__header-favicon {
		margin-inline-end: 12px;
	}

	@media ( min-width: $break-large ) {
		.hosting-dashboard-item-view__header-favicon {
			margin-inline-end: 24px;
			position: relative;
		}

		.hosting-dashboard-item-view__header-content {
			padding: 24px;
			display: flex;
			align-items: top;

			.hosting-dashboard-item-view__header-title-summary {
				flex-grow: 1;
				display: flex;
				flex-direction: column;

				.hosting-dashboard-item-view__header-title {
					@include heading-2x-large;
					color: var( --color-text-black );
					padding: 4px 0;
				}

				.hosting-dashboard-item-view__header-summary {
					.hosting-dashboard-item-view__header-summary-link {
						display: flex;
						gap: 2px;
						align-items: center;
						@include body-large;
						color: var( --color-accent-70 );
						width: fit-content;
						text-decoration: none;

						&:hover {
							color: var( --color-link-dark );
							text-decoration: underline;
						}

						&:focus {
							box-shadow: none;
							outline: thin dotted;
						}
					}

					> span {
						display: inline-flex;
						align-items: center;
						height: 24px;
					}
				}
			}
		}
	}

	@media ( max-width: $break-large ) {
		display: flex;
		padding: 24px 24px 8px;

		.hosting-dashboard-item-view__header-content {
			flex-grow: 1;
			display: flex;

			.hosting-dashboard-item-view__header-title-summary {
				flex-grow: 1;
				display: flex;
				flex-direction: column;

				.hosting-dashboard-item-view__header-title {
					@include heading-medium;
					color: var( --color-text-black );
					padding: 6px 0 4px 0;
				}

				.hosting-dashboard-item-view__header-summary {
					.hosting-dashboard-item-view__header-summary-link {
						display: flex;
						align-items: center;
						@include body-medium;
						color: var( --color-accent-70 );
						width: fit-content;
						text-decoration: none;

						&:focus {
							box-shadow: none;
						}
					}
				}
			}
		}
	}
}