css fixes, add icons at bottom of page, fixes #71

This commit is contained in:
Lorin Werthen 2016-11-06 10:12:34 +01:00
parent 0e2afe07b6
commit 8501ab391b
No known key found for this signature in database
GPG key ID: F11FFC921E0E08E0
8 changed files with 180 additions and 145 deletions

View file

@ -1,9 +1,3 @@
.blogpost {
.blogtitle {
font-size: 4em;
}
}
#markdown-toc { #markdown-toc {
@extend .menu-list; @extend .menu-list;
@ -13,6 +7,7 @@
} }
} }
// Definition list is not defined in bulma
dl { dl {
dt { dt {
display: inline; display: inline;
@ -29,11 +24,6 @@ dl {
} }
} }
.padbox {
margin-bottom:10px;
border-radius: 0 !important;
}
.blogwidth{ .blogwidth{
width: 75%; width: 75%;
margin:auto; margin:auto;

View file

@ -1,12 +1,21 @@
// Small helper in bulma style
.has-text-justified { .has-text-justified {
text-align: justify; text-align: justify;
} }
// Override box styling without round corners
.box {
margin-bottom:10px;
border-radius: 0 !important;
}
// Add some hero attributes to make backgrounds prettier
.hero { .hero {
background-position: center; background-position: center;
background-size: cover; background-size: cover;
} }
// link borders are unnecessary
.content { .content {
a { a {
&:not(.button) { &:not(.button) {
@ -19,27 +28,21 @@
} }
} }
#navbar { footer .content a {
z-index: 100; &:not(.button) {
margin-bottom: 10px; color: $text-light;
.logo-wrapper { &:visited {
padding-bottom: 0; color: $text-light;
} }
.actual-nav-bar { &:hover {
padding: 0; color: $link-hover;
margin: 10px;
margin-bottom: 0;
border-bottom: 1px solid #eee;
} }
.nav-menu {
z-index: 20;
} }
} }
// Proper padding of these sections
header.section { header.section {
padding-bottom: 10px; padding-bottom: 10px;
} }
@ -48,60 +51,11 @@ main.section {
padding-top: 20px; padding-top: 20px;
} }
#navbar {
align-items: flex-end;
#inline-logo {
min-width: 38.703px;
}
#logo-link {
#logo {
padding-top: 10px;
padding-left: 10px;
width: 100px;
}
}
.nav {
height: 100%;
align-items: flex-end;
z-index: auto;
.nav-item {
transition: 0.2s;
font-variant: small-caps;
font-size: 1.15em;
&:hover {
transition: 0.2s;
}
&.social-icon {
padding-left: 5px;
padding-right: 5px;
}
&.is-tab {
border-bottom: 3px solid transparent;
border-top: 3px solid transparent;
&:hover, &.is-active {
border-bottom-color: $zeus-orange;
}
}
}
}
}
footer.footer { footer.footer {
padding-bottom: 40px; padding-bottom: 40px;
.fa {
vertical-align: inherit;
}
} }
// Cursor highlight color
::selection { ::selection {
color: white; color: white;
background: rgba(255, 127, 0, 0.99); background: rgba(255, 127, 0, 0.99);
@ -158,49 +112,6 @@ footer.footer {
} }
} }
#tipue_search_input {
background: none;
padding: 12px;
font: inherit;
color: inherit;
width: 40px;
border-color: rgba(0, 0, 0, 0);
display: flex;
flex-direction: row;
justify-content: inherit;
transition: all 0.5s;
input {
background: none;
border: none;
-moz-appearance: none;
-webkit-appearance: none;
box-shadow: none;
outline: 0;
margin: 0;
color: inherit;
}
&:hover, &:focus, &.focused {
width: 170px;
border: 1px solid #e2e2e2;
}
&::before {
font: normal normal normal 14px/1 FontAwesome;
content: "\f002 ";
color: inherit;
padding-right: 5px;
}
}
.fa { .fa {
vertical-align: baseline; vertical-align: baseline;
} }

