Blame view

bower_components/iron-doc-viewer/iron-doc-property.css 2.61 KB
73bcce88   luigser   COMPONENTS
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
  /*
  @license
  Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
  The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
  Code distributed by Google as part of the polymer project is also
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
  */
  :host {
    @apply(--paper-font-body1);
    box-sizing: border-box;
    display: block;
    padding: 16px 24px;
  }
  
  .type:before {
    content: '\007b'; /* https://github.com/Polymer/polymer/issues/1291 */
  }
  .type:after {
    content: '\007d'; /* https://github.com/Polymer/polymer/issues/1291 */
  }
  
  #transitionMask {
    position: relative;
    overflow: hidden;
73bcce88   luigser   COMPONENTS
27
28
29
30
31
32
33
34
35
36
37
  }
  
  [hidden] {
    display: none;
  }
  
  #signature {
    @apply(--paper-font-code1);
    width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
e619a3b0   Luigi Serra   Controllet cross ...
38
    float: left;
73bcce88   luigser   COMPONENTS
39
40
41
42
43
44
45
46
  }
  
  #signature .name {
    @apply(--paper-font-code2);
  }
  
  :host([function]) #signature {
    position: static;
73bcce88   luigser   COMPONENTS
47
48
49
50
51
52
53
54
55
56
57
58
    width: 100%;
  }
  
  :host:not([function]) #signature .params {
    display: none;
  }
  
  :host([function]) #type {
    display: none;
  }
  
  #details {
e619a3b0   Luigi Serra   Controllet cross ...
59
    margin-left: 160px;
73bcce88   luigser   COMPONENTS
60
61
62
    flex: 1;
  }
  
e619a3b0   Luigi Serra   Controllet cross ...
63
64
65
66
67
68
  @media (max-width: 500px) {
    #details {
      margin-left: 0;
    }
  }
  
73bcce88   luigser   COMPONENTS
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
  /* Metadata */
  
  #meta {
    display: flex;
  }
  
  #type {
    @apply(--paper-font-code1);
  }
  
  #default {
    flex: 1;
    text-align: right;
  }
  #default .value {
    @apply(--paper-font-code1);
  }
  
  /* Function Parameters */
  
  #params {
    background: rgba(0,0,0,0.05);
    list-style: none;
    margin: 8px -8px 0 -8px;
    padding: 0 8px;
  }
  
  #params .type {
    @apply(--paper-font-code1);
  }
  
  #params li {
    padding: 4px 0;
  }
  #params li:first-child {
    padding-top: 8px;
  }
  #params li:last-child {
    padding-bottom: 8px;
  }
  
  #params marked-element {
    display: inline-block;
  }
e619a3b0   Luigi Serra   Controllet cross ...
113
  #params .markdown-html p {
73bcce88   luigser   COMPONENTS
114
115
116
117
118
119
120
121
122
    margin: 0;
  }
  
  /* Description */
  
  #desc {
    display: block;
  }
  
e619a3b0   Luigi Serra   Controllet cross ...
123
  #desc .markdown-html > :first-child {
73bcce88   luigser   COMPONENTS
124
125
126
    margin-top: 0;
  }
  
e619a3b0   Luigi Serra   Controllet cross ...
127
  #desc .markdown-html > :last-child {
73bcce88   luigser   COMPONENTS
128
129
130
    margin-bottom: 0;
  }
  
e619a3b0   Luigi Serra   Controllet cross ...
131
  #desc .markdown-html code {
73bcce88   luigser   COMPONENTS
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
    @apply(--paper-font-code1);
  }
  
  /* State Transitions */
  
  #transitionMask {
    transition: height ease-in-out 150ms;
  }
  #meta {
    transition: opacity ease-in-out 150ms;
  }
  #desc {
    transition: transform ease-in-out 150ms, opacity  ease-in-out 150ms;
  }
  
  /* Collapsed State */
  
  :host([_collapsed]) #transitionMask {
    height: 20px; /* 1 line of text */
    overflow: hidden;
  }
  :host([_collapsed]) #meta {
    opacity: 0;
  }
  :host([_collapsed]) #desc {
    transform: translateY(-34px);
  }
  :host([_collapsed][function]) #desc {
    opacity: 0;
  }