Skip to content

Instantly share code, notes, and snippets.

@ymhuang0808
Last active November 21, 2017 14:39
Show Gist options
  • Save ymhuang0808/1383ac0301d95a976575c97af4927eff to your computer and use it in GitHub Desktop.
Save ymhuang0808/1383ac0301d95a976575c97af4927eff to your computer and use it in GitHub Desktop.
Main Templates
body {
padding-top: 54px;
}
@media (min-width: 992px) {
body {
padding-top: 56px;
}
}
/* Sticky footer styles
-------------------------------------------------- */
html {
position: relative;
min-height: 100%;
}
body {
/* Margin bottom by footer height */
margin-bottom: 60px;
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
/* Set the fixed height of the footer here */
height: 60px;
background-color: #f5f5f5;
}
/* Custom page CSS
-------------------------------------------------- */
/* Not required for template or sticky footer method. */
body > .container {
padding: 60px 15px 0;
}
.container .text-muted {
margin: 20px 0;
}
.footer > .container {
padding-right: 15px;
padding-left: 15px;
}
code {
font-size: 80%;
}
// Fonts
@import url("https://fonts.googleapis.com/css?family=Raleway:300,400,600");
// Variables
@import "variables";
// Bootstrap
@import "~bootstrap-sass/assets/stylesheets/bootstrap";
@import "blog_style";
<!DOCTYPE html>
<html lang="zh-TW">
<head>
<meta charset="utf-8">
<title><!-- 標題 --></title>
<link href="/css/app.css" rel="stylesheet">
</head>
<body>
<!-- header -->
<div class="container">
<div class="row">
<!-- 內容 -->
</div>
</div>
<!-- footer -->
</body>
</html>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Mur Mur 文章</a>
</div>
</div>
</nav>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment