Mercurial > hg > Members > kaito > slides
comparison before_s6/2014/2014_01_24/s6_trunk/themes/blank/projection.css.less @ 5:ab2d529bb1d7
add slide
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 14 Oct 2014 19:17:35 +0900 |
parents | 2014/2014_01_24/s6_trunk/themes/blank/projection.css.less@7164e0b43bf1 |
children |
comparison
equal
deleted
inserted
replaced
4:10fb2b05e390 | 5:ab2d529bb1d7 |
---|---|
1 /********************************* | |
2 * CSS @media projection rules (not print or screen) | |
3 * | |
4 * 1) projection -> slideshow mode (display one slide at-a-time; hide all others) | |
5 * 2) screen -> outline mode (display all slides-at-once on screen) | |
6 * 3) print -> print (and print preview) | |
7 * | |
8 * toggle between projection/screen (that is, slideshow/outline) mode using t-key | |
9 */ | |
10 | |
11 ////////////////////////////////////// | |
12 // note: this is a less extendend css script, to learn more about less; see lesscss.org) | |
13 | |
14 | |
15 html, | |
16 body, | |
17 .presentation { margin: 0; padding: 0; } | |
18 | |
19 | |
20 .slide { display: none; /* note: only display current slide in projection mode */ | |
21 position: absolute; | |
22 top: 0; left: 0; | |
23 margin: 0; | |
24 padding: 2% 4% 0% 4%; /* css note: order is => top right bottom left */ | |
25 -moz-box-sizing: border-box; | |
26 -webkit-box-sizing: border-box; | |
27 box-sizing: border-box; | |
28 width: 100%; height: 100%; /* css note: lets use border-box; no need to add padding+border to get to 100% */ | |
29 overflow-x: hidden; overflow-y: auto; | |
30 z-index: 2; | |
31 } | |
32 | |
33 .slide.current { display: block; } /* note: only display current slide in projection mode */ | |
34 | |
35 | |
36 /***** | |
37 * layout block structure: | |
38 * | |
39 * .layout | |
40 * > #header | |
41 * > #footer | |
42 */ | |
43 | |
44 .layout { | |
45 | |
46 #header, header { position: fixed; | |
47 top: 0; left: 0; | |
48 width: 100%; height: 0.5em; | |
49 z-index: 1; | |
50 } | |
51 | |
52 #footer, footer { position: fixed; | |
53 top: auto; bottom: 0; | |
54 padding: 1em 0; /* css note: order is => 1st top,bottom; 2nd right,left */ | |
55 width: 100%; height: 1em; | |
56 z-index: 5; | |
57 | |
58 /* todo: move font-size and font-style to blank.css */ | |
59 font-size: 100%; font-weight: bold; | |
60 | |
61 /* todo: move font-size and font-style to blank.css */ | |
62 | |
63 h1 { display: block; margin: 0; padding: 0 1em; font-size: 50%; } | |
64 h2 { display: block; margin: 0; padding: 0 1em; font-size: 50%; font-style: italic; } | |
65 } | |
66 } | |
67 | |
68 | |
69 | |
70 /********************************* | |
71 * general text-alignment classes | |
72 */ | |
73 | |
74 .left { text-align: left; } | |
75 .center { text-align: center; } | |
76 .right { text-align: right; } | |
77 | |
78 | |
79 /********************************* | |
80 * general _absolute_ font-size classes | |
81 */ | |
82 | |
83 .small { font-size: 97%; } | |
84 .x-small { font-size: 88%; } | |
85 .xx-small { font-size: 82%; } | |
86 | |
87 .large { font-size: 103%; } | |
88 .x-large { font-size: 112%; } | |
89 .xx-large { font-size: 118%; } | |
90 | |
91 /********************************* | |
92 * general _relative_ font-size classes | |
93 */ | |
94 | |
95 .smaller { font-size: 82%; } | |
96 .larger { font-size: 118%; } | |
97 |