Skip to content

Commit 8ceacbd

Browse files
authored
Update style of the add-on header in the detail page (#13842)
1 parent 08f25d8 commit 8ceacbd

File tree

1 file changed

+61
-43
lines changed

1 file changed

+61
-43
lines changed

src/amo/pages/Addon/styles.scss

Lines changed: 61 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@
99
}
1010

1111
.Addon-icon-wrapper {
12-
height: 48px;
12+
height: 40px;
1313
overflow: hidden;
14-
width: 48px;
14+
width: 40px;
1515

16-
@include respond-to(medium) {
16+
@include respond-to(large) {
17+
height: 48px;
18+
width: 48px;
19+
}
20+
21+
@include respond-to(extraLarge) {
1722
height: 64px;
18-
overflow: hidden;
1923
width: 64px;
2024
}
2125
}
@@ -25,7 +29,7 @@
2529
width: 100%;
2630
}
2731

28-
.Addon-warnings {
32+
.Addon-warnings *:last-child {
2933
margin-bottom: 16px;
3034
}
3135

@@ -45,49 +49,17 @@
4549
margin: 0;
4650
padding: 0;
4751
}
52+
53+
& > .Card-contents {
54+
padding: 32px 24px;
55+
}
4856
}
4957

5058
.Addon-header {
59+
column-gap: 0;
5160
display: flex;
5261
flex-direction: column;
53-
row-gap: 14px;
54-
column-gap: 0;
55-
56-
@include respond-to(medium) {
57-
display: grid;
58-
59-
// stylelint-disable-next-line named-grid-areas-no-invalid
60-
grid-template:
61-
'theme theme theme' auto
62-
'icon info info' auto
63-
'. badge badge' auto
64-
'. . install' auto / auto 1fr 1fr;
65-
}
66-
67-
@include respond-to(large) {
68-
grid-template:
69-
'theme theme theme theme theme' auto
70-
'icon info info info info' auto
71-
'. badge badge . . ' auto
72-
'. badge badge . install' auto / min-content 1fr 1fr 1fr 1fr;
73-
}
74-
75-
@include respond-to(extraLarge) {
76-
grid-template:
77-
'theme theme theme theme theme . install' auto
78-
'icon info info info info . install' auto
79-
'. badge badge badge badge badge badge' auto / min-content 1fr 1fr 1fr 1fr 1fr 1fr;
80-
}
81-
82-
@include respond-to(extraExtraLarge) {
83-
column-gap: 0;
84-
// stylelint-disable named-grid-areas-no-invalid
85-
grid-template:
86-
'theme theme theme theme install install' auto
87-
'icon info info info . install' auto
88-
'. badge badge badge badge badge' auto / min-content 1fr 1fr 1fr 1fr 1fr;
89-
// stylelint-enable named-grid-areas-no-invalid
90-
}
62+
row-gap: 8px;
9163

9264
& .Addon-theme-thumbnail {
9365
grid-area: theme;
@@ -108,6 +80,52 @@
10880

10981
& .Addon-install {
11082
grid-area: install;
83+
margin-top: 16px;
84+
}
85+
86+
@include respond-to(large) {
87+
column-gap: 16px;
88+
display: grid;
89+
grid-template:
90+
'icon info' auto
91+
'. badge' auto
92+
'. install' auto
93+
/ 48px auto;
94+
row-gap: 16px;
95+
96+
.Addon-theme & {
97+
grid-template:
98+
'theme' auto
99+
'info' auto
100+
'badge' auto
101+
'install' auto;
102+
}
103+
104+
& .Addon-install {
105+
justify-self: end;
106+
107+
.InstallButtonWrapper {
108+
width: 320px;
109+
}
110+
}
111+
}
112+
113+
@include respond-to(extraLarge) {
114+
grid-template:
115+
'icon info install' auto
116+
'. badge .' auto
117+
/ 64px auto;
118+
119+
.Addon-theme & {
120+
grid-template:
121+
'theme install' auto
122+
'info .' auto
123+
'badge .' auto;
124+
}
125+
126+
& .Addon-install {
127+
margin-top: 0;
128+
}
111129
}
112130
}
113131

0 commit comments

Comments
 (0)