File tree Expand file tree Collapse file tree 4 files changed +34
-14
lines changed Expand file tree Collapse file tree 4 files changed +34
-14
lines changed Original file line number Diff line number Diff line change 1
1
<div local-class =" row" ...attributes>
2
2
<div >
3
- <LinkTo @route =" crate.version" @model ={{ @version.num }} >{{ @version.num }} </LinkTo >
3
+ <LinkTo
4
+ @route =" crate.version"
5
+ @model ={{ @version.num }}
6
+ local-class =" num-link"
7
+ >
8
+ {{ @version.num }}
9
+ </LinkTo >
4
10
5
11
<span local-class =" date" >{{ date-format @version.created_at ' PPP' }} </span >
6
12
{{ #if @version.yanked }}
9
15
</div >
10
16
11
17
{{ #if this.isOwner }}
12
- <YankButton @version ={{ @version }} />
13
- {{ else }}
14
- <LinkTo @route =" crate.version" @model ={{ @version.num }} local-class =" arrow" >
15
- {{ svg-jar " right-arrow" }}
16
- </LinkTo >
18
+ <YankButton @version ={{ @version }} local-class =" yank-button" />
17
19
{{ /if }}
18
20
</div >
Original file line number Diff line number Diff line change 2
2
display : flex;
3
3
justify-content : space-between;
4
4
flex-wrap : wrap;
5
- padding : 20px 0 ;
5
+ position : relative;
6
+ padding : 20px ;
7
+ transition : background-color 300ms ;
8
+
9
+ & : hover {
10
+ background-color : var (--grey200 );
11
+ transition : background-color 0ms ;
12
+ }
13
+ }
14
+
15
+ .num-link {
16
+ & ::after {
17
+ content : '' ;
18
+ position : absolute;
19
+ left : 0 ;
20
+ top : 0 ;
21
+ right : 0 ;
22
+ bottom : 0 ;
23
+ }
6
24
}
7
25
8
26
.date {
15
33
composes : yanked from '../../styles/shared/typography.module.css' ;
16
34
}
17
35
18
- .arrow {
19
- display : inline-block;
20
- float : right;
21
-
22
- svg {
23
- background : # EEECDD ;
24
- }
36
+ .yank-button {
37
+ position : relative;
25
38
}
Original file line number Diff line number Diff line change 1
1
: root {
2
2
--violet800 : hsl (252 , 44% , 24% );
3
3
--grey900 : hsl (200 , 15% , 19% );
4
+ --grey200 : hsl (200 , 17% , 96% );
4
5
--green800 : hsl (115 , 31% , 31% );
5
6
--yellow500 : hsl (44 , 100% , 60% );
6
7
Original file line number Diff line number Diff line change 20
20
}
21
21
}
22
22
}
23
+
24
+ .row {
25
+ margin : 0 -20px ;
26
+ }
You can’t perform that action at this time.
0 commit comments