Grammalecte  Check-in [5fa26cad0f]

Overview
Comment:[fx] WebExt: new CSS spinner
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256: 5fa26cad0fac769d402257a03c1ae1a63253230504bdfe78f10c73a57df82f86
User & Date: olr on 2017-09-28 10:57:09
Other Links: manifest | tags
Context
2017-10-05
11:44
[fr][oxt] erreur du formateur de texte sur les exposants check-in: 82833bf1fa user: olr tags: trunk, fr
2017-09-28
10:57
[fx] WebExt: new CSS spinner check-in: 5fa26cad0f user: olr tags: trunk, fx
10:28
[fx] WebExt: animated button -> 3 cycles only check-in: 708600552e user: olr tags: trunk, fx
Changes

Modified gc_lang/fr/webext/content_scripts/panel.css from [42670977b4] to [16626ac74c].

92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112

113
114

115
116
117
118
119
120
121
122
123
124
125





126
127
128
129




130
131



132
133
    min-width: 100%;
    height: calc(100% - 55px); /* panel height - title_bar */
    overflow: auto;
}


/*
    CSS Spinner
    Double bounce
    http://tobiasahlin.com/spinkit/
*/
.grammalecte_spinner {
    visibility: hidden;
    width: 40px;
    height: 40px;
    position: absolute;
    top: 2px;
    right: 180px;
}
.grammalecte_spinner .bounce1,
.grammalecte_spinner .bounce2 {

    width: 100%;
    height: 100%;

    border-radius: 50%;
    background-color: hsl(0, 50%, 75%);
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: grammalecte-sk-bounce 2.0s infinite ease-in-out;
}
.grammalecte_spinner .bounce2 {
    animation-delay: -1.0s;
}






@keyframes grammalecte-sk-bounce {
    0%, 100% { 
        transform: scale(0.0);




    } 50% { 
        transform: scale(1.0);



    }
}







|
<
<



|
|

|
|
<
<
<
>
|
|
>

<
<
|
|
|
|

<
<
|
>
>
>
>
>
|
<
|
|
>
>
>
>
|
|
>
>
>


92
93
94
95
96
97
98
99


100
101
102
103
104
105
106
107



108
109
110
111
112


113
114
115
116
117


118
119
120
121
122
123
124

125
126
127
128
129
130
131
132
133
134
135
136
137
    min-width: 100%;
    height: calc(100% - 55px); /* panel height - title_bar */
    overflow: auto;
}


/*
    Spinner


*/
.grammalecte_spinner {
    visibility: hidden;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 0px;
    right: 200px;



    background-color: hsla(210, 80%, 80%, .5);
    border: 10px solid hsla(210, 80%, 60%, .5);
    border-top: 10px solid hsla(210, 100%, 40%, .7);
    border-bottom: 10px solid hsla(210, 100%, 40%, .7);
    border-radius: 50%;


    text-align: center;
    cursor: pointer;
    box-shadow: 0 0 0 0 hsla(210, 50%, 50%, .5);
    animation: grammalecte-spin-big .5s linear infinite;
}



@keyframes grammalecte-spin-big {
    0% {
        transform: rotate(0deg) scale(1);
        border-top: 10px solid hsla(210, 100%, 40%, .7);
        border-bottom: 10px solid hsla(210, 100%, 40%, .7);
    }

    70% {
        transform: rotate(180deg) scale(.8);
        border-top: 10px solid hsla(0, 100%, 40%, .7);
        border-bottom: 10px solid hsla(0, 100%, 40%, .7);
        box-shadow: 0 0 0 20px hsla(210, 50%, 50%, 0);
    }
    100% {
        transform: rotate(360deg) scale(1);
        border-top: 10px solid hsla(210, 100%, 40%, .7);
        border-bottom: 10px solid hsla(210, 100%, 40%, .7);
        box-shadow: 0 0 0 0 hsla(210, 50%, 50%, 0);
    }
}

Modified gc_lang/fr/webext/content_scripts/panel.js from [d29d130a09] to [8cea12fb98].

54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
        xButtonLine.appendChild(this._createMoveButton("stickToBottom", "_", "Coller en bas"));
        xButtonLine.appendChild(this._createCloseButton());
        return xButtonLine;
    }

    _createWaitIcon () {
        let xWaitIcon = oGrammalecte.createNode("div", {className: "grammalecte_spinner"});
        xWaitIcon.appendChild(oGrammalecte.createNode("div", {className: "bounce1"}));
        xWaitIcon.appendChild(oGrammalecte.createNode("div", {className: "bounce2"}));
        return xWaitIcon;
    }

    _createCopyButton () {
        let xButton = oGrammalecte.createNode("div", {id: "grammalecte_clipboard_button", className: "grammalecte_copy_button", textContent: "∑", title: "Copier dans le presse-papiers"});
        xButton.onclick = function () { this.copyTextToClipboard(); }.bind(this);
        return xButton;







|
|







54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
        xButtonLine.appendChild(this._createMoveButton("stickToBottom", "_", "Coller en bas"));
        xButtonLine.appendChild(this._createCloseButton());
        return xButtonLine;
    }

    _createWaitIcon () {
        let xWaitIcon = oGrammalecte.createNode("div", {className: "grammalecte_spinner"});
        //xWaitIcon.appendChild(oGrammalecte.createNode("div", {className: "bounce1"}));
        //xWaitIcon.appendChild(oGrammalecte.createNode("div", {className: "bounce2"}));
        return xWaitIcon;
    }

    _createCopyButton () {
        let xButton = oGrammalecte.createNode("div", {id: "grammalecte_clipboard_button", className: "grammalecte_copy_button", textContent: "∑", title: "Copier dans le presse-papiers"});
        xButton.onclick = function () { this.copyTextToClipboard(); }.bind(this);
        return xButton;