質問編集履歴
1
css追加と画像修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
プログラム初心者でデザインはサッパリです。
|
4
4
|
|
5
5
|
メ○カリっぽいヘッダにしたいです。
|
6
|
-

|
7
7
|
|
8
8
|
|
9
9
|
ですが現状こんな感じです。
|
@@ -47,4 +47,145 @@
|
|
47
47
|
|
48
48
|
</div>
|
49
49
|
</header>
|
50
|
+
```
|
51
|
+
|
52
|
+
```css
|
53
|
+
@import "bootstrap-sprockets";
|
54
|
+
@import "bootstrap";
|
55
|
+
|
56
|
+
/* mixins, variables, etc. */
|
57
|
+
|
58
|
+
$gray-medium-light: #eaeaea;
|
59
|
+
|
60
|
+
@mixin box_sizing {
|
61
|
+
-moz-box-sizing: border-box;
|
62
|
+
-webkit-box-sizing: border-box;
|
63
|
+
box-sizing: border-box;
|
64
|
+
}
|
65
|
+
|
66
|
+
/* miscellaneous */
|
67
|
+
|
68
|
+
.debug_dump {
|
69
|
+
clear: both;
|
70
|
+
float: left;
|
71
|
+
width: 100%;
|
72
|
+
margin-top: 45px;
|
73
|
+
@include box_sizing;
|
74
|
+
}
|
75
|
+
|
76
|
+
/* universal */
|
77
|
+
|
78
|
+
body {
|
79
|
+
padding-top: 90px;
|
80
|
+
}
|
81
|
+
|
82
|
+
section {
|
83
|
+
overflow: auto;
|
84
|
+
}
|
85
|
+
|
86
|
+
textarea {
|
87
|
+
resize: vertical;
|
88
|
+
}
|
89
|
+
|
90
|
+
.center {
|
91
|
+
text-align: center;
|
92
|
+
h1 {
|
93
|
+
margin-bottom: 10px;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
/* typography */
|
98
|
+
h1, h2, h3, h4, h5, h6 {
|
99
|
+
line-height: 1;
|
100
|
+
}
|
101
|
+
|
102
|
+
h1 {
|
103
|
+
font-size: 3em;
|
104
|
+
letter-spacing: -2px;
|
105
|
+
margin-bottom: 30px;
|
106
|
+
text-align: center;
|
107
|
+
}
|
108
|
+
|
109
|
+
h2 {
|
110
|
+
font-size: 1.2em;
|
111
|
+
letter-spacing: -1px;
|
112
|
+
margin-bottom: 30px;
|
113
|
+
text-align: center;
|
114
|
+
font-weight: normal;
|
115
|
+
color: $gray-light;
|
116
|
+
}
|
117
|
+
|
118
|
+
p {
|
119
|
+
font-size: 1.1em;
|
120
|
+
line-height: 1.7em;
|
121
|
+
}
|
122
|
+
|
123
|
+
|
124
|
+
/* header */
|
125
|
+
#logo {
|
126
|
+
float: left;
|
127
|
+
margin-right: 10px;
|
128
|
+
font-size: 1.6em;
|
129
|
+
color: white;
|
130
|
+
text-transform: uppercase;
|
131
|
+
letter-spacing: -1px;
|
132
|
+
padding-top: 9px;
|
133
|
+
font-weight: bold;
|
134
|
+
&:hover {
|
135
|
+
color: white;
|
136
|
+
text-decoration: none;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
/* footer */
|
144
|
+
footer {
|
145
|
+
margin-top: 45px;
|
146
|
+
padding-top: 5px;
|
147
|
+
border-top: 1px solid $gray-medium-light;
|
148
|
+
color: $gray-light;
|
149
|
+
a {
|
150
|
+
color: $gray;
|
151
|
+
&:hover {
|
152
|
+
color: $gray-darker;
|
153
|
+
}
|
154
|
+
}
|
155
|
+
small {
|
156
|
+
float: left;
|
157
|
+
}
|
158
|
+
ul {
|
159
|
+
float: right;
|
160
|
+
list-style: none;
|
161
|
+
li {
|
162
|
+
float: left;
|
163
|
+
margin-left: 15px;
|
164
|
+
}
|
165
|
+
}
|
166
|
+
}
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
/* forms */
|
174
|
+
input, textarea, select, .uneditable-input {
|
175
|
+
border: 1px solid #bbb;
|
176
|
+
width: 100%;
|
177
|
+
margin-bottom: 15px;
|
178
|
+
@include box_sizing;
|
179
|
+
}
|
180
|
+
|
181
|
+
input {
|
182
|
+
height: auto !important;
|
183
|
+
}
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
50
191
|
```
|