View file

@ -0,0 +1,63 @@
#navbar {
align-items: flex-end;
z-index: 100;
margin-bottom: 10px;
.logo-wrapper {
padding-bottom: 0;
}
.nav-menu {
z-index: 20;
}
.actual-nav-bar {
padding: 0;
margin: 10px;
margin-bottom: 0;
border-bottom: 1px solid #eee;
}
#inline-logo {
min-width: 38.703px;
}
#logo-link {
#logo {
padding-top: 10px;
padding-left: 10px;
width: 100px;
}
}
.nav {
height: 100%;
align-items: flex-end;
z-index: auto;
.nav-item {
transition: 0.2s;
font-variant: small-caps;
font-size: 1.15em;
&:hover {
transition: 0.2s;
}
&.social-icon {
padding-left: 5px;
padding-right: 5px;
}
&.is-tab {
border-bottom: 3px solid transparent;
border-top: 3px solid transparent;
&:hover, &.is-active {
border-bottom-color: $zeus-orange;
}
}
}
}
}

View file

@ -0,0 +1,42 @@
#tipue_search_input {
background: none;
padding: 12px;
font: inherit;
color: inherit;
width: 40px;
border-color: rgba(0, 0, 0, 0);
display: flex;
flex-direction: row;
justify-content: inherit;
transition: all 0.5s;
input {
background: none;
border: none;
-moz-appearance: none;
-webkit-appearance: none;
box-shadow: none;
outline: 0;
margin: 0;
color: inherit;
}
&:hover, &:focus, &.focused {
width: 170px;
border: 1px solid #e2e2e2;
}
&::before {
font: normal normal normal 14px/1 FontAwesome;
content: "\f002 ";
color: inherit;
padding-right: 5px;
}
}

View file

@ -30,3 +30,5 @@ body.site {
@import "includes/eventpage"; @import "includes/eventpage";
@import "includes/404"; @import "includes/404";
@import "includes/projects"; @import "includes/projects";
@import "includes/navbar";
@import "includes/search";

View file

@ -21,6 +21,6 @@
</div> </div>
<div class="content is-medium"> <div class="content is-medium">
<%= yield %> <%= yield %>
</div>
</article> </article>
</div> </div>
</div>

View file

@ -1,6 +1,33 @@
<footer class="footer"> <footer class="footer">
<div class="container"> <div class="container">
<div class="content has-text-centered"> <div class="content has-text-centered">
<p class="is-hidden-tablet">
<a class="icon" href="https://github.com/ZeusWPI" target="_blank">
<span class="icon">
<%= fa :github %>
</span>
</a>
<a class="icon" href="https://www.facebook.com/zeus.wpi/" target="_blank">
<span class="icon">
<%= fa :facebook %>
</span>
</a>
<a class="icon" href="/feed.xml" target="_blank">
<span class="icon">
<%= fa :rss %>
</span>
</a>
<a class="icon" href="/ical.ics">
<span class="icon">
<%= fa :calendar %>
</span>
</a>
<a class="icon" href="//zeus.ugent.be/wiki">
<span class="icon">
<%= fa :'wikipedia-w' %>
</span>
</a>
</p>
<p> <p>
Made with <%= fa :heart %> by Zeus WPI Made with <%= fa :heart %> by Zeus WPI
</p> </p>

View file

@ -36,7 +36,7 @@
<span></span> <span></span>
</span> </span>
<div class="nav-right is-hidden-mobile social-icons"> <div class="nav-right is-hidden-mobile">
<a class="nav-item social-icon" href="https://github.com/ZeusWPI" target="_blank"> <a class="nav-item social-icon" href="https://github.com/ZeusWPI" target="_blank">
<span class="icon"> <span class="icon">
<%= fa :github %> <%= fa :github %>