File tree Expand file tree Collapse file tree 3 files changed +66
-24
lines changed Expand file tree Collapse file tree 3 files changed +66
-24
lines changed Original file line number Diff line number Diff line change 1
- < nav class ="locales ">
2
- <% [ :en , :es ] . each do |locale | %>
3
- <% url = locale == :en ? '/' : "/#{ locale } " %>
4
- <% css_class = "locales--link#{ ' -selected' if locale == I18n . locale } " %>
5
- <%= link_to locale . to_s . upcase , url , class : css_class %>
6
- <% end %>
7
- </ nav >
8
- < h1 class ="layout--title "> <%= t ( 'header.title' ) %> </ h1 >
9
- < p class ="layout--sub-title "> <%= t ( 'header.sub-title' ) %> </ p >
1
+ < header class ="layout--header ">
2
+ < nav class ="locales ">
3
+ <% [ :en , :es ] . each do |locale | %>
4
+ <% url = locale == :en ? '/' : "/#{ locale } " %>
5
+ <% css_class = "locales--link#{ ' -selected' if locale == I18n . locale } " %>
6
+ <%= link_to locale . to_s . upcase , url , class : css_class %>
7
+ <% end %>
8
+ </ nav >
9
+ < h1 class ="layout--title "> <%= t ( 'header.title' ) %> </ h1 >
10
+ < p class ="layout--sub-title "> <%= t ( 'header.sub-title' ) %> </ p >
11
+ </ header >
12
+
10
13
< section id ="code-of-conduct " class ="text ">
11
14
<%= partial 'code-of-conduct' %>
12
15
</ section >
16
+
13
17
< section id ="supporters " class ="supporters ">
14
18
< h2 class ="supporters--title "> <%= t ( 'supporters.title' ) %> </ h2 >
15
19
< p class ="supporters--sub-title "> <%= t ( 'supporters.sub-title' ) %> </ p >
Original file line number Diff line number Diff line change 13
13
font-family : " ff-meta-serif-web-pro" , " times new roman" , serif ;
14
14
font-size : 18px ;
15
15
line-height : 1.4 ;
16
- margin : 1em auto ;
17
- max-width : 900px ;
18
- width : 90% ;
16
+ margin : 0 ;
17
+ overflow-x : hidden ;
18
+ overflow-y : auto ;
19
+ position : relative ;
20
+ }
21
+
22
+ .layout--header {
23
+ background : black ;
24
+ color : white ;
25
+ padding : 1em 1em 0 ;
26
+ position : relative ;
27
+ z-index : 2 ;
28
+ & :after {
29
+ background : inherit ;
30
+ content : " " ;
31
+ display : block ;
32
+ margin : -5% -10% 5% ;
33
+ padding-top : 6% ;
34
+ position : relative ;
35
+ -webkit-transform : rotate (-3deg ) translateY (50% );
36
+ transform : rotate (-3deg ) translateY (50% );
37
+ z-index : -1 ;
38
+ }
19
39
}
20
40
21
41
.layout--title {
22
42
@extend %headline-font ;
23
- color : #333 ;
24
- font-size : 3rem ;
43
+ background : inline-image (" logo.svg" ) center top no-repeat ;
44
+ background-size : 9rem ;
45
+ font-size : 2rem ;
25
46
font-weight : 100 ;
26
- margin : 5rem 0 0 ;
47
+ margin : 3rem 0 0 ;
48
+ padding-top : 11rem ;
27
49
text-align : center ;
28
50
}
29
51
30
52
.layout--sub-title {
31
53
@extend %headline-font ;
32
- color : #888 ;
33
- font-size : 1rem ;
54
+ font-size : 0.75rem ;
34
55
letter-spacing : 1px ;
35
- margin : 0.25rem 0 1 rem ;
56
+ margin : 0.25rem 0 0 ;
36
57
text-align : center ;
37
58
38
59
& :before ,
39
60
& :after {
40
61
color : #ccc ;
41
- content : " · · · · " ;
62
+ content : " · · · " ;
42
63
@media all and (max-width : 570px ) {
43
64
display : none ;
44
65
}
65
86
}
66
87
67
88
& .-selected {
68
- background : black ;
69
- color : white ;
89
+ background : white ;
90
+ color : black ;
70
91
}
71
92
}
72
93
73
94
74
95
/// / TEXT ////
75
96
76
97
.text {
77
- border : #eee double ;
78
- border-width : 3px 0 ;
79
- margin : 3rem 0 ;
98
+ margin : auto ;
99
+ max-width : 900px ;
80
100
padding : 2rem 6rem ;
101
+ width : 90% ;
81
102
@media all and (max-width : 570px ) {
82
103
padding : 2rem 0.5rem ;
83
104
}
You can’t perform that action at this time.
0 commit comments