Skip to content

Commit b0aaf01

Browse files
committed
removed *so many* borders, styled programs page
1 parent c927b68 commit b0aaf01

2 files changed

Lines changed: 53 additions & 0 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
.programs {
2+
3+
margin-bottom: 2em;
4+
.heading {
5+
@include clearfix;
6+
padding: 0.75em;
7+
background: $green;
8+
9+
h3, .description {
10+
color: white;
11+
}
12+
13+
h3 {
14+
float: left;
15+
margin-bottom: 0;
16+
margin-right: 1em;
17+
}
18+
.description {
19+
float: left;
20+
margin-top: 0.2em;
21+
}
22+
}
23+
24+
25+
ul {
26+
@include clearfix;
27+
margin: 0;
28+
padding-top: 1em;
29+
30+
li {
31+
@include columns(4);
32+
padding: 0.75em 0;
33+
border-top: 1px solid #ddd;
34+
}
35+
li:nth-child(4n) {
36+
margin-right: 0;
37+
}
38+
li:nth-child(4n+1) {
39+
clear: both;
40+
}
41+
}
42+
}
43+
44+
#featured {
45+
.heading {
46+
background: $orangered;
47+
}
48+
}

app/helpers/programs_helper.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module ProgramsHelper
2+
def program_link program_name, program_slug, username
3+
"#{link_to(program_name, user_program_path(username, program_slug))} by #{link_to(username, user_path(username))}".html_safe
4+
end
5+
end

0 commit comments

Comments
 (0)