Commit 2d8cf127f993de17e18348118e5d99375cdff03d

Authored by Luigi Serra
1 parent 8436d840

postit and google card updates

controllets/google-cards-controllet/google-card-controllet.html 100644 → 100755
... ... @@ -5,7 +5,7 @@
5 5 <link rel="import" href="../../bower_components/paper-dialog/paper-dialog.html"/>
6 6 <link rel="import" href="../../bower_components/neon-animation/neon-animation.html"/>
7 7  
8   -<script src="../../locales/paper-card-ln.js"></script>
  8 +<script src="../../locales/paper_card_controllet_ln.js"></script>
9 9  
10 10 <dom-module id="google-card-controllet">
11 11  
... ... @@ -23,7 +23,7 @@
23 23 #content {
24 24 padding: 4px 4px 0px 4px;
25 25 position:relative;
26   - width: 100%;
  26 + width: 98%;
27 27 height: 90%;
28 28 }
29 29  
... ... @@ -45,10 +45,14 @@
45 45  
46 46 paper-fab#fullscreen-button {
47 47 position: absolute;
48   - z-index: 100;
49   - top: -20px;
50   - right: 8px;
  48 + /*z-index: 10;*/
  49 + top: 0px;
  50 + right: 0px;
51 51 --paper-fab-background:#2196F3;
  52 + padding : 0px;
  53 + margin: 0px;
  54 + height: 24px;
  55 + width: 24px;
