File tree 3 files changed +16
-13
lines changed
3 files changed +16
-13
lines changed Original file line number Diff line number Diff line change 63
63
text ="{{code}} "
64
64
language ="{{language}} "
65
65
on-tap ="selPrettyCode "
66
- class$ ="[[_computedDestinationClass(theme)]] "
67
- style ="overflow:auto "> </ prettify-element >
66
+ class$ ="[[_computedDestinationClass(theme)]] "> </ prettify-element >
68
67
</ div >
69
68
</ template >
70
69
Original file line number Diff line number Diff line change @@ -114,7 +114,9 @@ mainContent.ptChange = function(newVal) {
114
114
mainContent . fontPx = ptToPx ( newVal . detail . value ) + 'px' ;
115
115
116
116
//AutoGrow Text Area
117
- mainContent . $ . agTa . style . fontSize = mainContent . fontPx ;
117
+ mainContent . $ . agTa . style . fontSize = mainContent . fontPx ; //Done to avoid errors in Polymer library... TODO:open Issue?
118
+ //--paper-input-container-input
119
+ mainContent . $ . agTa . customStyle [ '--paper-input-container-input' ] = { 'font-size' : mainContent . fontPx } ;
118
120
119
121
//Pre Element
120
122
if ( mainContent . $ . destination . shadowRoot ) {
Original file line number Diff line number Diff line change 15
15
color : # 000 ;
16
16
}
17
17
18
- paper-textarea {
19
- width : 100% ;
20
- min-height : 90px ;
21
- max-height : 50% ;
22
-
23
- font-family : Inconsolata;
24
- font-size : 20px ;/*= 15pt, more info http://kyleschaeffer.com/development/css-font-size-em-vs-px-vs-pt-vs/*/
25
- }
26
-
27
18
paper-input .theme-dark {
28
19
--paper-input-container-input-color : # fff ;
29
20
}
32
23
--paper-input-container-input-color : # 000 ;
33
24
}
34
25
26
+ paper-textarea {
27
+ width : auto;
28
+ min-height : 90px ;
29
+ max-height : 50% ;
30
+ --paper-input-container-input : {
31
+ font-family : Inconsolata;
32
+ font-size : 20px ;/*= 15pt, more info http://kyleschaeffer.com/development/css-font-size-em-vs-px-vs-pt-vs/*/
33
+ };
34
+ }
35
+
35
36
paper-textarea .theme-dark {
36
37
background-color : # 300 ;
37
38
--paper-input-container-input-color : # fff ;
52
53
}
53
54
54
55
prettify-element {
55
- --prettify-pre : {
56
+ overflow : auto;
57
+ --prettify-code-pre : {
56
58
font-family : Inconsolata;
57
59
font-size : 20px ;
58
60
background-color : transparent;
You can’t perform that action at this time.
0 commit comments