Files
odoo_source/addons/planner/static/src/less/planner.less
T
Darshan Kalola 337946ab80 [FIX] planner,planner_crm: display issues
- re-enable animation effect when click on "Mark as done" button
- examples for the notepads do appear again when clicking on "?"
- progress bar should be at a few % at first launch of the planner
2015-02-24 09:26:13 +01:00

548 lines
16 KiB
Plaintext

// FONTS
@font-face {
font-family: 'Simple-Line-Icons';
src:url('/planner/static/src/fonts/Simple-Line-Icons.eot');
src:url('/planner/static/src/fonts/Simple-Line-Icons.eot?#iefix') format('embedded-opentype'),
url('/planner/static/src/fonts/Simple-Line-Icons.woff') format('woff'),
url('/planner/static/src/fonts/Simple-Line-Icons.ttf') format('truetype'),
url('/planner/static/src/fonts/Simple-Line-Icons.svg#Simple-Line-Icons') format('svg');
font-weight: normal;
font-style: normal;
}
// use data attributes for inserting icons
// http://www.issme.net/india/assets/plugins/line-icons/
[data-icon]:before {
font-family: 'Simple-Line-Icons';
content: attr(data-icon);
speak: none;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
//Animations
@keyframes markAnim {
0% {
opacity: 0;
transform: scaleX(0.50) scaleY(0.50);
}
30% {
opacity: 1;
transform: scaleX(1.00) scaleY(1.00);
}
100% {
opacity: 0;
transform: scaleX(1.00) scaleY(1.00);
}
}
@-moz-keyframes markAnim {
0% {
opacity: 0;
-moz-transform: scaleX(0.50) scaleY(0.50);
}
30% {
opacity: 1;
-moz-transform: scaleX(1.00) scaleY(1.00);
}
100% {
opacity: 0;
-moz-transform: scaleX(1.00) scaleY(1.00);
}
}
@-webkit-keyframes markAnim {
0% {
opacity: 0;
-webkit-transform: scaleX(0.50) scaleY(0.50);
}
30% {
opacity: 1;
-webkit-transform: scaleX(1.00) scaleY(1.00);
}
100% {
opacity: 0;
-webkit-transform: scaleX(1.00) scaleY(1.00);
}
}
@-o-keyframes markAnim {
0% {
opacity: 0;
-o-transform: scaleX(0.50) scaleY(0.50);
}
30% {
opacity: 1;
-o-transform: scaleX(1.00) scaleY(1.00);
}
100% {
opacity: 0;
-o-transform: scaleX(1.00) scaleY(1.00);
}
}
@-ms-keyframes markAnim {
0% {
opacity: 0;
-ms-transform: scaleX(0.50) scaleY(0.50);
}
30% {
opacity: 1;
-ms-transform: scaleX(1.00) scaleY(1.00);
}
100% {
opacity: 0;
-ms-transform: scaleX(1.00) scaleY(1.00);
}
}
//bounce effect
@-webkit-keyframes bounceIn {
0%, 20%, 40%, 60%, 80%, 100% {
-webkit-transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
}
0% {
opacity: 0;
-webkit-transform: scale3d(.3, .3, .3);
transform: scale3d(.3, .3, .3);
}
20% {
-webkit-transform: scale3d(1.1, 1.1, 1.1);
transform: scale3d(1.1, 1.1, 1.1);
}
40% {
-webkit-transform: scale3d(.9, .9, .9);
transform: scale3d(.9, .9, .9);
}
60% {
opacity: 1;
-webkit-transform: scale3d(1.03, 1.03, 1.03);
transform: scale3d(1.03, 1.03, 1.03);
}
80% {
-webkit-transform: scale3d(.97, .97, .97);
transform: scale3d(.97, .97, .97);
}
100% {
opacity: 1;
-webkit-transform: scale3d(1, 1, 1);
transform: scale3d(1, 1, 1);
}
}
@keyframes bounceIn {
0%, 20%, 40%, 60%, 80%, 100% {
-webkit-transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
}
0% {
opacity: 0;
-webkit-transform: scale3d(.3, .3, .3);
transform: scale3d(.3, .3, .3);
}
20% {
-webkit-transform: scale3d(1.1, 1.1, 1.1);
transform: scale3d(1.1, 1.1, 1.1);
}
40% {
-webkit-transform: scale3d(.9, .9, .9);
transform: scale3d(.9, .9, .9);
}
60% {
opacity: 1;
-webkit-transform: scale3d(1.03, 1.03, 1.03);
transform: scale3d(1.03, 1.03, 1.03);
}
80% {
-webkit-transform: scale3d(.97, .97, .97);
transform: scale3d(.97, .97, .97);
}
100% {
opacity: 1;
-webkit-transform: scale3d(1, 1, 1);
transform: scale3d(1, 1, 1);
}
}
#oe_main_menu_navbar.navbar {
.oe_planner_systray {
width: 100px;
height: 13px;
margin: 10px 0 0 0;
div.oe_planner_progress {
cursor: pointer;
}
.oe_planner_progress {
div.progress {
height: 13px;
}
}
}
}
#PlannerModal {
.planner-page{
display : none;
}
.planner-dialog {
width: 85%;
font-family: "Lato", serif;
max-width: 1024px;
overflow: hidden;
margin-left: auto;
margin-right: auto;
//button close
button.close {
width: 13px;
height: 30px;
opacity: 1;
line-height: 30px;
font-size: 16px;
color: rgba(51, 51, 51, 0.54);
position: absolute;
right: 15px;
z-index: 9999;
}
button.close:hover {color:#222;}
.modal-content {
border-radius: 2px;
background: #f3f3f3;
}
.modal-body {
padding: 0;
overflow: hidden;
max-height: inherit;
}
.row.oe_planner {padding: 0 15px;}
.mb1{
margin-bottom: 1em!important;
}
.mb2{
margin-bottom: 2em!important;
}
.mb3{
margin-bottom: 3em!important;
}
.mb5{
margin-bottom: 5em!important;
}
.odoo_purple, a.btn.odoo_purple {
background-color: #A24689;
border:none;
text-shadow:none;
color: white;
}
.odoo_purple.btn:hover{
background: #a24689;
color: #fff;
}
.planner_footer {
padding: 0;
height: auto;
overflow-y: visible;
overflow-x: initial;
display: block;
background: transparent;
position: fixed;
z-index: 99;
right: 0;
bottom: 0;
.shadow {
background: url("/planner/static/src/img/shadow.png") center center repeat-x;
height: 12px;
width: 100%;
display: block;
border-bottom: 1px solid #E5E5E5;
opacity: 0.3;
}
> div {
padding: 1em 15px;
background: #f7f7f7;
min-height: 60px;
}
button.fa-check-square-o {
background-color: transparent;
line-height: 0.8em;
font-size: 2em;
border: none;
&:focus {outline:none}
&:hover:before{
content: "\f096";
color: #888;
position: absolute;
margin-left: 2px;
}
&:hover i:before{
content: "\f00c";
color: #CACACA;
}
span {display: none;}
}
button.fa-check-square-o:after {
color: #7C7C7C;
content: "Unckeck";
position: absolute;
left: 5.5em;
font-size: .5em;
opacity: 0;
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-ms-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
}
button.fa-check-square-o:hover:after {
left: 5em;
opacity: 1;
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-ms-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
}
.btn-next i {
transform: translateY(1px);
position: relative;
display: inline-block;
font-size: 1.3em;
margin-left: 10px;
}
.span-next {
position: absolute;
right: 9em;
top: 0.8em;
opacity: 0;
line-height: 2.2em;
height: 1.3em;
font-size: 1em;
display: block;
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-ms-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
.next-block:hover .span-next {
right: 9.6em;
opacity: 1;
}
.mark_as_done span {
font-family: "Lato", serif;
}
}
// MARKED ANIMATION
.planner-page.marked:after {
position: absolute;
left: 0;
top: 0;
font-size: 20em;
font-family: "FontAwesome";
content: "\f00c";
width: 100%;
height: 100%;
z-index: 999;
color: #21b799;
vertical-align: middle;
padding: 0.3em 0.7em;
animation: markAnim ease-in-out 1s;
animation-iteration-count: 1;
transform-origin: 50% 50%;
animation-fill-mode:forwards; /*when the spec is finished*/
-webkit-animation: markAnim ease-in-out 1s;
-webkit-animation-iteration-count: 1;
-webkit-transform-origin: 50% 50%;
-webkit-animation-fill-mode:forwards; /*Chrome 16+, Safari 4+*/
-moz-animation: markAnim ease-in-out 1s;
-moz-animation-iteration-count: 1;
-moz-transform-origin: 50% 50%;
-moz-animation-fill-mode:forwards; /*FF 5+*/
-o-animation: markAnim ease-in-out 1s;
-o-animation-iteration-count: 1;
-o-transform-origin: 50% 50%;
-o-animation-fill-mode:forwards; /*Not implemented yet*/
-ms-animation: markAnim ease-in-out 1s;
-ms-animation-iteration-count: 1;
-ms-transform-origin: 50% 50%;
-ms-animation-fill-mode:forwards; /*IE 10+*/
}
// PROGRESS
.progress_container {
padding: 0;
.progress_col {
border-right: 1px solid #E5E5E5;
background: #f7f7f7;
padding: 10px 12px 0 12px;
i.fa{
font-size: 1.7em;
padding-left: 0;
margin-right: 0.2em;
margin-top: 0.1em;
color: #929292;
}
.counter {
padding: 6px 0 0 8px;
font-weight: bold;
color: #727272;
font-size: 13px;
}
.progress {
background-color: #C4C4C4;
height: 30px;
padding: 3px;
border-radius: 4px;
}
.progress-bar {
background: #A24689;
background: -moz-linear-gradient(top, #cc59ab 0%, #a24689 8%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#cc59ab), color-stop(8%,#a24689));
background: -webkit-linear-gradient(top, #cc59ab 0%,#a24689 8%);
background: -o-linear-gradient(top, #cc59ab 0%,#a24689 8%);
background: -ms-linear-gradient(top, #cc59ab 0%,#a24689 8%);
background: linear-gradient(to bottom, #cc59ab 0%,#a24689 8%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cc59ab', endColorstr='#a24689',GradientType=0 );
border-radius: 4px;
font-weight: bold;
text-shadow: 0 1px 0 #4E2443;
line-height: 25px;
height: 95%;
box-shadow: 0 1px 0 #7A3067;
}
}
}
.dropdown.mobile {
padding: 10px 12px 0 0px;
.dropdown-menu{
width: 100%;
height: 250px;
overflow: auto;
}
.btn {
height: 30px;
line-height: 15px;
text-align: justify;
}
.dropdown-menu a {
color: #333;
padding: 3px;
}
.dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus {
background-color: #F3F3F3;
}
.dropdown-menu h4 {
padding: 10px 15px 0;
border-top: 1px solid #EAEAEA;
}
.fa {
color: #21b799;
margin-right: 5px;
}
}
.side {
padding: 5px 5px 20px 10px;
border-right: 1px solid #E5E5E5;
background: #f7f7f7;
overflow-x: hidden;
overflow-y: auto;
.nav-stacked h4 {
font-size: 15px;
color: #444;
text-transform: uppercase;
font-weight: bold;
margin-top: 20px;
}
.nav-stacked h4 i {
margin-right: 8px;
color: #A24689;
}
.nav-stacked li a {
padding: 3px 0 3px 38px;
margin: auto -10px;
color: #444;
font-size: 13px;
border-radius: 0;
}
.nav-stacked li a:hover, .nav-stacked li a:focus {
text-decoration: none;
background-color: transparent;
color: black;
}
.nav-stacked li.active a{
background-color: #EAEAEA;
}
.fa.fa-fw.fa-check {
color: #21b799;
margin-left: -5px;
margin-right: 5px;
}
}
}
.pages {
color: #444;
margin-top:-60px;
overflow-x: hidden;
overflow-y: auto;
> div {
padding-top: 25px;
position: relative;
height: 100%;
> h1, > h2, > h3, > h4, > h5, > h6, > p, > strong, > i {
text-shadow:none;
}
h1 {
margin-top: 0;
font-size: 3.5em;
font-weight: 100;
margin-bottom: 0.5em;
}
}
}
&.odoo_colors {
a {color: #2E917D}
a:hover, a:focus {color: #21b799; text-decoration: none;}
textarea:focus, input:focus, select:focus, option:focus, .btn:focus, a:focus {outline-color: #26A38A;}
.btn-default {
background-color: transparent;
color: #7C7C7C;
line-height: 19px;
}
.btn-default:hover {
color: #333;
}
.btn-primary {
background: #21b799;
border-color: #26A38A;
text-shadow: 0 1px 0 #2E917D;
font-weight: normal;
line-height: 19px;
color: white;
}
.btn-primary:hover {
background-color: #2E917D;
color: white;
}
}
}