forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathColumnRowWrapping.vue
More file actions
38 lines (35 loc) · 1012 Bytes
/
ColumnRowWrapping.vue
File metadata and controls
38 lines (35 loc) · 1012 Bytes
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
<template>
<div class="q-pa-md">
<div class="column" style="height: 300px; max-height: 100%">
<div class="col-9">.col-9</div>
<div class="col-5">
.col-5
<br>Since 9 + 5 = 14 > 12, this 5-row-wide div
<br>gets wrapped onto a new line as one
<br>contiguous unit.
</div>
<div class="col-6">
.col-6
<br>Subsequent rows
<br>continue along the
<br>new line.
</div>
</div>
<div class="column" style="height: 150px">
<div class="col-3 col-sm-6">.col-3 .col-sm-6</div>
<div class="col-3 col-sm-6">.col-3 .col-sm-6</div>
<div class="col-3 col-sm-6">.col-3 .col-sm-6</div>
<div class="col-3 col-sm-6">.col-3 .col-sm-6</div>
</div>
</div>
</template>
<style lang="sass" scoped>
.column
background: rgba(255, 0, 0, .1)
.column > div
padding: 10px 15px
background: rgba(86, 61, 124, .15)
border: 1px solid rgba(86, 61, 124, .2)
.column + .column
margin-top: 1rem
</style>