Skip to content

Commit b3fb745

Browse files
committed
styles for tutorials list
1 parent 7be4903 commit b3fb745

File tree

4 files changed

+108
-11
lines changed

4 files changed

+108
-11
lines changed

cl-bunny/tutorials/index.html

+28-10
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,37 @@
1616
</div>
1717
</div>
1818

19-
<section class="content homepage">
19+
<section class="content tutorials">
2020
<div class="width">
21-
<div class="home-section-content cl-rabbit">
21+
<div class="home-section-content">
2222
<h1>Tutorials</h1>
2323

24-
<ol>
25-
<li><a href="tutorial-one-cl.html">Introduction</a></li>
26-
<li><a href="tutorial-two-cl.html">Work Queues</a></li>
27-
<li><a href="tutorial-three-cl.html">Publish/Subscribe</a></li>
28-
<li><a href="tutorial-four-cl.html">Routing</a></li>
29-
<li><a href="tutorial-five-cl.html">Topics</a></li>
30-
<li><a href="tutorial-six-cl.html">Remote procedure call (RPC)</li></a>
31-
</ol>
24+
<nav class="tutorials-list">
25+
<a href="tutorial-one-cl.html">
26+
<img src="http://i.imgur.com/VjRoMDS.png">
27+
<span>Introduction</span>
28+
</a>
29+
<a href="tutorial-two-cl.html">
30+
<img src="http://i.imgur.com/Tf7ltsH.png">
31+
<span>Work Queues</span>
32+
</a>
33+
<a href="tutorial-three-cl.html">
34+
<img src="http://i.imgur.com/T2dIpCt.png">
35+
<span>Publish/Subscribe</span>
36+
</a>
37+
<a href="tutorial-four-cl.html">
38+
<img src="http://i.imgur.com/WiZ2UuV.png">
39+
<span>Routing</span>
40+
</a>
41+
<a href="tutorial-five-cl.html">
42+
<img src="http://i.imgur.com/L02kpQt.png">
43+
<span>Topics
44+
</a>
45+
<a href="tutorial-six-cl.html">
46+
<img src="http://i.imgur.com/SwxhQcm.png">
47+
<span>Remote procedure call (RPC)</span>
48+
</a>
49+
</nav>
3250
</div>
3351
</div>
3452
</section>

style/style.css

+39
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

style/style.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

style/style.scss

+40
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ section.central{
112112
line-height: 30px;
113113
}
114114
}
115+
&.tutorials{
116+
padding: 50px 0;
117+
@include ffx;
118+
}
115119
}
116120

117121
.home-section{
@@ -139,6 +143,42 @@ section.central{
139143
}
140144
}
141145

146+
.tutorials-list{
147+
a{
148+
display: block;
149+
float: left;
150+
width: 32%;
151+
height: 200px;
152+
line-height: 130px;
153+
margin: 1% 0 0 1%;
154+
padding: 0 20px;
155+
position: relative;
156+
text-align: center;
157+
border: 5px solid #eee;
158+
@include box-sizing;
159+
160+
img{
161+
max-width: 100%;
162+
vertical-align: middle;
163+
}
164+
165+
span{
166+
position: absolute;
167+
bottom: 12px;
168+
left: 0;
169+
width: 100%;
170+
line-height: 30px;
171+
font-size: 24px;
172+
color: black;
173+
font-weight: bold;
174+
}
175+
176+
&:hover{
177+
border: 5px solid $color_main;
178+
}
179+
}
180+
}
181+
142182
footer{
143183
.width{
144184
width: 500px;

0 commit comments

Comments
 (0)