polish integration graphique: modals
This commit is contained in:
parent
3b3914aed6
commit
b7ae41fc45
5 changed files with 426 additions and 156 deletions
|
@ -94,7 +94,6 @@ body {
|
|||
color: #333;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
|
||||
user-select: none;
|
||||
-o-user-select: none;
|
||||
-moz-user-select: none;
|
||||
|
@ -136,13 +135,13 @@ a:hover, a:focus, a:active {
|
|||
}
|
||||
|
||||
.main-header {
|
||||
margin:2em 0;
|
||||
margin:2em 0 0 0;
|
||||
display: flex;
|
||||
align-content: space-around;
|
||||
align-items: center;
|
||||
}
|
||||
.logo {
|
||||
width: 400px;
|
||||
width: 350px;
|
||||
}
|
||||
.base-line {
|
||||
font-family: 'geomanistitalic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||
|
@ -155,6 +154,58 @@ a:hover, a:focus, a:active {
|
|||
max-width:1140px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.container-fluid {
|
||||
margin: 1em;
|
||||
}
|
||||
.board-container {
|
||||
margin: 1em auto 0 auto;
|
||||
width:1140px;
|
||||
}
|
||||
|
||||
.actions {
|
||||
float:right;
|
||||
margin-top: 1em;
|
||||
}
|
||||
.actions a {
|
||||
font-weight: bold;
|
||||
text-transform: uppercase;
|
||||
font-family: 'geomanistregular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||
margin-left:1em;
|
||||
transition: color ease-out .2s;
|
||||
}
|
||||
.actions a:hover {
|
||||
text-decoration: none;
|
||||
color:#e33d8a;
|
||||
}
|
||||
|
||||
#smallify .fa-search-plus ~ .big {
|
||||
display:inline-block;
|
||||
}
|
||||
#smallify .fa-search-plus ~ .big ~ .small {
|
||||
display:none;
|
||||
}
|
||||
#smallify .fa-search-minus ~ .big {
|
||||
display:none;
|
||||
}
|
||||
#smallify .fa-search-minus ~ .big ~ .small {
|
||||
display:inline-block;
|
||||
}
|
||||
#full-page .fa-expand ~ .full-screen {
|
||||
display:inline-block;
|
||||
}
|
||||
#full-page .fa-expand ~ .full-screen ~ .contain-screen {
|
||||
display:none;
|
||||
}
|
||||
#full-page .fa-compress ~ .full-screen {
|
||||
display:none;
|
||||
}
|
||||
#full-page .fa-compress ~ .full-screen ~ .contain-screen {
|
||||
display:inline-block;
|
||||
}
|
||||
.clearfix {
|
||||
clear:both;
|
||||
}
|
||||
|
||||
#board {
|
||||
position: relative;
|
||||
background-color: #EEE;
|
||||
|
@ -176,6 +227,7 @@ a:hover, a:focus, a:active {
|
|||
display: block;
|
||||
height: 466px;
|
||||
box-shadow: 1px 1px 1px #aaa;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
#board-doodles {
|
||||
|
@ -187,13 +239,6 @@ a:hover, a:focus, a:active {
|
|||
background-image: url('/images/scribbles2.png');
|
||||
}
|
||||
|
||||
|
||||
|
||||
.hover .content {
|
||||
xborder: solid rgba(92, 157, 181, 0.5) 3px;
|
||||
}
|
||||
|
||||
|
||||
.card-icon {
|
||||
display: none;
|
||||
position: absolute;
|
||||
|
@ -392,13 +437,10 @@ h2 {
|
|||
}
|
||||
|
||||
.names input:hover {
|
||||
xpadding: 2px 2px 2px 2px;
|
||||
xborder: solid 1px #E5E5E5;
|
||||
outline: 0;
|
||||
width: 100px;
|
||||
background: -webkit-gradient(linear, left top, left 25, from(#FFFFFF), color-stop(4%, #EEEEEE), to(#FFFFFF));
|
||||
background: -moz-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px);
|
||||
xopacity: .5;
|
||||
background: none;
|
||||
box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 8px;
|
||||
border-radius: 10px;
|
||||
|
@ -649,21 +691,6 @@ input.text {
|
|||
border-bottom: dashed 3px #64d29b;
|
||||
}
|
||||
|
||||
input:hover {
|
||||
x-webkit-box-shadow: 0px 0px 4px #000;
|
||||
xbackground: none;
|
||||
}
|
||||
|
||||
|
||||
#go {
|
||||
/* padding: 0 10px 5px 0; */
|
||||
/* border-radius: 10px; */
|
||||
/* margin-bottom: 10px; */
|
||||
/* font-size: 40px; */
|
||||
/* xborder: solid 1px; */
|
||||
|
||||
}
|
||||
|
||||
#go:hover {
|
||||
box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, .2);
|
||||
text-decoration: none;
|
||||
|
@ -695,9 +722,11 @@ input:hover {
|
|||
|
||||
.notice-bar {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
margin: 1em 0 0 0;
|
||||
text-align: center;
|
||||
color:#e33d8a;
|
||||
text-transform:uppercase;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.notice-bar a {
|
||||
|
@ -747,15 +776,7 @@ img {
|
|||
bottom: 4px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.filler {
|
||||
xwidth: 100%;
|
||||
xbackground-color: rgba(255, 0, 0, 0.1);
|
||||
xheight: 100%;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
position: absolute;
|
||||
|
@ -923,5 +944,228 @@ img {
|
|||
}
|
||||
|
||||
.credits {
|
||||
float:right;
|
||||
}
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/**
|
||||
* modal.css
|
||||
* Author: Pedro Laxe
|
||||
* Version: 1.0.6
|
||||
* License: GPLv2
|
||||
**/
|
||||
.modal {
|
||||
left: 50%;
|
||||
margin: -250px 0 0 -32%;
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
top: -50%;
|
||||
visibility: hidden;
|
||||
width: 65%;
|
||||
box-shadow: 0 3px 3px rgba(0,0,0,.25);
|
||||
box-sizing: border-box;
|
||||
transition: all .4s ease-in-out;
|
||||
-moz-transition: all .4s ease-in-out;
|
||||
-webkit-transition: all .4s ease-in-out;
|
||||
}
|
||||
.modal:target {
|
||||
opacity: 1;
|
||||
top: 50%;
|
||||
visibility: visible;
|
||||
}
|
||||
.modal .header, .modal .footer {
|
||||
border-bottom: 1px solid #e7e7e7;
|
||||
border-radius: 5px 5px 0 0;
|
||||
}
|
||||
.modal .footer {
|
||||
border: none;
|
||||
border-top: 1px solid #e7e7e7;
|
||||
border-radius: 0 0 5px 5px;
|
||||
}
|
||||
.modal h2 {
|
||||
margin: 0;
|
||||
color: #333333;
|
||||
}
|
||||
.modal .btn {
|
||||
float: right;
|
||||
}
|
||||
.modal .copy, .modal .header, .modal .footer {
|
||||
padding: 5px;
|
||||
color: #333333;
|
||||
}
|
||||
.modal-content {
|
||||
background: #f7f7f7;
|
||||
position: relative;
|
||||
z-index: 20;
|
||||
border-radius: 5px;
|
||||
color: #333333;
|
||||
}
|
||||
.modal .copy {
|
||||
background: #fff;
|
||||
min-height:200px;
|
||||
}
|
||||
.modal .overlay {
|
||||
background-color: #000;
|
||||
background: rgba(0,0,0,.8);
|
||||
height: 100%;
|
||||
left: 0;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
z-index: 10;
|
||||
}
|
||||
.copy ul li a {
|
||||
color: #333333;
|
||||
text-decoration: none;
|
||||
}
|
||||
/* Responsive Options */
|
||||
@media screen and (min-width: 768px) {
|
||||
.modal{
|
||||
width:600px;
|
||||
margin:-250px 0px 0px -18.2%;
|
||||
top: -50%;
|
||||
}
|
||||
}
|
||||
.modalcss-button {
|
||||
/* Structure */
|
||||
display: inline-block;
|
||||
zoom: 1;
|
||||
line-height: normal;
|
||||
white-space: nowrap;
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
-webkit-user-drag: none;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Firefox: Get rid of the inner focus border */
|
||||
.modalcss-button::-moz-focus-inner {
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.modalcss-button {
|
||||
font-family: inherit;
|
||||
font-size: 100%;
|
||||
padding: 0.5em 1em;
|
||||
color: #444; /* rgba not supported (IE 8) */
|
||||
color: rgba(0, 0, 0, 0.80); /* rgba supported */
|
||||
border: 1px solid #999; /*IE 6/7/8*/
|
||||
border: none rgba(0, 0, 0, 0); /*IE9 + everything else*/
|
||||
background-color: #E6E6E6;
|
||||
text-decoration: none;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.modalcss-button-hover,
|
||||
.modalcss-button:hover,
|
||||
.modalcss-button:focus {
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#1a000000',GradientType=0);
|
||||
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(transparent), color-stop(40%, rgba(0,0,0, 0.05)), to(rgba(0,0,0, 0.10)));
|
||||
background-image: -webkit-linear-gradient(transparent, rgba(0,0,0, 0.05) 40%, rgba(0,0,0, 0.10));
|
||||
background-image: -moz-linear-gradient(top, rgba(0,0,0, 0.05) 0%, rgba(0,0,0, 0.10));
|
||||
background-image: -o-linear-gradient(transparent, rgba(0,0,0, 0.05) 40%, rgba(0,0,0, 0.10));
|
||||
background-image: linear-gradient(transparent, rgba(0,0,0, 0.05) 40%, rgba(0,0,0, 0.10));
|
||||
}
|
||||
.modalcss-button:focus {
|
||||
outline: 0;
|
||||
}
|
||||
.modalcss-button-active,
|
||||
.modalcss-button:active {
|
||||
box-shadow: 0 0 0 1px rgba(0,0,0, 0.15) inset, 0 0 6px rgba(0,0,0, 0.20) inset;
|
||||
border-color: #000\9;
|
||||
}
|
||||
.modalcss-button[disabled],
|
||||
.modalcss-button-disabled,
|
||||
.modalcss-button-disabled:hover,
|
||||
.modalcss-button-disabled:focus,
|
||||
.modalcss-button-disabled:active {
|
||||
border: none;
|
||||
background-image: none;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
filter: alpha(opacity=40);
|
||||
-khtml-opacity: 0.40;
|
||||
-moz-opacity: 0.40;
|
||||
opacity: 0.40;
|
||||
cursor: not-allowed;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.modalcss-button-hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Firefox: Get rid of the inner focus border */
|
||||
.modalcss-button::-moz-focus-inner{
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.modalcss-button-primary,
|
||||
.modalcss-button-selected,
|
||||
a.modalcss-button-primary,
|
||||
a.modalcss-button-selected {
|
||||
background-color: rgb(0, 120, 231);
|
||||
color: #fff;
|
||||
}
|
||||
.button-success,
|
||||
.button-error,
|
||||
.button-warning,
|
||||
.button-secondary {
|
||||
color: white;
|
||||
border-radius: 4px;
|
||||
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.button-success {
|
||||
background: rgb(28, 184, 65); /* this is a green */
|
||||
}
|
||||
|
||||
.button-error {
|
||||
background: rgb(202, 60, 60); /* this is a maroon */
|
||||
}
|
||||
|
||||
.button-warning {
|
||||
background: rgb(223, 117, 20); /* this is an orange */
|
||||
}
|
||||
|
||||
.button-secondary {
|
||||
background: rgb(66, 184, 221); /* this is a light blue */
|
||||
}
|
||||
/* Responsive Video */
|
||||
.video {
|
||||
position: relative;
|
||||
padding-bottom: 56.25%;
|
||||
padding-top: 30px; height: 0; overflow: hidden;
|
||||
}
|
||||
.video iframe,
|
||||
.video object,
|
||||
.video embed {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
/* Close Button */
|
||||
.box3 {
|
||||
width: 25px;
|
||||
right: 0px;
|
||||
position: absolute;
|
||||
margin: 5px;
|
||||
}
|
||||
svg {
|
||||
display: block;
|
||||
}
|
||||
.close-x {
|
||||
stroke: black;
|
||||
fill: transparent;
|
||||
stroke-linecap: round;
|
||||
stroke-width: 5;
|
||||
}
|
||||
|
|
|
@ -1,3 +1,13 @@
|
|||
function toggleFullScreen() {
|
||||
if (!document.fullscreenElement) {
|
||||
document.documentElement.requestFullscreen();
|
||||
} else {
|
||||
if (document.exitFullscreen) {
|
||||
document.exitFullscreen();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var cards = {};
|
||||
var totalcolumns = 0;
|
||||
var columns = [];
|
||||
|
@ -1080,21 +1090,6 @@ $(document).ready(function(){
|
|||
|
||||
}, 500);
|
||||
|
||||
// Tabs
|
||||
$('.board-outline')
|
||||
.before(
|
||||
'<ul class="nav nav-tabs">'+
|
||||
'<li role="presentation" class="active"><a href="#scrumblr" aria-controls="scrumblr" role="tab" data-toggle="tab"><i class="fa fa-fw fa-lg fa-object-group" aria-hidden="true"></i> Tableau</a></li>'+
|
||||
'<li role="presentation" class="pull-right"><a href="javascript:void(0);" aria-hidden="true" id="full-page" title="Plein écran"><i class="fa fa-fw fa-lg fa-expand"></i><span class="sr-only">Plein écran</span></a></li>'+
|
||||
'<li role="presentation" class="pull-right"><a href="#revisions" aria-controls="revisions" role="tab" data-toggle="tab" title="'+$('.revisions h3').text()+'"><i class="fa fa-fw fa-lg fa-history" aria-hidden="true"></i><span class="sr-only">'+$('.revisions h3').text()+'</span></a></li>'+
|
||||
'<li role="presentation" class="pull-right"><a href="#share" aria-controls="share" role="tab" data-toggle="tab" title="'+$('.share h3').text()+'"><i class="fa fa-fw fa-lg fa-share-alt" aria-hidden="true"></i><span class="sr-only">'+$('.share h3').text()+'</span></a></li>'+
|
||||
'<li role="presentation" class="pull-right"><a href="#export-import" aria-controls="export-import" role="tab" data-toggle="tab" title="'+$('.export h3').text()+'/'+$('.import h3').text()+'"><i class="fa fa-fw fa-lg fa-exchange" aria-hidden="true"></i><span class="sr-only">'+$('.export h3').text()+'/'+$('.import h3').text()+'</span></a></li>'+
|
||||
'<li role="presentation" class="pull-right"><a href="#about" aria-controls="about" role="tab" data-toggle="tab" title="'+$('#tuto-faq h2').text()+'"><i class="fa fa-fw fa-lg fa-question-circle" aria-hidden="true"></i><span class="sr-only">'+$('#tuto-faq h2').text()+'</span></a></li>'+
|
||||
'</ul>'
|
||||
)
|
||||
.wrap(
|
||||
'<div class="tab-content" style="margin:20px 0"><div role="tabpanel" class="tab-pane active" id="scrumblr"></div></div>'
|
||||
)
|
||||
|
||||
$('.names').css({'margin':'auto','width':'auto'}).addClass('pull-right');
|
||||
|
||||
|
@ -1114,32 +1109,28 @@ $(document).ready(function(){
|
|||
|
||||
// Style
|
||||
$('#create-card').addClass('vert fa-3x').css('opacity','1');
|
||||
$('#smallify').removeClass('fa-expand').addClass('fa-search-minus').on('click',function(){
|
||||
$('#smallify').on('click',function(){
|
||||
if (currentTheme == "bigcards") {
|
||||
$(this).removeClass('fa-search-plus').addClass('fa-search-minus');
|
||||
$(this).children('i').removeClass('fa-search-plus').addClass('fa-search-minus');
|
||||
} else {
|
||||
$(this).removeClass('fa-search-minus').addClass('fa-search-plus');
|
||||
$(this).children('i').removeClass('fa-search-minus').addClass('fa-search-plus');
|
||||
}
|
||||
})
|
||||
|
||||
$('#full-page').on('click', function(){
|
||||
if ($('.container.ombre').length) {
|
||||
if ($(this).children('i').hasClass('fa-expand')) {
|
||||
$(this).children('i').removeClass('fa-expand').addClass('fa-compress');
|
||||
$('.container.ombre').removeClass('container').addClass('container-fluid');
|
||||
$('#colibris-menu, .main-header, .credits').hide();
|
||||
} else {
|
||||
$(this).children('i').removeClass('fa-compress').addClass('fa-expand');
|
||||
$('.container-fluid.ombre').removeClass('container-fluid').addClass('container');
|
||||
$('#colibris-menu, .main-header, .credits').show();
|
||||
}
|
||||
toggleFullScreen();
|
||||
})
|
||||
|
||||
$('main hr').hide();
|
||||
|
||||
/** Mode iframe **/
|
||||
if(top.location!=self.document.location) {
|
||||
|
||||
$('#full-page').hide().trigger('click');
|
||||
$('main hr, header').hide();
|
||||
|
||||
$('#colibris-menu, .main-header, .credits').hide();
|
||||
}
|
||||
|
||||
// put URL in share input
|
||||
|
@ -1190,4 +1181,11 @@ getJSON(url,
|
|||
styleElement.innerHTML = data.style;
|
||||
document.getElementById('colibris-menu').appendChild(styleElement);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
//Close with Escape Button
|
||||
window.onkeydown = function( event ) {
|
||||
if ( event.keyCode === 27 ) {
|
||||
document.getElementById('close').click();
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue