Skip to content

Commit 9d47b38

Browse files
author
Matthew McCullough
committed
Video link type
1 parent 22e13ac commit 9d47b38

File tree

2 files changed

+34
-21
lines changed

2 files changed

+34
-21
lines changed

_stylesheets/workbook.css

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,22 +49,25 @@
4949
text-align: center;
5050
float: left; }
5151

52-
.booklink, .githublink {
53-
font: normal normal 32px octicons;
54-
display: inline-block;
55-
height: 1em;
56-
width: 1em;
57-
overflow: hidden;
58-
font-size: 16px;
59-
margin-left: 8px; }
52+
.booklink, .githublink, .weblink, .videolink {
53+
font: normal normal 1em octicons;
54+
text-decoration: none; }
6055

6156
.booklink:before {
6257
content: "\f007";
63-
line-height: 1; }
58+
margin-right: 5px; }
6459

6560
.githublink:before {
6661
content: "\f008";
67-
line-height: 1; }
62+
margin-right: 5px; }
63+
64+
.weblink:before {
65+
content: "\f0b6";
66+
margin-right: 5px; }
67+
68+
.videolink:before {
69+
content: "\f0b9";
70+
margin-right: 5px; }
6871

6972
h2 {
7073
padding-top: 15px; }

_stylesheets/workbook.scss

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,30 +99,40 @@
9999
}
100100
}
101101

102-
.booklink, .githublink{ //a[href*="github.com"]
103-
font: normal normal 32px octicons;
104-
display: inline-block;
105-
height: 1em;
106-
width: 1em;
107-
overflow: hidden;
108-
font-size: 16px;
109-
margin-left: 8px;
102+
.booklink, .githublink, .weblink, .videolink {
103+
font: normal normal 1em octicons;
104+
text-decoration: none;
110105
}
111106

112107
.booklink{
113108
&:before{
114109
content: "\f007";
115-
line-height: 1;
110+
margin-right: 5px;
116111
}
117112
}
118113

119-
.githublink{ //a[href*="github.com"],
114+
.githublink{
120115
&:before{
121116
content: "\f008";
122-
line-height: 1;
117+
margin-right: 5px;
118+
}
119+
}
120+
121+
.weblink{
122+
&:before{
123+
content: "\f0b6";
124+
margin-right: 5px;
123125
}
124126
}
125127

128+
.videolink{
129+
&:before{
130+
content: "\f0b9";
131+
margin-right: 5px;
132+
}
133+
}
134+
135+
126136
h2{
127137
padding-top: 15px;
128138
}

0 commit comments

Comments
 (0)