-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
303 lines (293 loc) · 10.5 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
<!DOCTYPE html>
<html ng-app="playground" ng-view>
<head>
<title>Flex playground</title>
<script type="text/javascript" src="js/angular.js"></script>
<script type="text/javascript" src="js/app.js" /></script>
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/font-awesome.css">
</head>
<body ng-controller="playgroundController">
<!-- HEADER START -->
<header>
<!-- HEADER TOP -->
<div class='header-top'>
<div class='header-logo'>
<div class='black-stripe'>
<select ng-model='header.justifying' ng-change='setMainBlockProperties()'>
<option value='flex-start'>flex-start</option>
<option value='flex-end'>flex-end</option>
<option value='center'>center</option>
<option value='space-between'>space-between</option>
<option value='space-around'>space-around</option>
</select>
</div>
</div>
<!-- <div class="userpanel">
<div class='header-search'>
<div>
<input type='text' placeholder='search'>
</div>
</div>
<div class="user">
<div class="notification">
<span class="entypo-bell"></span>
<span class="number">6</span>
</div>
<div class="picture">
<img src="http://lorempixel.com/output/people-q-c-400-400-9.jpg" alt="User Name" />
</div>
<div class="name">Nombre Usuario</div>
</div>
</div> -->
</div>
<!-- HEADER MENU -->
<div class='header-menu' ng-style="{'justify-content' : header.justifying}">
<span class='code-button' ng-click='showCSSCode($event)'></></span>
<div ng-click='showAccordionFunc()'>Accordion</div>
<div ng-click='showMainFunc()'>Main</div>
<div ng-click='showGalleryFunc()'>Gallery</div>
<div>MENU ITEM</div>
<div>MENU ITEM</div>
</div>
<!-- HEADER ACCORDION-->
<div class='landing-title'>
<div class='landing-text'>Welcome to Flexbox Playground!</div>
</div>
<div class='header-accordion' ng-if='showAccordion'>
<div class = "accordion">
<div class="accordion-item blue"></div>
<div class="accordion-item red"></div>
<div class="accordion-item green"></div>
</div>
</div>
</header>
<!-- HEADER END -->
<!-- MAIN CONTENT START -->
<div id='main'>
<aside class="aside_left" ng-style='{"max-width": leftSideVisible ? "220px": "50px", "min-width": leftSideVisible ? "220px": "50px"}'>
<div class='parent-settings' ng-style='{"display": leftSideVisible ? "block": "none"}'>
<div class='header-stripe'>Parent properties</div>
<div class='settings-items'>
<p>
justify-content:
</p>
<select ng-model='main.justifying' ng-change='setMainBlockProperties()'>
<option value='flex-start'>flex-start</option>
<option value='flex-end'>flex-end</option>
<option value='center'>center</option>
<option value='space-between'>space-between</option>
<option value='space-around'>space-around</option>
</select>
</div>
<div class='settings-items'>
<p>
wrap:
</p>
<select ng-model='main.wrap' ng-change='setMainBlockPropertiesWrap()'>
<option value='wrap'>wrap</option>
<option value='nowrap'>nowrap</option>
</select>
</div>
<div class='settings-items'>
<p>
direction:
</p>
<select ng-model='main.direction' ng-change='setMainBlockPropertiesDirection()'>
<option value='row'>row</option>
<option value='row-reverse'>row-reverse</option>
<option value='column'>column</option>
<option value='column-reverse'>column-reverse</option>
</select>
</div>
<div class='settings-items'>
<p>
align-items:
</p>
<select ng-model='main.alignitems' ng-change='setMainBlockPropertiesAlignItems()'>
<option value='flex-start'>flex-start</option>
<option value='flex-end'>flex-end</option>
<option value='center'>center</option>
<option value='stretch'>stretch</option>
<option value='baseline'>baseline</option>
</select>
</div>
<div class='settings-items'>
<p>
align-content:
</p>
<select ng-model='main.aligncontent' ng-change='setMainBlockPropertiesAlignContent()'>
<option value='flex-start'>flex-start</option>
<option value='flex-end'>flex-end</option>
<option value='center'>center</option>
<option value='stretch'>stretch</option>
<option value='space-between'>space-between</option>
<option value='space-around'>space-around</option>
</select>
</div>
</div>
<div class='left-menu-button' ng-click='toggleLeftSidebar()' ng-style='{"padding": leftSideVisible ? "12px": "12px 14px"}'><i class='fa fa-bars fa-3x'></i></div>
</aside>
<div class="main">
<h2>Playground</h2>
<div class='main-block first'>
<div class="main-wrapper" ng-if='showMain'>
<div class='main-first-block-wrapper'>
<span class='code-button' ng-click='showCSSCode($event)'></></span>
<div contenteditable class='main-first-block-item' ng-repeat='n in mainblocks' ng-style='{"flex": n.grow + " " + n.shrink + " " + n.basis, "order": n.order, "align-self": n.alignself }'><span class='number number--mountain-meadow'>{{$index}}</span>
<span class='code-button' ng-click='showCSSCode($event)'></></span>
<span class='code'></span>
{{n.text}}</div>
</div>
</div>
</div>
</div>
<aside class="aside_right" ng-style='{"max-width": rightSideVisible ? "302px": "50px", "min-width": rightSideVisible ? "302px": "50px"}'>
<div class='right-menu-button' ng-click='toggleRightSidebar()' ng-style='{"padding": rightSideVisible ? "12px": "12px 0px"}'><i class='fa fa-bars fa-3x'></i></div>
<div class='child-settings' ng-style='{"display": rightSideVisible ? "block": "none"}'>
<div class='header-stripe'>Child properties</div>
<div class='settings-items'>
<p> Global settings <br>
<div ng-click='deleteItem()'>-</div>
<div ng-click='pushItem()'>+</div>
<span>
flex
</span>
<span class='input-span'>
<input type='text' class='transparent-input grow' ng-model='global.grow'>
</span>
<span class='input-span'>
<input type='text' class='transparent-input shrink' ng-model='global.shrink'>
</span>
<span class='input-span'>
<input type='text' class='transparent-input' ng-model='global.basis'>
</span>
</p>
<p><span>order</span>
<span class='input-span'>
<input type='text' class='transparent-input order' ng-model='global.order'>
</span></p>
<p> align-self:
<select ng-model='global.alignself'>
<option value='flex-start'>flex-start</option>
<option value='flex-end'>flex-end</option>
<option value='center'>center</option>
<option value='stretch'>stretch</option>
<option value='space-between'>space-between</option>
<option value='space-around'>space-around</option>
</select>
</p>
<button class="apply-global-button" ng-click='applyGlobal()'>Apply</button>
</div>
<p> Custom settings <br></p>
<div class='settings-items' ng-repeat='n in mainblocks'>
<p> {{$index}}
<span>
flex
</span>
<span class='input-span'>
<input type='text' class='transparent-input grow' ng-model='n.grow'>
</span>
<span class='input-span'>
<input type='text' class='transparent-input shrink' ng-model='n.shrink'>
</span>
<span class='input-span'>
<input type='text' class='transparent-input' ng-model='n.basis'>
</span>
</p>
<p><span>order</span>
<span class='input-span'>
<input type='text' class='transparent-input order' ng-model='n.order'>
</span></p>
<p> align-self:
<select ng-model='n.alignself'>
<option value='flex-start'>flex-start</option>
<option value='flex-end'>flex-end</option>
<option value='center'>center</option>
<option value='stretch'>stretch</option>
<option value='space-between'>space-between</option>
<option value='space-around'>space-around</option>
</select>
</p>
</div>
</div>
</aside>
<div class="modal code" css-code ng-if='showModal' ng-click='closeModal($event)'></div>
</div>
<div class='gallery-block'>
<div class='main-photogallery-block'>
<div class='main-photogallery-block-controls controls'>
<input type="button" ng-click='addImagesToGallery()' value="ADD">
<input type="button" ng-click='removeImagesFromGallery()' value="REMOVE">
</div>
<div class="box">
<div class="col-item" ng-repeat='galleryRow in galleryRows'>
<div class="item img1" ng-repeat='itemPhoto in galleryRow' style='background: url({{itemPhoto.url}})'></div>
</div>
</div>
</div>
</div>
<!-- MAIN CONTENT END -->
<!-- FOOTER START -->
<footer>
<div class='title-block'>
<div class='title contacts'>Contacts</div>
<div class='title'>Sitemap</div>
<div class='title socials'>Socials</div>
</div>
<div class='data-block'>
<div class='footer-block contacts'>
<div class='contact-item'><i class='fa fa-map-marker'></i><span>Ukraine, Uzhgorod. Lva Tolstogo, 10</span></div>
<div class='contact-item'><i class='fa fa-envelope'></i><span>binary-studio@gmail.com</span></div>
<div class='contact-item'><i class='fa fa-phone'></i><span>+38(050) 777-33-00</span></div>
</div>
<div class='footer-block sitemap'>
<div>Accordion</div>
<div>Main</div>
<div>Gallery</div>
<div>Other item</div>
</div>
<div class='footer-block socials'>
<div class='social-item'>
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x twitter"></i>
<i class="fa fa-twitter fa-stack-1x white"></i>
</span>
</div>
<div class='social-item'>
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x facebook"></i>
<i class="fa fa-facebook fa-stack-1x white"></i>
</span>
</div>
<div class='social-item'>
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x bitbucket"></i>
<i class="fa fa-bitbucket fa-stack-1x white"></i>
</span>
</div>
<div class='social-item'>
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x youtube"></i>
<i class="fa fa-youtube fa-stack-1x white"></i>
</span>
</div>
<div class='social-item'>
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x google-plus"></i>
<i class="fa fa-google-plus fa-stack-1x white"></i>
</span>
</div>
<div class='social-item'>
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x github"></i>
<i class="fa fa-github fa-stack-1x white"></i>
</span>
</div>
</div>
</div>
<div class='copyright'>Copyright © Binary Studio 2015</div>
</footer>
<!-- FOOTER END -->
</body>
</html>