File tree 3 files changed +8
-7
lines changed
3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 7
7
#
8
8
9
9
10
-
11
10
# --- Site Settings ---
12
11
12
+ # Github url
13
+ github_url : https://github.com/CodingTrain/website
14
+
13
15
# The site's title.
14
16
title : The Coding Train // Code Repository
15
17
Original file line number Diff line number Diff line change 55
55
{% capture live_example_url %}/{{ page.collection }}{{ page.live_example | default: page.repository }}{% endcapture %}
56
56
57
57
< div class ="code-actions ">
58
- < a href ="{% if page.repository == false %}#{% else %}{{ site.github_download_prefix | append: site.github.repository_url | append: '/tree/' | append: site.github.source.branch | append: '/' | append: page.collection | append: page.repository }}{% endif %} " target ="blank " class ="{% if page.repository == false %}disabled{% endif %} "> Get the Code</ a >
58
+ < a href ="{% if page.repository == false %}#{% else %}{{ site.github_url | append: '/tree/master/' | append: page.collection | append: page.repository }}{% endif %} " target ="blank " class ="{% if page.repository == false %}disabled{% endif %} "> View Code</ a >
59
+ < a href ="{% if page.repository == false %}#{% else %}{{ site.github_download_prefix | append: site.github.repository_url | append: '/tree/' | append: site.github.source.branch | append: '/' | append: page.collection | append: page.repository }}{% endif %} " target ="blank " class ="{% if page.repository == false %}disabled{% endif %} "> Download Code</ a >
59
60
< a href ="{% if page.live_example == false %}#{% else %}{{ live_example_url | relative_url }}{% endif %} " target ="blank " class ="{% if page.live_example == false %}disabled{% endif %} "> Live Example</ a >
60
61
</ div >
61
62
Original file line number Diff line number Diff line change 16
16
> div
17
17
flex-basis : calc(50% - 2em )
18
18
margin : 2em 0
19
-
19
+
20
20
@media (max-width : $tablet-big )
21
21
flex-basis : auto
22
22
margin : 1em 0
45
45
@extend .cta-button
46
46
background : $ct-purple
47
47
color : #FFF
48
-
48
+
49
49
& .watch-all-videos
50
50
flex-grow : 2
51
51
margin : auto 0.5em
72
72
flex : 1
73
73
background : $ct-purple
74
74
color : #FFF
75
-
76
- & :first-child
77
- margin-right : 0.5em
75
+ margin-right : 0.5em
78
76
79
77
& .disabled
80
78
background : lighten ($ct-purple , 15% )
You can’t perform that action at this time.
0 commit comments