Skip to content

Commit 570aa71

Browse files
committed
Update styles and fix other display issues
1 parent fa0fbf2 commit 570aa71

3 files changed

Lines changed: 43 additions & 13 deletions

File tree

_includes/youtube-embed.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{% if page.youtube_video_id %}
2-
{% if page.youtube_video_id_pre %}
3-
{{page.youtube_video_id_pre}}<br/>
4-
{% endif %}
5-
<iframe width="560" height="315" src="//www.youtube.com/embed/{{page.youtube_video_id}}?rel=0" frameborder="0" allowfullscreen="1"> </iframe>
2+
<iframe src="//www.youtube.com/embed/{{page.youtube_video_id}}?rel=0" frameborder="0" allowfullscreen="1" class="youtube-embed"> </iframe>
63
<br /><br />
74
{% endif %}

_layouts/project.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ <h3>
3636
</div><br />
3737
{% endif %}
3838
{% if page.programming_language %}
39+
<br />
3940
Written In {{page.programming_language}}<br />
4041
{% endif %}
4142
{% if page.author %}
42-
<br />Created By<br /><br />
43+
<br />Created By:<br /><br />
4344
{% assign author_card = page.author %}
4445
{% include author-card.html %}
4546
{% endif %}

stylesheets/styles.css

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -625,8 +625,8 @@ strong {
625625
}
626626

627627
.project-content-wrapper {
628-
width: 650px;
629-
width: calc(100% - 250px);
628+
width: 610px;
629+
width: calc(100% - 290px);
630630
display: inline;
631631
float: left;
632632
margin-right: 20px;
@@ -639,6 +639,28 @@ strong {
639639
text-align:center;
640640
margin-right: 20px;
641641
margin-left: 20px;
642+
margin-bottom: 20px;
643+
644+
padding: 20px;
645+
646+
background: #191919;
647+
-moz-border-radius: 2px;
648+
-webkit-border-radius: 2px;
649+
-o-border-radius: 2px;
650+
-ms-border-radius: 2px;
651+
-khtml-border-radius: 2px;
652+
border-radius: 2px;
653+
border: 1px solid #121212;
654+
-moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
655+
-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
656+
-o-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
657+
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
658+
659+
}
660+
661+
.project-sidebar h3 {
662+
border-bottom: none;
663+
color: #fff;
642664
}
643665

644666
.project-sidebar .button a {
@@ -819,12 +841,17 @@ dt {
819841
display: none;
820842
line-height: 50px;
821843
height: 50px;
822-
padding: 8px 6px;
844+
padding: 8px 0 8px 6px;
845+
opacity: 0.7;
823846

824847
cursor: pointer;
825848
float: right;
826849
}
827850

851+
.nav-menu:hover {
852+
opacity: 1;
853+
}
854+
828855
#header nav li.left {
829856
float: left;
830857
margin-right: 6px;
@@ -922,18 +949,18 @@ section #title p {
922949
.user-card {
923950
position: relative;
924951
min-height: 40px;
925-
background-color: #333333;
952+
background-color: #252525;
926953
font-family: "Helvetica", Arial, sans-serif;
927954
color: #fff;
928955
border-radius: 2px;
929956
text-align: center;
930957
font-weight: 100;
931958
padding: 5px;
932959

933-
-moz-box-shadow: 0px 3px 7px rgba(0, 0, 0, 0.7);
934-
-webkit-box-shadow: 0px 3px 7px rgba(0, 0, 0, 0.7);
935-
-o-box-shadow: 0px 3px 7px rgba(0, 0, 0, 0.7);
936-
box-shadow: 0px 3px 7px rgba(0, 0, 0, 0.7);
960+
-moz-box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.7);
961+
-webkit-box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.7);
962+
-o-box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.7);
963+
box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.7);
937964
}
938965

939966
.user-card .user-card-avatar {
@@ -978,6 +1005,11 @@ section #title p {
9781005
vertical-align: middle;
9791006
}
9801007

1008+
.youtube-embed {
1009+
width: 100%;
1010+
height: 300px;
1011+
}
1012+
9811013
@media print, screen and (max-width: 450px) {
9821014
#logo {
9831015
display: none;

0 commit comments

Comments
 (0)