File tree Expand file tree Collapse file tree 3 files changed +76
-62
lines changed Expand file tree Collapse file tree 3 files changed +76
-62
lines changed Original file line number Diff line number Diff line change 1
1
.logo {
2
- background : url ('logo.png' );
3
- height : 7 em ;
4
- margin-top : 1 em ;
5
- margin-bottom : 1 em ;
6
- width : 100 % ;
7
- background-position : right ;
8
- background-repeat : no-repeat ;
9
- background-size : cover ;
10
- position : relative ;
2
+ background : url ('logo.png' );
3
+ background-position : right ;
4
+ background-repeat : no-repeat ;
5
+ background-size : cover ;
6
+ height : 7 em ;
7
+ margin-bottom : 1 em ;
8
+ margin-top : 1 em ;
9
+ position : relative ;
10
+ width : 100 % ;
11
11
}
12
12
13
13
.recent-list {
14
- list-style-type : none;
15
- padding-left : 0 ;
14
+ list-style-type : none;
15
+ padding-left : 0 ;
16
16
}
17
17
.recent-list li {
18
18
padding-bottom : 5px ;
19
19
}
20
20
21
21
# appTitle {
22
- color : white;
23
- text-align : center ;
24
- font-size : 3 em ;
25
- white-space : nowrap ;
26
- overflow : hidden ;
22
+ color : white;
23
+ font-size : 3 em ;
24
+ overflow : hidden ;
25
+ text-align : center ;
26
+ white-space : nowrap ;
27
27
}
28
28
29
29
@media screen and (max-width : 500px ) {
30
- # appTitle {
31
- color : white;
32
- text-align : left ;
33
- font-size : 1.5 em ;
34
- padding-top : 13 px ;
35
- padding-left : 0 ;
36
- margin-left : 0 ;
37
- white-space : nowrap ;
38
- overflow : hidden ;
39
- }
30
+ # appTitle {
31
+ color : white;
32
+ font-size : 1.5 em ;
33
+ margin-left : 0 ;
34
+ overflow : hidden ;
35
+ padding-left : 0 ;
36
+ padding-top : 13 px ;
37
+ text-align : left ;
38
+ white-space : nowrap ;
39
+ }
40
40
}
41
41
42
42
.resultContainer {
43
43
margin-top : 1em ;
44
44
overflow : hidden;
45
45
}
46
46
47
+ .faded {
48
+ opacity : 0.5 ;
49
+ }
50
+
47
51
.itemImg {
48
- margin-left : -3 vw ;
49
- width : 300 % ;
50
- font-size : 11 vw ;
52
+ font-size : 11 vw ;
53
+ margin-left : -3 vw ;
54
+ width : 300 % ;
51
55
}
52
56
53
57
@media screen and (min-width : 500px ) {
54
- .itemImg {
55
- margin-left : 0 ;
56
- width : 100 % ;
57
- font-size : 9 vw ;
58
- }
58
+ .itemImg {
59
+ font-size : 9 vw ;
60
+ margin-left : 0 ;
61
+ width : 100 % ;
62
+ }
59
63
}
60
64
61
65
.itemTitle {
62
66
text-align : center;
63
67
}
64
68
65
69
.infoBox {
66
- display : flex;
67
- justify-content : space-between ;
68
- flex-wrap : wrap ;
70
+ display : flex;
71
+ flex-wrap : wrap ;
72
+ justify-content : space-between ;
69
73
}
70
74
71
75
article {
72
- border-radius : 3 px ;
73
- padding-top : 1 em ;
74
- padding -bottom: 1em ;
75
- margin -bottom: 1em ;
76
- background-color : whitesmoke ;
76
+ background-color : whitesmoke ;
77
+ border-radius : 3 px ;
78
+ margin -bottom: 1em ;
79
+ padding -bottom: 1em ;
80
+ padding-top : 1 em ;
77
81
}
78
82
79
83
.miniSearchItem {
80
- padding-top : 1em ;
81
84
padding-bottom : 1em ;
85
+ padding-top : 1em ;
82
86
}
83
87
.miniItemImg {
84
88
width : 100% ;
85
89
86
90
}
87
91
.searchResultList {
88
- list-style : none;
89
- padding : 0 ;
92
+ list-style : none;
93
+ padding : 0 ;
90
94
}
91
95
92
96
.stickers {
93
97
border : 1px dotted black;
94
98
font-size : 30% ;
95
- padding-top : 1em ;
96
99
padding-bottom : 1em ;
100
+ padding-top : 1em ;
97
101
}
Original file line number Diff line number Diff line change 4
4
<span > <a href =" /search?floor=<%- floor %>&room=<%- room %>&location=<%- location %>" > <% - location .toLowerCase () %> </a ></span > >
5
5
<span > <a href =" /search?fixture=<%- fixture %>" > <% - fixture .toLowerCase () %> </a ></span >
6
6
</div >
7
- <div class =" well col-xs-12" >
7
+ <% if (uuid) { % >
8
+ < div class = " well col-xs-12" >
9
+ < % } else { % >
10
+ < div class = " well faded col-xs-12" >
11
+ < % } %>
8
12
<div class =" col-xs-2" >
9
13
<% if (picture === undefined || picture === ' ' ) { % >
10
14
< img class = " itemImg" src= " noImg.png" / >
13
17
< % }%>
14
18
</div >
15
19
<div class =" itemTitle col-xs-8" >
16
- <h4 > <a href =" /<%- uuid %>" > <% - fixture .toUpperCase ().bold () %> </a > </h4 >
20
+ <% if (uuid) { % >
21
+ < h4> < a href= " /<%- uuid %>" > < %- fixture .toUpperCase ().bold () % > < / a> < / h4>
22
+ < % } else { % >
23
+ < h4> < %- fixture .toUpperCase ().bold () % > < / h4>
24
+ < % } %>
17
25
<span > <% - model .toLowerCase ().italics () %> </span >
18
26
</div >
19
27
<div class =" itemImg col-xs-2" >
Original file line number Diff line number Diff line change 1
1
<% if (HOWTO ) { % >
2
2
< article class = " well col-xs-12" >
3
3
< h2> How To< / h2>
4
- < div>
5
- < %- HOWTO % >
6
- < / div>
4
+ < %- HOWTO % >
7
5
< / article>
8
6
< % }%>
9
7
<% if (Troubleshooting) { % >
10
8
< article class = " well col-xs-12" >
11
9
< h2> Need Help< / h2>
12
- < div>
13
- < %- Troubleshooting % >
14
- < / div>
10
+ < %- Troubleshooting % >
15
11
< / article>
16
12
< % } %>
17
13
<% if ( similarItems .length > 0 ) { % >
18
14
< article class = " well col-xs-12" >
19
15
< h2> Similar Items< / h2>
20
- < div>
21
16
< % for (var i = 0 ; i < similarItems .length ; i++ ){ % >
22
17
< div class = ' miniSearchItem col-xs-4' >
23
- < % if (similarItems[i].picture === undefined || similarItems[i].picture === ' ' ) { % >
24
- < a href= " /<%- similarItems[i].uuid %>" > < img class = " miniItemImg" src= " noImg.png" / > < / a>
25
- < % }else { % >
26
- < a href= " /<%- similarItems[i].uuid %>" > < img class = " miniItemImg" src= " <%- similarItems[i].picture %> " / > < / a>
27
- < % }% >
28
- < / div>
18
+ < % if (! similarItems[i].picture ) { % >
19
+ < % if (! similarItems[i].uuid ) { % >
20
+ < img class = " miniItemImg faded" src= " noImg.png" / >
21
+ < % }else { % >
22
+ < a href= " /<%- similarItems[i].uuid %>" > < img class = " miniItemImg" src= " noImg.png" / > < / a>
23
+ < % }% >
24
+ < % } else { % >
25
+ < % if (! similarItems[i].uuid ) { % >
26
+ < img class = " miniItemImg faded" src= " <%- similarItems[i].picture %> " / >
27
+ < % }else { % >
28
+ < a href= " /<%- similarItems[i].uuid %>" > < img class = " miniItemImg" src= " <%- similarItems[i].picture %> " / > < / a>
29
+ < % } % >
30
+ < % } % >
31
+ < / div>
29
32
< % } % >
30
- < / div>
31
33
< / article>
32
34
< % }%>
33
35
<article class =" well col-xs-12" >
You can’t perform that action at this time.
0 commit comments