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

$plugin-details-header-padding: 100px;
$mobile-icon-height: 175px;
$block-spacing: 24px;

.plugin-details-header__container {
	display: block;
	@extend %plugin-header;
}

.plugin-details-header__main-info {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	text-align: center;

	@include break-mobile {
		flex-wrap: nowrap;
		align-items: flex-start;
		justify-content: flex-start;
		text-align: initial;
	}

	.plugin-details-header__icon {
		@include break-mobile {
			width: 72px;
			height: 72px;
			margin-right: 20px;
			margin-bottom: 0;
		}
		border-radius: 4px;
		margin-bottom: 15px;
		width: $mobile-icon-height;
		height: $mobile-icon-height;
		flex-shrink: 0;
	}
}

.plugin-details-header__title-container {
	margin-top: 30px;

	@include break-mobile {
		margin-top: 0;
	}
}

.plugin-details-header__banner {
	padding-bottom: 34px;

	@include breakpoint-deprecated( "<960px" ) {
		display: none;
	}
}

.plugin-details-header__name {
	font-family: $brand-serif;
	font-size: $font-title-large;
	overflow-wrap: anywhere;
	line-height: 40px;
	color: var(--studio-gray-100);
}

.plugin-details-header__author {
	font-size: $font-body;
	color: var(--studio-gray-60);
}

.plugin-details-header__subtitle-separator {
	padding: 0 16px;
	color: #ddd;
	font-size: $font-body;
}

.plugin-details-header__description {
	font-size: $font-title-small;
	color: var(--studio-gray-80);
	padding: 24px 0;
}

.plugin-details-header__additional-info {
	display: flex;
	flex-wrap: wrap;

	.plugin-details-header__info {
		width: 25%;
		box-sizing: border-box;
		padding: 0;

		.plugin-details-header__number-reviews-link {
			font-size: $font-body-small;
		}

		@media screen and (max-width: 1280px) {
			width: 50%;
			padding-bottom: 12px;
		}
	}

	.plugin-details-header__info-title {
		font-size: $font-body-extra-small;
		font-weight: 400;
		color: var(--studio-gray-60);
	}

	.plugin-details-header__info-value {
		font-size: $font-body-small;
		color: var(--studio-gray-90);
	}
}

.plugin-details-header__tag-badge-container {
	margin-bottom: $block-spacing;
}

.plugin-details-header__tag-badge {
	margin-left: 8px;

	&:first-child {
		margin-left: 0;
	}

	.badge {
		border-radius: 4px;
		text-transform: lowercase;
	}
}

.is-placeholder {
	.plugin-details-header__name,
	.plugin-details-header__description,
	.plugin-details-header__additional-info {
		@extend %placeholder;
	}

	.plugin-details-header__tags {
		@extend %placeholder;
		width: 50%;
	}
}