forked from unbug/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathside-by-side.html
More file actions
57 lines (55 loc) · 1.51 KB
/
side-by-side.html
File metadata and controls
57 lines (55 loc) · 1.51 KB
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
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="side-by-side" noscript>
<template>
<style>
:host {
display: block;
width: 100%;
overflow: hidden;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-ms-flex-direction: column;
-webkit-flex-direction: column;
flex-direction: column;
-ms-flex-align: start;
-webkit-align-items: flex-start;
align-items: flex-start;
box-sizing: border-box;
}
polyfill-next-selector { content: ':host > *'; }
::content > * {
position: relative;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;
width: 100%;
}
polyfill-next-selector { content: ':host li'; }
::content li {
margin-bottom: 20px;
}
@media (min-width: 1092px) {
:host {
/*
margin-left: -15px;
margin-right: -15px;
*/
-ms-flex-direction: row;
-webkit-flex-direction: row;
flex-direction: row;
}
polyfill-next-selector { content: ':host > pre, :host [main-col]'; }
::content > pre, ::content > [main-col] {
width: 58.33333333%;
}
polyfill-next-selector { content: ':host > aside, :host > [notes-col]'; }
::content > aside, ::content > [notes-col] {
width: 41.666666666%;
}
}
</style>
<content select="pre,[main-col]"></content>
<content select="aside,[notes-col]"></content>
</template>
</polymer-element>