File tree Expand file tree Collapse file tree 3 files changed +52
-13
lines changed Expand file tree Collapse file tree 3 files changed +52
-13
lines changed Original file line number Diff line number Diff line change 27
27
}
28
28
}
29
29
30
- .AddonDescription ,
31
- .PermissionsCard {
32
- .Card-contents {
33
- border-radius : 0 ;
30
+ .AddonDescription {
31
+ .ShowMoreCard-contents {
32
+ // Keep in sync with `maxHeight` passed to the `ShowMoreCard` component in
33
+ // `Addon/index.js`
34
+ max-height : 172px ;
34
35
}
36
+ }
35
37
38
+ .PermissionsCard {
36
39
.ShowMoreCard-contents {
37
40
// Keep in sync with `maxHeight` passed to the `ShowMoreCard` component in
38
- // `Addon/index.js` and ` PermissionCard/index.js`.
41
+ // `PermissionCard/index.js`.
39
42
max-height : 300px ;
40
43
}
44
+ }
45
+
46
+ .AddonDescription ,
47
+ .PermissionsCard {
48
+ .Card-contents {
49
+ border-radius : 0 ;
50
+ }
41
51
42
52
& .ShowMoreCard--expanded .ShowMoreCard-contents {
43
53
max-height : none ;
Original file line number Diff line number Diff line change @@ -322,7 +322,7 @@ export class AddonBase extends React.Component {
322
322
className = { showMoreCardName }
323
323
header = { title }
324
324
id = { showMoreCardName }
325
- maxHeight = { 300 }
325
+ maxHeight = { 172 }
326
326
>
327
327
{ descriptionProps && Object . keys ( descriptionProps ) . length ? (
328
328
< div className = "AddonDescription-contents" { ...descriptionProps } />
@@ -547,9 +547,10 @@ export class AddonBase extends React.Component {
547
547
</ Card >
548
548
) : null }
549
549
550
- { this . renderAboutThisCard ( ) }
551
-
552
- { this . renderRatingsCard ( ) }
550
+ < Card className = "Addon-description-rating-card" >
551
+ { this . renderAboutThisCard ( ) }
552
+ { this . renderRatingsCard ( ) }
553
+ </ Card >
553
554
</ div >
554
555
555
556
< PermissionsCard version = { currentVersion } />
Original file line number Diff line number Diff line change 6
6
7
7
.Addon .Card {
8
8
margin-bottom : $padding-page ;
9
-
10
- @include respond-to (large ) {
11
- margin-bottom : $padding-page-l ;
12
- }
13
9
}
14
10
15
11
.Addon-icon-wrapper {
117
113
width : 100% ;
118
114
}
119
115
116
+ .Addon-description-rating-card > .Card-contents {
117
+ display : flex ;
118
+ flex-direction : column ;
119
+ padding : 0 ;
120
+ }
121
+
122
+ .Addon-description-rating-card .Addon-overall-rating {
123
+ margin-bottom : 0 ;
124
+
125
+ .Card-contents {
126
+ border-radius : 0 ;
127
+ }
128
+ }
129
+
120
130
// Details section with lots of grid stuff, on larger displays.
121
131
@include respond-to (large ) {
122
132
.Addon-screenshots {
143
153
.AddonMoreInfo dl {
144
154
column-count : 3 ;
145
155
}
156
+
157
+ .Addon-description-rating-card > .Card-contents {
158
+ flex-direction : row ;
159
+ }
160
+
161
+ .Addon-description-rating-card {
162
+ .AddonDescription ,
163
+ .Addon-overall-rating {
164
+ margin-bottom : 0 ;
165
+ width : 50% ;
166
+
167
+ .Card-contents ,
168
+ .Card-header ,
169
+ .Card-footer {
170
+ border-radius : 0 ;
171
+ }
172
+ }
173
+ }
146
174
}
147
175
148
176
.Addon-WrongPlatformWarning {
You can’t perform that action at this time.
0 commit comments