제타위키 디자인 초안 CSS
by JM note
HTML
<link rel='stylesheet' href='//cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css'>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css">
<div id="nav">
<div class="core">
<div class="left">
<div class="logo">
<a href="/"><img src='http://cdn.zetawiki.com/png/z-only.png' /></a>
</div>
<div class="search">
<form action="/w/index.php" id="searchform" class="mw-search">
<input type="search" name="search" placeholder="제타위키 검색" title="검색 [alt-shift-f]" accesskey="f" id="searchInput" class="form-control" autocomplete="off">
<button type="submit"></button>
</form>
</div>
</div>
<div class="right">
<div class="item">
<a href="/wiki/특수:최근바뀜" title="위키의 최근 바뀐 목록 [alt-shift-r]" accesskey="r">
<i class="fa fa-clock-o"></i> <span class="text">바뀐글</span>
</a>
</div>
<div class="item">
<a href="/wiki/특수:임의문서" title="임의 문서 불러오기 [alt-shift-x]" accesskey="x">
<i class="fa fa-random"></i> <span class="text">랜덤</span>
</a>
</div>
<div class="item" id="hamburger">
<a href="#" style="width:48px">
<svg viewBox="0 0 24 24">
<path fill="#fff" d="M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"></path>
</svg>
</a>
<ul>
<li>메뉴1</li>
<li>메뉴2</li>
</ul>
</div>
</div>
</div>
</div>
<div id="head">
<div class="core">
<div class="corner">
<i class="fa fa-share-alt" aria-hidden="true"></i>
</div>
<div class="left">
<h2>분류<span>:</span></h2>
<h1>제타위키 디자인 초안 LongWord</h1>
<div class="info">
<span>입력 2010-10-10</span>
<span>수정 2011-11-11</span>
<span>by Jmnote</span>
</div>
</div>
<div class="right">
<a...
SCSS
$content_width: 800px;
* {
box-sizing: border-box;
}
body,
button,
input,
select,
td,
textarea,
th {
color: #234;
font-family: AppleSDGothicNeo-Regular,'Malgun Gothic','맑은 고딕',dotum,'돋움',sans-serif;
line-height: 1.625;
letter-spacing: -0.02em;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
background: #ccd;
}
p {
margin: 1em 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: normal;
margin-bottom: 12px;
font-weight: 200;
line-height: 1;
color: #4d4e53;
}
hr {
border: 0;
height: 18px;
background: url(http://cdn.zetawiki.com/png/hr1.png) no-repeat;
background-position: 50% 50%;
}
a {
text-decoration: none;
}
.core {
margin: 0 auto;
max-width: $content_width;
width: 100%;
}
#nav {
background: #234;
color: #fff;
a {
display: block;
color: #fff;
&:hover {
background: #aaa;
}
}
.core {
height: 48px;
display: flex;
justify-content: space-between;
}
.left {
display: flex;
flex: 1 1 auto;
justify-content: flex-start;
}
.logo {
min-width: 46px;
img {
height: 20px;
}
a {
padding: 14px 16px;
}
}
.search {
width: 450px;
form {
margin: 5px;
}
input {
width: 100%;
height: 38px;
padding: 0 0 0 32px;
font-size: 18px;
outline: none;
border: 0;
border-radius: 4px;
background-position: left 6px center;
background-size: 20px 20px;
background-repeat: no-repeat;
background-image:...