Subversion Repositories LCARS

Rev

Rev 176 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
175 PointedEar 1
/* Responsive Web Design  */
119 PointedEar 2
 
175 PointedEar 3
<?php use de\pointedears\css\least\Mixins; ?>
119 PointedEar 4
 
175 PointedEar 5
/* Desktops with medium-size browser viewport (SVGA resolution) */
119 PointedEar 6
 
175 PointedEar 7
body {
8
  <?php
9
    Mixins::transition('',
10
        'margin-top   0.25s 0.75s linear,'
11
      . ' margin-left 0.25s 0.5s linear');
12
  ?>
13
}
119 PointedEar 14
 
175 PointedEar 15
.multi-display
16
{
17
  <?php
18
    Mixins::transition('',
19
        'top    0.25s 0.75s linear,'
20
      . ' left  0.25s 0.5s linear');
21
  ?>
22
}
23
 
24
.menu .bow
25
{
26
  <?php
27
    Mixins::transition('',
28
        'width            0.5s 1s    linear,'
29
      . 'background-color 0s   0.75s linear'
30
    );
31
  ?>
32
}
33
 
34
.multi-display .lower .bg
35
{
36
  <?php
37
    /* Wait 1s for bow to become shallower */
38
    Mixins::transition('',
39
        'top    0.25s 0.75s linear,'
40
      . 'bottom 2.5s 0.5s ease');
41
  ?>
42
}
43
 
44
#bow-top {
45
  <?php
46
    Mixins::transition('',
47
        'left                        0.5s 1.0s linear,'
48
      . ' min-width                  0s   1.5s linear,'
49
      . ' border-top-left-radius     0.5s 1.0s linear,'
50
      . ' border-top-right-radius    0.5s 1.0s linear,'
51
      . ' border-bottom-right-radius 0.5s 1.0s linear,'
52
      . ' opacity                    0s   1.0s linear');
53
  ?>
54
}
55
 
56
#bow-top .text {
57
  <?php
58
    Mixins::transition('-property', 'opacity');
59
    Mixins::transition('-delay', '1.5s');
60
    Mixins::transition('-timing-function', 'linear');
61
  ?>
62
}
63
 
64
#bow-top-left {
65
  <?php
66
    Mixins::transition('-property', 'height');
67
    Mixins::transition('-duration', '0.125s');
68
    Mixins::transition('-delay', '1.5s');
69
    Mixins::transition('-timing-function', 'linear');
70
  ?>
71
}
72
 
73
.menu-container
74
{
75
  <?php
76
    Mixins::transition('',
77
        'top      0.5s 1s linear,'
78
      . ' width   0.5s 1s linear,'
79
      . ' bottom  0.5s 1s linear,'
80
      . ' z-index 0s   1s linear');
81
  ?>
82
}  
83
 
84
.menu {
85
  <?php
86
    Mixins::transition('', 'height 0.5s 1s linear');
87
  ?>
88
}
89
 
90
.menu ul:first-child {
91
  <?php
92
    Mixins::transition('', 'padding-top 0.5s 1s linear');
93
  ?>
94
}
95
 
96
.menu .button
97
{
98
  <?php
99
    Mixins::transition('', 'width 0.5s 1s linear');
100
  ?>
101
}  
102
 
103
#bow #bottom {
104
  <?php
105
    Mixins::transition('', 'visibility 0s 1.625s linear');
106
  ?>
107
}
108
 
109
#bow-bottom {
110
  <?php
111
    Mixins::transition('',
112
        'border-bottom-left-radius   0.5s    0.5s   ease,'
113
      . ' border-bottom-right-radius 0.5s    0.5s   ease,'
114
      . ' width                      0.5s    0.5s   ease,'
115
      . ' bottom                     0.0225s 1.625s linear,'
116
      . ' height                     0.0225s 1.625s linear');
117
  ?>
118
}
119
 
120
#bow-bottom .concave {
121
  <?php
122
    Mixins::transition('', 'width 0.5s 0.5s ease');
123
  ?>
124
}
125
 
126
#connectors {
127
  <?php
128
    Mixins::transition('', 'opacity 0s 1.6475s linear');
129
  ?>
130
}  
131
 
132
#connectors .right {
133
  <?php
134
    Mixins::transition('', 'width 0.5s 0.5s ease');
135
  ?>
136
}
137
 
138
/* Desktops with large viewport (XGA resolution and more, or no toolbars) */
139
@media all and (min-width: 1024px) and (min-height: 364px) {
140
  body {
141
    margin-left: 22em;
142
  <?php
143
    Mixins::transition('', 'margin-left 0.5s 0.5s ease');
144
  ?>
145
  }
146
 
147
  #bow #bottom
148
  {
149
    width: 20.8em;
150
  <?php
151
    /* Wait 0.5s for multi-display to be reduced in height */
152
    Mixins::transition('', 'width 1.0s 0.5s ease');
153
  ?>
154
  }
155
 
156
  #bow-bottom {
157
    border-bottom-left-radius: 2.4em;
158
    border-bottom-right-radius: 2em;
159
    width: 20.6em;
160
  <?php
161
    Mixins::transition('-property', 'border-bottom-left-radius, border-bottom-right-radius, height, width');
162
    Mixins::transition('-delay', '1.0s');
163
    Mixins::transition('-duration', '0.5s');
164
    Mixins::transition('-timing-function', 'ease');
165
  ?>
166
  }
167
 
168
  #bow-bottom .concave {
169
    width: 7.6em;
170
  <?php
171
    Mixins::transition('', 'width 1.0s 0.5s ease');
172
  ?>
173
  }
174
 
175
  #connectors .right {
176
    width: 5em;
177
    <?php
178
      /* Wait 1.0s for multi-display to be moved to right */
179
      Mixins::transition('', 'width 1.0s 0.5s ease');
180
    ?>
181
  }
182
 
183
  .multi-display
184
  {
185
    left: 15.8em;
186
  <?php
187
    Mixins::transition('',
188
        'left 0.5s 0.5s ease,'
189
      . 'top  0.5s 0.5s linear');
190
  ?>
191
  }
192
 
193
  .multi-display .lower .bg
194
  {
195
    bottom: 2.8em;
196
    <?php
197
      Mixins::transition('', 'bottom 0.5s 0.5s ease');
198
    ?>
199
  }  
200
}
201
 
202
/* Desktops with small viewport (VGA resolution and less, or toolbars) */
176 PointedEar 203
@media all and (max-width: 584px) {
177 PointedEar 204
  <?php require 'lcars-responsive-small.css'; ?>
175 PointedEar 205
}
206
 
207
/* Mobile devices: HTC Sensation & friends */
208
@media screen and (max-device-width: 540px) {
209
/*
210
  html,
211
  #LCARS,
212
  .multi-display
213
  {
214
    max-width: 540px;
215
  }
216
*/
177 PointedEar 217
  <?php require 'lcars-responsive-small.css'; ?>  
175 PointedEar 218
}