This repository was archived by the owner on Sep 19, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +87
-64
lines changed Expand file tree Collapse file tree 6 files changed +87
-64
lines changed Original file line number Diff line number Diff line change 1
- .grid {
2
- padding : 5px ;
3
- overflow : hidden ;
4
-
5
- a {
6
- color : $primary-color ;
7
-
8
- figure {
9
- position : relative ;
10
- overflow : hidden ;
11
- background : $white ;
12
- height : 250px ;
13
- width : 100% ;
14
- margin : 0 auto ;
15
- border : 1px solid $primary-color ;
16
-
17
- img {
18
- display : block ;
1
+ .ne-wrapper {
2
+ margin : 0 auto ;
3
+ padding : 20px 5px ;
4
+
5
+ .ne-box {
6
+ display : inline-block ;
7
+ background : $very-light-gray ;
8
+ position : relative ;
9
+ height : 240px ;
10
+ padding : 5px ;
11
+ border : solid 5px $white ;
12
+ transition : all 0.5s ease-in-out ;
13
+
14
+ & :hover {
15
+ background : $whitesmoke ;
16
+ }
17
+
18
+ a {
19
+ color : $primary-color ;
20
+
21
+ .box-inner {
22
+ padding : 5px ;
23
+ left :0 ;
19
24
position : relative ;
20
- width : 100% ;
21
- z-index : 9 ;
22
- -webkit-filter : grayscale (0.5 );
23
- -moz-filter : grayscale (0.5 );
24
- filter : grayscale (0.5 );
25
- opacity : 0.7 ;
25
+ width : 50% ;
26
+ height : 30% ;
27
+ overflow : hidden ;
28
+
29
+ img {
30
+ display : block ;
31
+ position : relative ;
32
+ width : 100% ;
33
+ z-index : 9 ;
34
+ -webkit-filter : grayscale (0.5 );
35
+ -moz-filter : grayscale (0.5 );
36
+ filter : grayscale (0.5 );
37
+ }
26
38
}
27
39
28
- .caption-description {
29
- position : absolute ;
30
- padding : 10px ;
31
- top : 40% ;
32
- z-index : 10 ;
33
- width : 100% ;
34
- height : 60% ;
35
- background : $whitesmoke ;
36
- border-top : 1px solid $primary-color ;
40
+ .ne-description {
41
+ position : relative ;
42
+ margin : 10px 5px 5px 5px ;
43
+ padding : 0 5px ;
44
+ background : white ;
45
+ height : 140px ;
46
+ overflow : hidden ;
37
47
38
48
h4 {
39
- margin : 5px ;
49
+ margin : 5px 5 px 0 5 px ;
40
50
padding-top : 5px ;
41
51
color : $primary-color ;
52
+ font-size : 16px ;
42
53
text-transform : uppercase ;
43
- backface-visibility : hidden ;
44
54
}
45
55
46
56
span {
47
57
margin : 0 5px ;
48
58
display : inline-block ;
49
- backface-visibility : hidden ;
50
59
font-size : 12px ;
51
60
}
52
61
57
66
overflow : hidden ;
58
67
color : $aluminum ;
59
68
}
60
- }
69
+ }
61
70
}
62
71
}
63
72
}
73
+
74
+
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ SCOREBOARD STYLES
6
6
display : block ;
7
7
position : relative ;
8
8
z-index : 999 ;
9
- padding-left : 0 ;
9
+ padding : 0 25 px ;
10
10
overflow : visible ;
11
11
12
12
.one-row {
@@ -17,8 +17,8 @@ SCOREBOARD STYLES
17
17
18
18
.sb-box {
19
19
display : table-cell ;
20
- border : solid white 4 px ;
21
- background : $silver ;
20
+ border : solid white 5 px ;
21
+ background : $light-gray ;
22
22
position : relative ;
23
23
list-style :none ;
24
24
height : 160px ;
@@ -55,23 +55,28 @@ SCOREBOARD STYLES
55
55
56
56
.box-inner {
57
57
top : 25% ;
58
- padding : 0 25px ;
58
+ padding : 0 15 px 0 25px ;
59
59
position : relative ;
60
60
}
61
61
62
62
.country-name {
63
63
display : block ;
64
64
position : relative ;
65
- font-size : 20 px ;
65
+ font-size : 16 px ;
66
66
padding-top : 10px ;
67
67
}
68
68
69
+ p {
70
+ font-size : 12px ;
71
+ margin : 0 0 5px ;
72
+ }
73
+
69
74
a {
70
75
display : inline-block ;
71
76
72
77
.event-number {
73
78
position : relative ;
74
- font-size : 18 px ;
79
+ font-size : 16 px ;
75
80
left : 0 ;
76
81
display : block ;
77
82
text-decoration : none ;
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ $whitesmoke: #f5f5f5;
12
12
$brand-primary : #428BCA ;
13
13
$golden : #FCD04B ;
14
14
$bronze : #cd7f32 ;
15
+ $very-light-gray : #e8e8e8 ;
16
+ $light-gray : #dbdbdb ;
15
17
16
18
$dark-blue : #478ac8 ;// #198182;
17
19
$light-blue : #386ea0 ;// lighten(#386ea0, 20%);//#26BCBB;
Original file line number Diff line number Diff line change 1
1
{% load static %}
2
- < div class ="col-md-3 col-sm-6 grid ">
2
+
3
+ < div class ="col-md-3 col-sm-6 col-xs-12 ne-box ">
3
4
< a href ="{% url 'web.view_event' event.id event.slug %} ">
4
- < figure >
5
- {% if event.picture %}
5
+ < div class =" box-inner " >
6
+ {% if event.picture %}
6
7
< img src ="{{ event.picture.url }} " alt ="{{ event.title }} Image ">
7
8
{% else %}
8
9
< img src ="{% static 'img/event_default_picture.png' %} " alt ="{{ event.title }} Image ">
9
10
{% endif %}
10
-
11
- < div class ="caption-description ">
12
- < h4 > {{ event.title }}</ h4 >
13
- < span > {{ event.start_date|date:"F j, Y" }}</ span > < p > {{ event.description|truncatewords:12 }}</ p > </ div >
14
- </ figure >
11
+ </ div >
12
+ < div class ="ne-description ">
13
+ < h4 > {{ event.title }}</ h4 >
14
+ < span > {{ event.start_date|date:"F j, Y" }}</ span >
15
+ < p > {{ event.description|truncatewords:10 }}</ p >
16
+ </ div >
15
17
</ a >
16
18
</ div >
19
+
Original file line number Diff line number Diff line change 7
7
< h1 > #codeEU Events Scoreboard</ h1 >
8
8
< p > Which countries in Europe are buzzing with coding activity? The scoreboard is sorted by the number of listed coding events per population, so don't be surprised to see some of the smaller countries higher up on the list!</ p >
9
9
< div class ="sb-wrapper ">
10
- < ol class ="one-row ">
10
+ < ol class ="one-row ">
11
11
{% for country in counts %}
12
- < li class ="col-md-3 col-sm-4 col-xs-10 col-xs-offset-1 col-sm-offset-0 col-md-offset-0 sb-box ">
12
+ < li class ="col-md-3 col-sm-4 col-xs-12 sb-box ">
13
13
< img src ="/static/flags/{{ country.country_code|lower }}.png " alt ="{{ country.country_name }} " />
14
14
< div class ="box-inner ">
15
- < span class ="country-name "> {{ country.country_name }}</ span > < p > is participating with </ p >
16
- < a href ="{% url 'web.search_events' %}?country_code={{ country.country_code }}&past=yes ">
17
- < span class ="event-number "> {{ country.events }} event{% if country.events != 1 %}s{% endif %}</ span > </ a >
15
+ < span class ="country-name "> {{ country.country_name }}</ span > < p > is participating with </ p >
16
+ < a href ="{% url 'web.search_events' %}?country_code={{ country.country_code }}&past=yes ">
17
+ < span class ="event-number "> {{ country.events }} event{% if country.events != 1 %}s{% endif %}</ span > </ a >
18
18
</ div >
19
19
</ li >
20
20
{% endfor %}
21
- </ ol >
21
+ </ ol >
22
22
</ div >
23
23
</ div >
24
24
{% endblock content %}
Original file line number Diff line number Diff line change @@ -201,16 +201,18 @@ <h1>{{ event.title }}</h1>
201
201
< div id ="view-event-map "> </ div >
202
202
</ div >
203
203
</ div >
204
- < div class ="col-md-12 first ">
204
+ < div class ="col-md-12 ">
205
205
< hr >
206
206
</ div >
207
207
{% if nearby %}
208
- < div class ="col-md-12 first ">
209
- < h3 > Nearby events:</ h3 >
210
- {% for event in nearby %}
211
- {% include 'layout/near_event_tile.html' %}
212
- {% endfor %}
213
- </ div >
208
+ < div class ="col-md-12 ">
209
+ < h3 > Nearby events:</ h3 >
210
+ < div class ="container-fluid ne-wrapper ">
211
+ {% for event in nearby %}
212
+ {% include 'layout/near_event_tile.html' %}
213
+ {% endfor %}
214
+ </ div >
215
+ </ div >
214
216
{% endif %}
215
217
</ div >
216
218
{% endblock content %}
You can’t perform that action at this time.
0 commit comments