UNPKG

3.77 kBCSSView Raw
1
2/**
3 * Categorizing CSS Rules
4 * ----------------------
5 *
6 * 1. Base rules are almost exclusively single element selectors.
7 * 2. Layout rules divide the page into sections.
8 * Layouts hold one or more modules together.
9 * 3. Modules are the reusable, modular parts of our design.
10 * They are the callouts, the sidebar sections, the product lists and so on.
11 * 4. State rules are ways to describe how our modules or layouts will look when in a particular state.
12 * Is it hidden or expanded? Is it active or inactive?
13 * They are about describing how a module or layout looks on screens that are smaller or bigger.
14 * They are also about describing how a module might look in different views like the home page or the inside page.
15 * 5. Theme rules are similar to state rules in that they describe how modules or layouts might look.
16 * Most sites don’t require a layer of theming but it is good to be aware of it.
17 * Theme rules describe how modules or layouts might look.
18 * Without theme site must work but look more like a wireframe.
19 *
20 * @see http://smacss.com/book/categorizing
21 */
22
23@import url("../css/base.css"); /* 1 */
24@import url("../css/grid.css"); /* 3 */
25@import url("../css/grid-golden.css"); /* 3 */
26@import url("../css/spacing-4.css"); /* 3 */
27@import url("../css/media.css"); /* 3 */
28@import url("css/layout.css"); /* 2 */
29@import url("css/state.css"); /* 4 */
30@import url("css/theme/blue.css"); /* 5 */
31
32/*** ie7
33.ie7 {}
34/**/
35
36/*
37@font-face {
38 font-family: '<font-family>';
39 src: url('<font-file>.eot?#iefix') format('embedded-opentype');
40 src: local('<font-family>'), url('<font-file>.ttf') format('truetype'), url('<font-file>.woff') format('woff'), url('<font-file>') format('svg');
41}
42@font-face {
43 font-family: '<font-family>';
44 src: url('<font-file>.ttf') format('truetype'), url('<font-file>.woff') format('woff'), url('<font-file>') format('svg');
45}
46
47@font-face {
48 font-family: "Bitstream Vera Serif Bold";
49 src: url("/files/2468/VeraSeBd.ttf");
50}
51
52left-pitch-right
53forward-roll-back
54up-yaw-down
55*/
56
57.fromLeft { animation: .5s ease both fromLeft; }
58.fromRight { animation: .5s ease both fromRight; }
59.fromUp { animation: .5s ease both fromUp; }
60.fromDown { animation: .5s ease both fromDown; }
61.fromBack { animation: .5s ease both fromBack; }
62.fromForward { animation: .5s ease both fromForward; }
63
64.toLeft { pointer-events: none; animation: .3s ease both toLeft; }
65.toRight { pointer-events: none; animation: .3s ease both toRight; }
66.toUp { pointer-events: none; animation: .3s ease both toUp; }
67.toDown { pointer-events: none; animation: .3s ease both toDown; }
68.toBack { pointer-events: none; animation: .3s ease both toBack; }
69.toForward { pointer-events: none; animation: .3s ease both toForward; }
70
71@keyframes fromLeft { from { transform: translateX(-100%); } }
72@keyframes toLeft { to { transform: translateX(-100%); opacity: 0; } }
73@keyframes fromRight { from { transform: translateX(100%); } }
74@keyframes toRight { to { transform: translateX(100%); opacity: 0; } }
75@keyframes fromUp { from { transform: translateY(-100%); } }
76@keyframes toUp { to { transform: translateY(-100%); opacity: 0; } }
77@keyframes fromDown { from { transform: translateY(100%); } }
78@keyframes toDown { to { transform: translateY(100%); opacity: 0; } }
79@keyframes fromBack { from { transform: scale(.4); opacity: 0; } }
80@keyframes toBack { to { transform: scale(.4); opacity: 0; } }
81@keyframes fromForward { from { transform: scale(2); opacity: 0; } }
82@keyframes toForward { to { transform: scale(2); opacity: 0; } }
83
84