File tree 1 file changed +60
-19
lines changed
1 file changed +60
-19
lines changed Original file line number Diff line number Diff line change 21
21
position : absolute;
22
22
bottom : 0 ;
23
23
}
24
- .episode-info {
25
- margin : 50px ;
26
- padding : 20px ;
27
- }
24
+
28
25
.episode-info h1 {
29
26
color : var (--primary-text-color );
30
- font-size : 40px ;
31
27
font-weight : 100 ;
32
28
margin-top : 10px ;
33
29
}
34
30
.episode-info h5 {
35
31
color : var (--secondary-text-color );
36
32
font-weight : 100 ;
37
33
margin-bottom : 0 ;
38
- margin-top : 40px ;
39
- }
40
- .episode-coverart {
41
- width : 120px ;
42
- height : 120px ;
43
34
}
35
+
44
36
.resources {
45
37
display : block;
46
38
}
47
39
.resources h3 {
48
40
font-weight : 100 ;
49
41
font-size : 20px ;
50
42
}
43
+ .resources paper-material {
44
+ margin : 0 ;
45
+ }
51
46
.resources paper-item {
52
- display : inline-block;
53
47
padding : 10px 20px ;
54
48
margin : 1px ;
55
49
color : var (--secondary-text-color );
56
50
}
57
51
.resources .item-title {
58
52
font-weight : 100 ;
59
53
font-size : 16sp ;
54
+ overflow : hidden;
55
+ text-overflow : ellipsis;
60
56
}
61
57
.resources .item-link {
62
58
font-weight : 100 ;
63
59
font-size : 14sp ;
60
+ overflow : hidden;
61
+ text-overflow : ellipsis;
64
62
}
65
63
.resources .item-link a {
66
64
color : var (--secondary-text-color );
67
65
}
66
+
67
+ @media all and (min-width : 0 ) and (max-width : 600px ) {
68
+ .resources paper-material {
69
+ width : auto;
70
+ display : block;
71
+ }
72
+ .episode-info {
73
+ margin : 20px ;
74
+ padding : 10px ;
75
+ }
76
+ .episode-coverart {
77
+ width : 80px ;
78
+ height : 80px ;
79
+ }
80
+ .episode-info h1 {
81
+ font-size : 30px ;
82
+ }
83
+ .episode-info h5 {
84
+ margin-top : 0 ;
85
+ }
86
+ }
87
+ @media all and (min-width : 601px ) {
88
+ .resources paper-material {
89
+ width : 49% ;
90
+ display : inline-block;
91
+ }
92
+ .episode-info {
93
+ margin : 50px ;
94
+ padding : 20px ;
95
+ }
96
+ .episode-coverart {
97
+ width : 120px ;
98
+ height : 120px ;
99
+ }
100
+ .episode-info h1 {
101
+ font-size : 40px ;
102
+ }
103
+ .episode-info h5 {
104
+ margin-top : 40px ;
105
+ }
106
+ }
107
+
68
108
</ style >
69
109
< template >
70
110
< iron-localstorage name ="content " value ="{{localstoragecontent}} "> </ iron-localstorage >
@@ -90,15 +130,16 @@ <h1 class="flex">{{content.title}}</h1>
90
130
< div >
91
131
< h3 > Resources</ h3 >
92
132
</ div >
93
- < div class ="flex layout horizontal ">
133
+ < div class ="block ">
94
134
< template is ="dom-repeat " items ="{{content.resources}} ">
95
-
96
- < paper-item class ="flex ">
97
- < paper-item-body two-line >
98
- < div class ="item-title "> {{item.title}}</ div >
99
- < div secondary class ="item-link "> < a href ="{{item.link}} "> {{item.link}}</ a > </ div >
100
- </ paper-item-body >
101
- </ paper-item >
135
+ < paper-material elevation ="1 ">
136
+ < paper-item >
137
+ < paper-item-body two-line >
138
+ < div class ="item-title "> {{item.title}}</ div >
139
+ < div secondary class ="item-link "> < a href ="{{item.link}} "> {{item.link}}</ a > </ div >
140
+ </ paper-item-body >
141
+ </ paper-item >
142
+ </ paper-material >
102
143
</ template >
103
144
</ div >
104
145
</ div >
You can’t perform that action at this time.
0 commit comments