52 56 }
53 57  
54 58 paper-dialog {
... ... @@ -86,15 +90,12 @@
86 90 <paper-material id="paper_card_container" elevation="{{elevation}}">
87 91  
88 92 <div id="content">
89   - <iframe id="resource" src="{{resourceUrl}}?embedded=true"></iframe>
  93 + <iframe id="resource" src="{{resourceUrl}}&embedded=true"></iframe>
  94 + <!--<iframe id="resource" src="{{resourceUrl}}"></iframe>-->
90 95 </div>
91 96  
92 97 <paper-fab id="fullscreen-button" class="open" mini icon="fullscreen" on-click="_handleOpenClick"></paper-fab>
93 98  
94   - <div class="footer">
95   - <div class="comment">{{comment}}</div>
96   - </div>
97   -
98 99 <paper-dialog id="fullscreen_container" entry-animation="scale-up-animation" exit-animation="fade-out-animation">
99 100 <!--with-backdrop-->
100 101 <div id="fullscreen_content"></div>
... ... @@ -153,15 +154,16 @@
153 154  
154 155  
155 156 _changeWidth: function(){
156   - this.style.width = this.width + "px";
157   - this.$.paper_card_container.style.width = this.width + "px";
158   - this.$.content.style.width = this.width - 8 + "px";
  157 + //this.style.width = this.width + "px";
  158 + //this.$.paper_card_container.style.width = this.width + "px";
  159 + //this.$.content.style.width = this.width - 8 + "px";
159 160 },
160 161  
161 162 _changeHeight: function(){
162   - this.style.height = this.height + 64 + "px";
163   - this.$.paper_card_container.style.height = this.height + "px";
164   - this.$.content.style.height = this.height - 4 + "px";
  163 + this.style.height = this.height + "vh";
  164 + //this.$.content.width = this.width - 4 + "vh";
  165 + this.$.paper_card_container.style.height = this.height + "vh";
  166 + this.$.content.style.height = this.height - 1 + "vh";
165 167 $(this.$.content).perfectScrollbar();
166 168 },
167 169  
... ...
controllets/google-cards-controllet/google-card-creation-controllet.html 100644 → 100755
controllets/google-cards-controllet/static/images/google-doc-icon.png 100644 → 100755

19.8 KB | W: | H:

19.8 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
controllets/google-cards-controllet/static/images/google-drawing-icon.png 100644 → 100755

6.45 KB | W: | H:

6.45 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
controllets/google-cards-controllet/static/images/google-presentation-icon.png 100644 → 100755

12.4 KB | W: | H:

12.4 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
controllets/google-cards-controllet/static/images/google-sheet-icon.png 100644 → 100755

17 KB | W: | H:

17 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
controllets/postit-container-controllet/postit-container-controllet.html 0 → 100755
  1 +<link rel="import" href="../../bower_components/polymer/polymer.html">
  2 +
  3 +<link rel="import" href="../../bower_components/iron-icon/iron-icon.html">
  4 +<link rel="import" href="../../bower_components/iron-icons/iron-icons.html">
  5 +<link rel="import" href="../../bower_components/paper-material/paper-material.html">
  6 +<link rel="import" href="../../bower_components/paper-toolbar/paper-toolbar.html">
  7 +<link rel="import" href="../../bower_components/paper-fab/paper-fab.html">
  8 +
  9 +<link rel="import" href="../../controllets/search-panel-controllet/search-panel-controllet.html">
  10 +
  11 +<dom-module id="postit-container-controllet">
  12 +
  13 + <style>
  14 +
  15 + iron-icon.postit {
  16 + padding: 2px;
  17 + margin: 0px;
  18 + color: #FFFFFF;
  19 + height: 32px;
  20 + width: 32px;
  21 + background-color: #00BCD4;
  22 + }
  23 +
  24 + .button-container {
  25 + cursor: pointer;
  26 + text-decoration:none;
  27 + color:#000;
  28 + background:#ffc;
  29 + display:block;
  30 + height:40px;
  31 + width:40px;
  32 + padding:10px;
  33 + /* Firefox */
  34 + -moz-box-shadow:5px 5px 7px rgba(33,33,33,1);
  35 + /* Safari+Chrome */
  36 + -webkit-box-shadow: 5px 5px 7px rgba(33,33,33,.7);
  37 + /* Opera */
  38 + box-shadow: 5px 5px 7px rgba(33,33,33,.7);
  39 + -o-transform:rotate(4deg);
  40 + -webkit-transform:rotate(4deg);
  41 + -moz-transform:rotate(4deg);
  42 + }
  43 +
  44 + .button-container p{
  45 + -o-transform:rotate(4deg);
  46 + -webkit-transform:rotate(4deg);
  47 + -moz-transform:rotate(4deg);
  48 + font-size: 5px;
  49 + line-height: 3px;
  50 + }
  51 +
  52 + .button-container:hover {
  53 + box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
  54 + -webkit-transition: 0.2s ease-out;
  55 + -moz-transition: 0.2s ease-out;
  56 + -o-transition: 0.2s ease-out;
  57 + -ms-transition: 0.2s ease-out;
  58 + transition: 0.2s ease-out;
  59 + }
  60 +
  61 + .window {
  62 + /*height: 80vh;
  63 + width: 120vh;*/
  64 + display: none;
  65 + height: 80%;
  66 + position: fixed;
  67 + top: 15%;
  68 + left: 50%;
  69 + margin-right: auto;
  70 + margin-left: auto;
  71 + z-index: 1000;
  72 + }
  73 +
  74 + .transparent {
  75 + position:absolute;
  76 + top:0;
  77 + left:0;
  78 + width: 100%;
  79 + height: 12%;
  80 + background-color: rgba(0, 0, 0, 0.4);
  81 + }
  82 +
  83 + paper-fab.close {
  84 + position: absolute;
  85 + height: 32px;
  86 + width: 32px;
  87 + margin: 8px;
  88 + top: 0px;
  89 + right: 0px;
  90 + --paper-fab-background:#B6B6B6;
  91 + z-index: 9999;
  92 + }
  93 +
  94 + paper-fab#addPostit {
  95 + position: absolute;
  96 + height: 32px;
  97 + width: 32px;
  98 + margin: 8px;
  99 + top: 0px;
  100 + right: 48px;
  101 + --paper-fab-background:#2196F3;
  102 + z-index: 9999;
  103 + }
  104 +
  105 + #container_content {
  106 + position: relative;
  107 + overflow: auto;
  108 + height: 100%;
  109 + background-color: transparent;
  110 + z-index: 1000;
  111 + margin-top : 7%;
  112 + }
  113 +
  114 + h2,p{
  115 + font-size:100%;
  116 + font-weight:normal;
  117 + }
  118 + ul,li{
  119 + list-style:none;
  120 + }
  121 + ul{
  122 + overflow:hidden;
  123 + padding:3em;
  124 + }
  125 + ul li a{
  126 + text-decoration:none;
  127 + color:#000;
  128 + background:#ffc;
  129 + display:block;
  130 + height:10em;
  131 + width:10em;
  132 + padding:1em;
  133 + -moz-box-shadow:5px 5px 7px rgba(33,33,33,1);
  134 + -webkit-box-shadow: 5px 5px 7px rgba(33,33,33,.7);
  135 + box-shadow: 5px 5px 7px rgba(33,33,33,.7);
  136 + -moz-transition:-moz-transform .15s linear;
  137 + -o-transition:-o-transform .15s linear;
  138 + -webkit-transition:-webkit-transform .15s linear;
  139 + }
  140 + ul li{
  141 + margin:10px;
  142 + float:left;
  143 + }
  144 + ul li h3{
  145 + font-size:100%;
  146 + font-weight:bold;
  147 + }
  148 + ul li p{
  149 + /*font-family:"Reenie Beanie",arial,sans-serif;*/
  150 + font-size:60%;
  151 + }
  152 + ul li a{
  153 + -webkit-transform: rotate(-6deg);
  154 + -o-transform: rotate(-6deg);
  155 + -moz-transform:rotate(-6deg);
  156 + }
  157 + ul li:nth-child(even) a{
  158 + -o-transform:rotate(4deg);
  159 + -webkit-transform:rotate(4deg);
  160 + -moz-transform:rotate(4deg);
  161 + position:relative;
  162 + top:5px;
  163 + background:#cfc;
  164 + }
  165 + ul li:nth-child(3n) a{
  166 + -o-transform:rotate(-3deg);
  167 + -webkit-transform:rotate(-3deg);
  168 + -moz-transform:rotate(-3deg);
  169 + position:relative;
  170 + top:-5px;
  171 + background:#ccf;
  172 + }
  173 + ul li:nth-child(5n) a{
  174 + -o-transform:rotate(5deg);
  175 + -webkit-transform:rotate(5deg);
  176 + -moz-transform:rotate(5deg);
  177 + position:relative;
  178 + top:-10px;
  179 + }
  180 + ul li a:hover,ul li a:focus{
  181 + box-shadow:10px 10px 7px rgba(0,0,0,.7);
  182 + -moz-box-shadow:10px 10px 7px rgba(0,0,0,.7);
  183 + -webkit-box-shadow: 10px 10px 7px rgba(0,0,0,.7);
  184 + -webkit-transform: scale(1.25);
  185 + -moz-transform: scale(1.25);
  186 + -o-transform: scale(1.25);
  187 + position:relative;
  188 + z-index:5;
  189 + }
  190 +
  191 + </style>
  192 +
  193 + <template>
  194 +
  195 + <div class="button-container" title$="{{tooltip}}" on-click="_onOpenClick">
  196 + <p>
  197 + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
  198 + </p>
  199 + </div>
  200 +
  201 + <paper-material id="window" class="window" elevation="0">
  202 +
  203 + <div class="transparent"></div>
  204 +
  205 + <paper-fab class="close" mini icon="close" on-click="_onCloseClick"></paper-fab>
  206 + <paper-fab id="addPostit" icon="add" title='{text key="spodcollaborative+add_content"}' class="dropdown-trigger"></paper-fab>
  207 + <div id="container_content">
  208 + <content>
  209 + <ul>
  210 + <!--<template is="dom-repeat" items="{{data}}">
  211 + <li>
  212 + <a href="#">
  213 + <h3>{{items.title}}</h3>
  214 + <p>{{items.content}}</p>
  215 + </a>
  216 + </li>
  217 + </template>-->
  218 +
  219 + <li>
  220 + <a href="#">
  221 + <h3>My note #1</h3>
  222 + <p>
  223 + At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis
  224 + praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias
  225 + excepturi sint occaecati cupiditate non provident
  226 + </p>
  227 + </a>
  228 + </li>
  229 + <li>
  230 + <a href="#">
  231 + <h2>My note #2</h2>
  232 + <p>
  233 + Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod
  234 + maxime placeat facere possimus
  235 + </p>
  236 + </a>
  237 + </li>
  238 + <li>
  239 + <a href="#">
  240 + <h2>My note #3</h2>
  241 + <p>
  242 + Similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
  243 + Et harum quidem rerum facilis est et expedita distinctio
  244 + </p>
  245 + </a>
  246 + </li>
  247 + <li>
  248 + <a href="#">
  249 + <h2>My note #4</h2>
  250 + <p>
  251 + Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet
  252 + ut et voluptates repudiandae sint et molestiae non recusandae.
  253 + </p>
  254 + </a>
  255 + </li>
  256 + <li>
  257 + <a href="#">
  258 + <h2>My note #5</h2>
  259 + <p>
  260 + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
  261 + tempor incididunt ut labore et dolore magna aliqua
  262 + </p>
  263 + </a>
  264 + </li>
  265 + <!-- <li>
  266 + <a href="#">
  267 + <h2>My note #6</h2>
  268 + <p>
  269 + Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
  270 + </p>
  271 + </a>
  272 + </li>
  273 + <li>
  274 + <a href="#">
  275 + <h2>My note #7</h2>
  276 + <p>
  277 + Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias
  278 + consequatur aut perferendis doloribus asperiores repellat
  279 + </p>
  280 + </a>
  281 + </li>
  282 + <li>
  283 + <a href="#">
  284 + <h2>My note #8</h2>
  285 + <p>
  286 + Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
  287 + Excepteur sint occaecat cupidatat non proident
  288 + </p>
  289 + </a>
  290 + </li>
  291 + <li>
  292 + <a href="#">
  293 + <h2>My note #9</h2>
  294 + <p>Sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
  295 + </a>
  296 + </li>-->
  297 + </ul>
  298 + </content>
  299 + </div>
  300 +
  301 + </paper-material>
  302 +
  303 + </template>
  304 +
  305 + <script type="text/javascript" src="../shared_js/perfect-scrollbar/js/perfect-scrollbar.jquery.js"></script>
  306 +
  307 + <script>
  308 +
  309 + Polymer({
  310 +
  311 + is: 'postit-container-controllet',
  312 +
  313 + properties: {
  314 + tooltip: {
  315 + type: String,
  316 + value: ""
  317 + },
  318 + data : {
  319 + type: Array,
  320 + value: undefined
  321 + }
  322 + },
  323 +
  324 + ready: function(){
  325 + $(this.$.container_content).perfectScrollbar();
  326 + },
  327 +
  328 + _onOpenClick: function() {
  329 + $(this.$.window).show();
  330 + },
  331 +
  332 + _onCloseClick: function(){
  333 + $(this.$.window).hide();
  334 + }
  335 +
  336 + });
  337 +
  338 + </script>
  339 +</dom-module>
... ...