File tree Expand file tree Collapse file tree 3 files changed +24
-14
lines changed Expand file tree Collapse file tree 3 files changed +24
-14
lines changed Original file line number Diff line number Diff line change 1
- <UiAccordion >
2
- <div class =" title" {{ action ' hideSpeakerImage' }} role =" button" >
1
+ <UiAccordion class = " segment p-0 " style = {{ css background-color = @ session.track.color border-color = ' lightgray ' }} >
2
+ <div class =" title p-4 " {{ action ' hideSpeakerImage' }} role =" button" style = {{ css color = ( text-color @ session.track.color ) }} >
3
3
<div class =" ui" >
4
- <h3 class =" ui header" id =" session-id-{{ @session.id }} " >
4
+ <h3 class =" ui header" id =" session-id-{{ @session.id }} " style = {{ css color = ( text-color @ session.track.color ) }} >
5
5
{{ @session.title }}
6
- <div class =" sub header" >
6
+ <div class =" sub header" style = {{ css color = ( text-color @ session.track.color ) opacity = 0.6 }} >
7
7
{{ @session.sessionType.name }}
8
8
</div >
9
9
</h3 >
41
41
</div >
42
42
</div >
43
43
</div >
44
- <div class =" content" >
44
+ <div class =" content pt-0 p-4 rounded-t-none " style = {{ css background-color = ' white ' border-radius = ' 0.2rem ' }} >
45
45
{{ #each @session.speakers as |speaker |}}
46
46
<div class =" ui divider" ></div >
47
47
<img alt =" speaker" class =" ui tiny avatar image" src =" {{ if speaker.thumbnailImageUrl speaker.thumbnailImageUrl (if speaker.photoUrl speaker.photoUrl ' /images/placeholders/avatar.png' )}} " >
Original file line number Diff line number Diff line change 1
- import classic from 'ember-classic-decorator' ;
2
1
import { action } from '@ember/object' ;
3
- import { classNames } from '@ember-decorators/component' ;
4
- import Component from '@ember/component' ;
2
+ import Component from '@glimmer/component' ;
5
3
6
- @classic
7
- @classNames ( 'ui' , 'segment' )
8
4
export default class SessionItem extends Component {
9
5
hideImage = false ;
10
6
11
7
@action
12
8
hideSpeakerImage ( ) {
13
- this . toggleProperty ( ' hideImage' ) ;
14
- if ( ! this . session . speakers . length ) {
15
- this . set ( ' hideImage' , false ) ;
9
+ this . hideImage = ! this . hideImage ;
10
+ if ( ! this . args . session . speakers . length ) {
11
+ this . hideImage = false ;
16
12
}
17
13
}
18
14
}
Original file line number Diff line number Diff line change 19
19
}
20
20
21
21
.rounded-default {
22
- border-radius : .3 rem ;
22
+ border-radius : .28571429 rem ;
23
23
}
24
24
25
25
.rounded-none {
26
26
border-radius : 0 !important ;
27
27
}
28
28
29
+ .rounded-t-none {
30
+
31
+ border-top-left-radius : 0 !important ;
32
+ border-top-right-radius : 0 !important ;
33
+ }
34
+
29
35
.rounded-r-none {
30
36
border-bottom-right-radius : 0 !important ;
31
37
border-top-right-radius : 0 !important ;
36
42
border-top-left-radius : 0 !important ;
37
43
}
38
44
45
+ .p-0 {
46
+ padding : 0 !important ;
47
+ }
48
+
39
49
.p-4 {
40
50
padding : 1rem !important ;
41
51
}
42
52
53
+ .pt-0 {
54
+ padding-top : 0 !important ;
55
+ }
56
+
43
57
.mt-8 {
44
58
margin-top : 2rem ;
45
59
}
You can’t perform that action at this time.
0 commit comments