-
Notifications
You must be signed in to change notification settings - Fork 2
/
katana-code.html
115 lines (94 loc) · 2.58 KB
/
katana-code.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Katana Code</title>
<meta name="viewport" content="user-scalable=yes, width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="katana.css">
<link href="https://fonts.googleapis.com/css?family=Montserrat:200" rel="stylesheet">
<style>
body {
font-family: 'Montserrat', sans-serif;
font-size-adjust: none;
font-style: normal;
font-variant: normal;
font-weight: normal;
text-align: center;
}
h1,
h2 {
margin: 5px 0;
color: #fa025d
}
h1 {
font-size: 48px;
line-height: 1.18;
}
h2 {
font-size: 36px;
line-height: 1.3;
}
a {
color: #fff;
font-size: 18px;
}
pre {
text-align: left;
font-style: normal;
font: 16px/ 1.6 Monaco, Consolas, 'Lucida Console', monospace;
}
.styling {
background-color: #46b2fd;
color: #fff;
border-radius: 4px;
padding: 12px;
margin: 0 0 15px 15px;
}
.border {
border: 1px #fa025d solid
}
.center {
text-align: center;
}
@media (max-width: 600px) {
pre{
white-space: normal;
}
}
</style>
</head>
<body>
<div class="main">
<div class="col-1 center">
<img alt="Katana logo" id="logo" src="logo/katana.png">
</div>
<div class="col-1 center">
<p>katana.scss</p>
</div>
<div class="styling col-1 ">Header</div>
<div class="clear"></div>
<div class="styling col-4">Sidebar</div>
<div class="styling fluid">
<pre>
/* Basically this is all katana.scss */
$m: 15px;
$col: 12;
* {box-sizing: border-box}
.main{display: flex; flex-flow: row wrap; width: 94%; margin: 0 auto}
@for $i from 1 through $col {
.col-#{$i} {
width: calc(#{1 / $i}% - #{$m}); margin:0 0 0 $m}
}
.fluid{flex:2; margin:0 0 0 $m}
.clear{width: 100%}
@media (max-width: 600px) {
.main,.main>*{width:100% !important; margin:0}
img{max-width:100%;height:auto}
}
</pre>
</div>
<div class="clear"></div>
<div class="styling col-1 center">Footer</div>
</div>
</body>
</html>