File tree Expand file tree Collapse file tree 2 files changed +28
-22
lines changed Expand file tree Collapse file tree 2 files changed +28
-22
lines changed Original file line number Diff line number Diff line change 24
24
</div >
25
25
<div local-class =' stats' >
26
26
<div local-class =' downloads' data-test-downloads>
27
- {{ svg-jar " download" }}
27
+ {{ svg-jar " download" local-class = " download-icon " }}
28
28
<span ><abbr title =" Total number of downloads" >All-Time:</abbr > {{ format-num @crate.downloads }} </span >
29
29
</div >
30
30
<div local-class =" recent-downloads" data-test-recent-downloads>
31
- {{ svg-jar " download" }}
31
+ {{ svg-jar " download" local-class = " download-icon " }}
32
32
<span ><abbr title =" Downloads in the last 90 days" >Recent:</abbr > {{ format-num @crate.recent_downloads }} </span >
33
33
</div >
34
34
<div local-class =" updated-at" >
Original file line number Diff line number Diff line change 3
3
4
4
display : flex;
5
5
flex-wrap : wrap;
6
- padding : 15 px 25 px ;
6
+ padding : var ( --space-s-m ) var ( --space-m-l ) ;
7
7
background-color : white;
8
- border-radius : 5 px ;
8
+ border-radius : var ( --space-3xs ) ;
9
9
box-shadow : var (--shadow );
10
10
}
11
11
12
12
.description-box {
13
- padding-top : 5px ;
14
13
display : flex;
15
14
flex-direction : column;
16
15
width : 70% ;
25
24
}
26
25
27
26
.version {
28
- margin-left : 10 px ;
27
+ margin-left : var ( --space-2xs ) ;
29
28
}
30
29
31
30
.copy-button {
32
31
composes : button-reset from '../styles/shared/buttons.module.css' ;
33
- padding : 1 px 6 px ;
32
+ padding : 0 var ( --space-2xs ) ;
34
33
color : var (--main-color );
35
34
cursor : pointer;
36
35
opacity : 0 ;
54
53
55
54
.description {
56
55
composes : small from '../styles/shared/typography.module.css' ;
57
- margin-top : 8px ;
56
+ margin-top : var (--space-xs );
57
+ line-height : 1.5 ;
58
58
}
59
59
60
60
.stats {
61
61
width : 30% ;
62
62
color : var (--main-color-light );
63
+
64
+ > * + * {
65
+ margin-top : var (--space-xs );
66
+ }
67
+
68
+ svg {
69
+ height : 1em ;
70
+ width : 1em ;
71
+ margin-right : var (--space-xs );
72
+
73
+ & .download-icon {
74
+ height : calc (1em + 20px );
75
+ width : calc (1em + 20px );
76
+ margin : -10px ;
77
+ margin-right : calc (var (--space-xs ) - 10px );
78
+ }
79
+ }
63
80
}
64
81
65
82
.downloads {
66
83
display : flex;
67
84
align-items : center;
68
- padding-bottom : 5px ;
69
85
}
70
86
71
87
.recent-downloads {
74
90
}
75
91
76
92
.updated-at {
77
- padding-top : 5px ;
78
93
display : flex;
79
94
align-items : center;
80
-
81
- svg {
82
- padding : 10px ;
83
- }
84
95
}
85
96
86
97
ul .quick-links {
@@ -90,15 +101,10 @@ ul.quick-links {
90
101
91
102
font-size : 80% ;
92
103
list-style-type : none;
93
- margin : 1 em 0 0 0 ;
104
+ margin : var ( --space-xs ) 0 0 0 ;
94
105
padding : 0 ;
95
106
96
-
97
- li {
98
- margin-right : 1em ;
99
-
100
- & : last-child {
101
- margin-right : 0 ;
102
- }
107
+ > * + * {
108
+ margin-left : var (--space-xs );
103
109
}
104
110
}
You can’t perform that action at this time.
0 commit comments