OSDN Git Service

画像省略時のスタイル改善。
[yanmah2/YANMAH2-season2-.git] / style.php
1 <?php
2 define("HELLO","world");
3 require_once "configurable_variables.php";
4 require_once "common_functions.php";
5 require_once 'init_processor.php';
6 ?>
7 <?php
8 header('Content-Type: text/css; charset=utf-8');
9 header('Cache-Control: private, max-age=' . 60*60*24);
10 ?>
11 body {
12         color: black; background-color: white;
13         margin-top: 0%; margin-bottom: 0%;
14         margin-left: 1%; margin-right: 1%;
15         padding-left: 1%; padding-right: 1%;
16         border-width: 1px;
17         border-style: solid;
18         border-color: #888888;
19 }
20 blockquote {
21         color: inherit; background-color: #f6f6f6;
22         border-color: #999999; border-style: dotted;
23         border-width: 1px;
24 }
25 hr {
26         display: none;
27 }
28 address {
29         font-size: 75%;
30 }
31 #page {
32 }
33 #header {
34         padding: 1%;
35 }
36 #header.default, #header.album, #header.users, #header.about {
37         color: white; background-color: #6C8CA5;
38 }
39 #header.user_timeline, #header.friends_timeline, #header.entry_cat, #header.favours {
40         color: white; background-color: #D07C7A;
41 }
42 #header.keyword_timeline, #header.keywords, #header.keyword_users {
43         color: white; background-color: #7BA86D;
44 }
45 #header.coco-ready, #header.coco-result {
46   color: white; background-color: #77B4F1;
47 }
48 #header {
49 }
50 #com-hdr {
51   border-bottom-style: solid; border-bottom-width: 1px;
52   border-color: #999999;
53   color: black; background-color: white;
54   font-size: 90%; text-align: right;
55 }
56 #com-ftr {
57   border-top-style: solid; border-top-width: 1px;
58   border-color: #999999;
59   color: black; background-color: white;
60   font-size: 90%; text-align: right;
61 }
62 .header-log, .ftr-cnf {
63   margin-right: 3%;
64 }
65 .to-bottom, to-top {
66   margin-left: 3%;
67 }
68 #index-head {
69 }
70 .head1 {
71 }
72 .caption {
73   display: inline;
74   font-size: 80%;
75 }
76 #index-contents {
77         border: none;
78 }
79 .post-result, .oauth-res {
80   color: black; background-color: #d6e6ff;
81   margin: 1%; padding: 1%;
82 }
83 .contents {
84         border-color: #999999; border-top-style: solid;
85         border-top-width: 1px;
86 }
87 .index-content ul, .cnf-blk, .cnf-blk ul, .kwd-ls {
88 <?php
89 if ($device_who == 'ktai'){
90   echo "line-height: 1.0em;\n";
91 } elseif ($device_who == 'iphone' || $device_who == 'android' || $device_who == 'android-old'){
92   echo "line-height: 1.7em;\n";
93 } else {
94   echo "line-height: 1.2em;\n";
95 }
96 ?>
97 }
98 .index-content {
99 }
100 .content {
101 }
102 #entries-index-head {
103         color: white; background-color: #6C8CA5;
104 }
105 a:link.entries {
106         color: #43647C; background-color: transparent;
107 }
108 a:visited.entries {
109         color: #43647C; background-color: transparent;
110 }
111 #users-index-head {
112         color: white; background-color: #D07C7A;
113 }
114 a:link.user,a:visited.user {
115         color: #833B55; background-color: transparent;
116 }
117 #keywords-index-head {
118         color: white; background-color: #7BA86D;
119 }
120 a:link.keyword {
121         color: #467237; background-color: transparent;
122 }
123 a:visited.keyword {
124         color: #467237; background-color: transparent;
125 }
126 #footer {
127         border-color: #999999; border-top-style: solid;
128         border-top-width: 1px;
129 }
130
131 #entries-head {
132 }
133 .external-link {
134 }
135 .generic-link {
136 }
137 .image-link {
138 }
139
140 .post-box {
141 }
142 #post-keyword {
143         font-size: 100%;
144         width: 99%; height: auto;
145 }
146 #post-text {
147         font-size: 100%;
148         width: 99%; height: 4em;
149 }
150 #post-haiku, #post-from {
151         vertical-align: middle;
152 }
153 #post-haiku {
154   margin-right: 4%;
155 }
156 #post-from {
157   width: 6em; margin-right: 2%;
158 }
159 .entry, .users-list, .geo-result, .coco-search, .hateb-form, .to-amazon, .cnf-blk {
160         border-color: #999999; border-bottom-style: solid;
161         border-bottom-width: 1px;
162         margin: 0; 
163         padding-top: 1%;padding-bottom: 1%;
164         line-height: 1.3em;
165 }
166 .entry img {
167   max-width: 100%; max-height: 16em;
168 }
169 .entry-head {
170         font-weight: bold;
171 }
172 .user-icon {
173   height: 2em; width: 2em;
174   vertical-align: top;
175   float: left;
176   margin-right: 1px;
177 }
178 .hatena-star-comment-button, .hatena-star-add-button {
179 <?php
180 if ($device_who == 'iphone' || $device_who == 'android' || $device_who == 'android-old'){
181 echo <<<EOL
182
183   height: 1.5em;
184   margin: 0px 0.3em!important;
185
186 EOL;
187 } else {
188   echo "height: 1.2em;\n";
189 }
190 ?>
191 }
192 .entry-body {
193 <?php
194 if ($device_who == 'ktai'){
195   echo "line-height: 1.1em;\n";
196 } elseif ($device_who == 'iphone' || $device_who == 'android' || $device_who == 'android-old'){
197   echo "line-height: 1.3em;\n";
198 } else {
199   echo "line-height: 1.3em;\n";
200 }
201 ?>
202   margin-top: 2px; margin-bottom: 2px;
203 }
204 .eb-rich {
205   margin-left: 2em;
206 }
207 .entry-body img {
208   vertical-align: middle;
209 }
210 .star-form {
211         display: inline;
212 }
213 a:link.hatena-id {
214         color: #833B55; background-color: transparent;
215 }
216 a:visited.hatena-id {
217         color: #833B55; background-color: transparent;
218 }
219 .add-star-button {
220   color: #327896; background-color: white;
221   border-style: solid; border-color: #327896; border-width: 1px;
222 }
223 .hateb-form {
224   margin: 1%;
225 }
226 #bcomment {
227   width: 75%; height: auto;
228 }
229 #post-hateb {
230   color: #1742CE; background-color: white;
231   width: 10%; height: auto; font-weight: bold;
232   border-style: solid; border-color:#1742CE ; border-width: 1px;
233 }
234 .hatena-star a:link, .hatena-star a:visited{
235         color: #b88606; background-color: transparent;
236 }
237 .dating, .sname, .entry-head {
238         color: #555555; background-color: transparent;
239 }
240 .reply {
241         color: #555555; background-color: transparent;
242 }
243 a:link.replying,a:visited.replying {
244         color: #833B55; background-color: transparent;
245 }
246 a:link.see-more {
247         color: #833B55; background-color: transparent;
248 }
249 a:visited.see-more {
250         color: #833B55; background-color: transparent;
251 }
252 .to-original-link {
253 }
254 #navigation-menu, #page-navi {
255   text-align: center;
256         list-style-type: none;
257         margin-left: 0; margin-right: 0;
258         padding: 0; padding-right: 0;
259         padding-top: 0.2em; padding-bottom: 0.2em;
260         font-size: 100%;
261 }
262 #navigation-menu li, #page-navi li {
263 <?php
264 if ($device_who == 'ktai'){
265   echo "line-height: 1.0em;\n";
266 } elseif ($device_who == 'iphone' || $device_who == 'android' || $device_who == 'android-old'){
267   echo "line-height: 2.0em;\n";
268 } else {
269   echo "line-height: 1.5em;\n";
270 }
271 ?>
272 }
273 #page-navi li{
274   display: inline;
275 }
276 a:link.navigation-link {
277         color: #43647C; background-color: transparent;
278 }
279 a:visited.navigation-link {
280         color: #43647C; background-color: transparent;
281 }
282 .access-key {
283         text-decoration: underline;
284 }
285 #about-head {
286 }
287 .users-list dd, .users-list dt {
288 }
289 .users-list dt {
290   font-weight: bold;
291 }
292 .users-list dd {
293 }
294 .credit {
295   font-size: 75%;
296 }