Merge ticket css in main css
This commit is contained in:
parent
e9c4ae8f01
commit
9f11cf77df
@ -93,7 +93,7 @@ class modTicketsup extends DolibarrModules
|
|||||||
// Set this to 1 if module has its own models directory
|
// Set this to 1 if module has its own models directory
|
||||||
'models' => 1,
|
'models' => 1,
|
||||||
// Set this to relative path of css if module has its own css file
|
// Set this to relative path of css if module has its own css file
|
||||||
'css' => '/ticketsup/css/ticketsup.css',
|
//'css' => '',
|
||||||
// Set here all hooks context managed by module
|
// Set here all hooks context managed by module
|
||||||
'hooks' => array('admin')
|
'hooks' => array('admin')
|
||||||
// Set here all workflow context managed by module
|
// Set here all workflow context managed by module
|
||||||
|
|||||||
@ -93,6 +93,7 @@ NameToCreate=Name of third party to create
|
|||||||
YourRole=Your roles
|
YourRole=Your roles
|
||||||
YourQuotaOfUsersIsReached=Your quota of active users is reached !
|
YourQuotaOfUsersIsReached=Your quota of active users is reached !
|
||||||
NbOfUsers=Nb of users
|
NbOfUsers=Nb of users
|
||||||
|
NbOfPermissions=Nb of permissions
|
||||||
DontDowngradeSuperAdmin=Only a superadmin can downgrade a superadmin
|
DontDowngradeSuperAdmin=Only a superadmin can downgrade a superadmin
|
||||||
HierarchicalResponsible=Supervisor
|
HierarchicalResponsible=Supervisor
|
||||||
HierarchicView=Hierarchical view
|
HierarchicView=Hierarchical view
|
||||||
|
|||||||
@ -5128,6 +5128,275 @@ div.tabsElem a.tab {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ============================================================================== */
|
||||||
|
/* Ticket module */
|
||||||
|
/* ============================================================================== */
|
||||||
|
|
||||||
|
#cd-timeline {
|
||||||
|
position: relative;
|
||||||
|
padding: 2em 0;
|
||||||
|
margin-bottom: 2em;
|
||||||
|
}
|
||||||
|
#cd-timeline::before {
|
||||||
|
/* this is the vertical line */
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 18px;
|
||||||
|
height: 100%;
|
||||||
|
width: 4px;
|
||||||
|
background: #d7e4ed;
|
||||||
|
}
|
||||||
|
@media only screen and (min-width: 1170px) {
|
||||||
|
#cd-timeline {
|
||||||
|
margin-bottom: 3em;
|
||||||
|
}
|
||||||
|
#cd-timeline::before {
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -2px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.cd-timeline-block {
|
||||||
|
position: relative;
|
||||||
|
margin: 2em 0;
|
||||||
|
}
|
||||||
|
.cd-timeline-block:after {
|
||||||
|
content: "";
|
||||||
|
display: table;
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
.cd-timeline-block:first-child {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
.cd-timeline-block:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
@media only screen and (min-width: 1170px) {
|
||||||
|
.cd-timeline-block {
|
||||||
|
margin: 4em 0;
|
||||||
|
}
|
||||||
|
.cd-timeline-block:first-child {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
.cd-timeline-block:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.cd-timeline-img {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
border-radius: 50%;
|
||||||
|
box-shadow: 0 0 0 4px white, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
|
||||||
|
background: #d7e4ed;
|
||||||
|
}
|
||||||
|
.cd-timeline-img img {
|
||||||
|
display: block;
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
position: relative;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
margin-left: -12px;
|
||||||
|
margin-top: -12px;
|
||||||
|
}
|
||||||
|
.cd-timeline-img.cd-picture {
|
||||||
|
background: #75ce66;
|
||||||
|
}
|
||||||
|
.cd-timeline-img.cd-movie {
|
||||||
|
background: #c03b44;
|
||||||
|
}
|
||||||
|
.cd-timeline-img.cd-location {
|
||||||
|
background: #f0ca45;
|
||||||
|
}
|
||||||
|
@media only screen and (min-width: 1170px) {
|
||||||
|
.cd-timeline-img {
|
||||||
|
width: 60px;
|
||||||
|
height: 60px;
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -30px;
|
||||||
|
/* Force Hardware Acceleration in WebKit */
|
||||||
|
-webkit-transform: translateZ(0);
|
||||||
|
-webkit-backface-visibility: hidden;
|
||||||
|
}
|
||||||
|
.cssanimations .cd-timeline-img.is-hidden {
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
.cssanimations .cd-timeline-img.bounce-in {
|
||||||
|
visibility: visible;
|
||||||
|
-webkit-animation: cd-bounce-1 0.6s;
|
||||||
|
-moz-animation: cd-bounce-1 0.6s;
|
||||||
|
animation: cd-bounce-1 0.6s;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@-webkit-keyframes cd-bounce-1 {
|
||||||
|
0% {
|
||||||
|
opacity: 0;
|
||||||
|
-webkit-transform: scale(0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
60% {
|
||||||
|
opacity: 1;
|
||||||
|
-webkit-transform: scale(1.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
-webkit-transform: scale(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@-moz-keyframes cd-bounce-1 {
|
||||||
|
0% {
|
||||||
|
opacity: 0;
|
||||||
|
-moz-transform: scale(0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
60% {
|
||||||
|
opacity: 1;
|
||||||
|
-moz-transform: scale(1.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
-moz-transform: scale(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@keyframes cd-bounce-1 {
|
||||||
|
0% {
|
||||||
|
opacity: 0;
|
||||||
|
-webkit-transform: scale(0.5);
|
||||||
|
-moz-transform: scale(0.5);
|
||||||
|
-ms-transform: scale(0.5);
|
||||||
|
-o-transform: scale(0.5);
|
||||||
|
transform: scale(0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
60% {
|
||||||
|
opacity: 1;
|
||||||
|
-webkit-transform: scale(1.2);
|
||||||
|
-moz-transform: scale(1.2);
|
||||||
|
-ms-transform: scale(1.2);
|
||||||
|
-o-transform: scale(1.2);
|
||||||
|
transform: scale(1.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
-webkit-transform: scale(1);
|
||||||
|
-moz-transform: scale(1);
|
||||||
|
-ms-transform: scale(1);
|
||||||
|
-o-transform: scale(1);
|
||||||
|
transform: scale(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.cd-timeline-content {
|
||||||
|
position: relative;
|
||||||
|
margin-left: 60px;
|
||||||
|
background: white;
|
||||||
|
border-radius: 0.25em;
|
||||||
|
padding: 1em;
|
||||||
|
background-image: -o-linear-gradient(bottom, rgba(0,0,0,0.1) 0%, rgba(230,230,230,0.4) 100%);
|
||||||
|
background-image: -moz-linear-gradient(bottom, rgba(0,0,0,0.1) 0%, rgba(230,230,230,0.4) 100%);
|
||||||
|
background-image: -webkit-linear-gradient(bottom, rgba(0,0,0,0.1) 0%, rgba(230,230,230,0.4) 100%);
|
||||||
|
background-image: -ms-linear-gradient(bottom, rgba(0,0,0,0.1) 0%, rgba(230,230,230,0.4) 100%);
|
||||||
|
background-image: linear-gradient(bottom, rgba(0,0,0,0.1) 0%, rgba(230,230,230,0.4) 100%);
|
||||||
|
}
|
||||||
|
.cd-timeline-content:after {
|
||||||
|
content: "";
|
||||||
|
display: table;
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
.cd-timeline-content h2 {
|
||||||
|
color: #303e49;
|
||||||
|
}
|
||||||
|
.cd-timeline-content .cd-date {
|
||||||
|
font-size: 13px;
|
||||||
|
font-size: 0.8125rem;
|
||||||
|
}
|
||||||
|
.cd-timeline-content .cd-date {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
.cd-timeline-content p {
|
||||||
|
margin: 1em 0;
|
||||||
|
line-height: 1.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cd-timeline-content .cd-date {
|
||||||
|
float: left;
|
||||||
|
padding: .2em 0;
|
||||||
|
opacity: .7;
|
||||||
|
}
|
||||||
|
.cd-timeline-content::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 16px;
|
||||||
|
right: 100%;
|
||||||
|
height: 0;
|
||||||
|
width: 0;
|
||||||
|
border: 7px solid transparent;
|
||||||
|
border-right: 7px solid white;
|
||||||
|
}
|
||||||
|
@media only screen and (min-width: 768px) {
|
||||||
|
.cd-timeline-content h2 {
|
||||||
|
font-size: 20px;
|
||||||
|
font-size: 1.25rem;
|
||||||
|
}
|
||||||
|
.cd-timeline-content {
|
||||||
|
font-size: 16px;
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
.cd-timeline-content .cd-read-more, .cd-timeline-content .cd-date {
|
||||||
|
font-size: 14px;
|
||||||
|
font-size: 0.875rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media only screen and (min-width: 1170px) {
|
||||||
|
.cd-timeline-content {
|
||||||
|
margin-left: 0;
|
||||||
|
padding: 1.6em;
|
||||||
|
width: 43%;
|
||||||
|
}
|
||||||
|
.cd-timeline-content::before {
|
||||||
|
top: 24px;
|
||||||
|
left: 100%;
|
||||||
|
border-color: transparent;
|
||||||
|
border-left-color: white;
|
||||||
|
}
|
||||||
|
.cd-timeline-content .cd-read-more {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.cd-timeline-content .cd-date {
|
||||||
|
position: absolute;
|
||||||
|
width: 55%;
|
||||||
|
left: 115%;
|
||||||
|
top: 6px;
|
||||||
|
font-size: 16px;
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
.cd-timeline-block:nth-child(even) .cd-timeline-content {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
.cd-timeline-block:nth-child(even) .cd-timeline-content::before {
|
||||||
|
top: 24px;
|
||||||
|
left: auto;
|
||||||
|
right: 100%;
|
||||||
|
border-color: transparent;
|
||||||
|
border-right-color: white;
|
||||||
|
}
|
||||||
|
.cd-timeline-block:nth-child(even) .cd-timeline-content .cd-read-more {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
.cd-timeline-block:nth-child(even) .cd-timeline-content .cd-date {
|
||||||
|
left: auto;
|
||||||
|
right: 115%;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ============================================================================== */
|
/* ============================================================================== */
|
||||||
/* CSS style used for small screen */
|
/* CSS style used for small screen */
|
||||||
|
|||||||
@ -5086,6 +5086,275 @@ border-top-right-radius: 6px;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* ============================================================================== */
|
||||||
|
/* Ticket module */
|
||||||
|
/* ============================================================================== */
|
||||||
|
|
||||||
|
#cd-timeline {
|
||||||
|
position: relative;
|
||||||
|
padding: 2em 0;
|
||||||
|
margin-bottom: 2em;
|
||||||
|
}
|
||||||
|
#cd-timeline::before {
|
||||||
|
/* this is the vertical line */
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 18px;
|
||||||
|
height: 100%;
|
||||||
|
width: 4px;
|
||||||
|
background: #d7e4ed;
|
||||||
|
}
|
||||||
|
@media only screen and (min-width: 1170px) {
|
||||||
|
#cd-timeline {
|
||||||
|
margin-bottom: 3em;
|
||||||
|
}
|
||||||
|
#cd-timeline::before {
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -2px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.cd-timeline-block {
|
||||||
|
position: relative;
|
||||||
|
margin: 2em 0;
|
||||||
|
}
|
||||||
|
.cd-timeline-block:after {
|
||||||
|
content: "";
|
||||||
|
display: table;
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
.cd-timeline-block:first-child {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
.cd-timeline-block:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
@media only screen and (min-width: 1170px) {
|
||||||
|
.cd-timeline-block {
|
||||||
|
margin: 4em 0;
|
||||||
|
}
|
||||||
|
.cd-timeline-block:first-child {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
.cd-timeline-block:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.cd-timeline-img {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
border-radius: 50%;
|
||||||
|
box-shadow: 0 0 0 4px white, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
|
||||||
|
background: #d7e4ed;
|
||||||
|
}
|
||||||
|
.cd-timeline-img img {
|
||||||
|
display: block;
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
position: relative;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
margin-left: -12px;
|
||||||
|
margin-top: -12px;
|
||||||
|
}
|
||||||
|
.cd-timeline-img.cd-picture {
|
||||||
|
background: #75ce66;
|
||||||
|
}
|
||||||
|
.cd-timeline-img.cd-movie {
|
||||||
|
background: #c03b44;
|
||||||
|
}
|
||||||
|
.cd-timeline-img.cd-location {
|
||||||
|
background: #f0ca45;
|
||||||
|
}
|
||||||
|
@media only screen and (min-width: 1170px) {
|
||||||
|
.cd-timeline-img {
|
||||||
|
width: 60px;
|
||||||
|
height: 60px;
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -30px;
|
||||||
|
/* Force Hardware Acceleration in WebKit */
|
||||||
|
-webkit-transform: translateZ(0);
|
||||||
|
-webkit-backface-visibility: hidden;
|
||||||
|
}
|
||||||
|
.cssanimations .cd-timeline-img.is-hidden {
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
.cssanimations .cd-timeline-img.bounce-in {
|
||||||
|
visibility: visible;
|
||||||
|
-webkit-animation: cd-bounce-1 0.6s;
|
||||||
|
-moz-animation: cd-bounce-1 0.6s;
|
||||||
|
animation: cd-bounce-1 0.6s;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@-webkit-keyframes cd-bounce-1 {
|
||||||
|
0% {
|
||||||
|
opacity: 0;
|
||||||
|
-webkit-transform: scale(0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
60% {
|
||||||
|
opacity: 1;
|
||||||
|
-webkit-transform: scale(1.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
-webkit-transform: scale(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@-moz-keyframes cd-bounce-1 {
|
||||||
|
0% {
|
||||||
|
opacity: 0;
|
||||||
|
-moz-transform: scale(0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
60% {
|
||||||
|
opacity: 1;
|
||||||
|
-moz-transform: scale(1.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
-moz-transform: scale(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@keyframes cd-bounce-1 {
|
||||||
|
0% {
|
||||||
|
opacity: 0;
|
||||||
|
-webkit-transform: scale(0.5);
|
||||||
|
-moz-transform: scale(0.5);
|
||||||
|
-ms-transform: scale(0.5);
|
||||||
|
-o-transform: scale(0.5);
|
||||||
|
transform: scale(0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
60% {
|
||||||
|
opacity: 1;
|
||||||
|
-webkit-transform: scale(1.2);
|
||||||
|
-moz-transform: scale(1.2);
|
||||||
|
-ms-transform: scale(1.2);
|
||||||
|
-o-transform: scale(1.2);
|
||||||
|
transform: scale(1.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
-webkit-transform: scale(1);
|
||||||
|
-moz-transform: scale(1);
|
||||||
|
-ms-transform: scale(1);
|
||||||
|
-o-transform: scale(1);
|
||||||
|
transform: scale(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.cd-timeline-content {
|
||||||
|
position: relative;
|
||||||
|
margin-left: 60px;
|
||||||
|
background: white;
|
||||||
|
border-radius: 0.25em;
|
||||||
|
padding: 1em;
|
||||||
|
background-image: -o-linear-gradient(bottom, rgba(0,0,0,0.1) 0%, rgba(230,230,230,0.4) 100%);
|
||||||
|
background-image: -moz-linear-gradient(bottom, rgba(0,0,0,0.1) 0%, rgba(230,230,230,0.4) 100%);
|
||||||
|
background-image: -webkit-linear-gradient(bottom, rgba(0,0,0,0.1) 0%, rgba(230,230,230,0.4) 100%);
|
||||||
|
background-image: -ms-linear-gradient(bottom, rgba(0,0,0,0.1) 0%, rgba(230,230,230,0.4) 100%);
|
||||||
|
background-image: linear-gradient(bottom, rgba(0,0,0,0.1) 0%, rgba(230,230,230,0.4) 100%);
|
||||||
|
}
|
||||||
|
.cd-timeline-content:after {
|
||||||
|
content: "";
|
||||||
|
display: table;
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
.cd-timeline-content h2 {
|
||||||
|
color: #303e49;
|
||||||
|
}
|
||||||
|
.cd-timeline-content .cd-date {
|
||||||
|
font-size: 13px;
|
||||||
|
font-size: 0.8125rem;
|
||||||
|
}
|
||||||
|
.cd-timeline-content .cd-date {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
.cd-timeline-content p {
|
||||||
|
margin: 1em 0;
|
||||||
|
line-height: 1.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cd-timeline-content .cd-date {
|
||||||
|
float: left;
|
||||||
|
padding: .2em 0;
|
||||||
|
opacity: .7;
|
||||||
|
}
|
||||||
|
.cd-timeline-content::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 16px;
|
||||||
|
right: 100%;
|
||||||
|
height: 0;
|
||||||
|
width: 0;
|
||||||
|
border: 7px solid transparent;
|
||||||
|
border-right: 7px solid white;
|
||||||
|
}
|
||||||
|
@media only screen and (min-width: 768px) {
|
||||||
|
.cd-timeline-content h2 {
|
||||||
|
font-size: 20px;
|
||||||
|
font-size: 1.25rem;
|
||||||
|
}
|
||||||
|
.cd-timeline-content {
|
||||||
|
font-size: 16px;
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
.cd-timeline-content .cd-read-more, .cd-timeline-content .cd-date {
|
||||||
|
font-size: 14px;
|
||||||
|
font-size: 0.875rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media only screen and (min-width: 1170px) {
|
||||||
|
.cd-timeline-content {
|
||||||
|
margin-left: 0;
|
||||||
|
padding: 1.6em;
|
||||||
|
width: 43%;
|
||||||
|
}
|
||||||
|
.cd-timeline-content::before {
|
||||||
|
top: 24px;
|
||||||
|
left: 100%;
|
||||||
|
border-color: transparent;
|
||||||
|
border-left-color: white;
|
||||||
|
}
|
||||||
|
.cd-timeline-content .cd-read-more {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.cd-timeline-content .cd-date {
|
||||||
|
position: absolute;
|
||||||
|
width: 55%;
|
||||||
|
left: 115%;
|
||||||
|
top: 6px;
|
||||||
|
font-size: 16px;
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
.cd-timeline-block:nth-child(even) .cd-timeline-content {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
.cd-timeline-block:nth-child(even) .cd-timeline-content::before {
|
||||||
|
top: 24px;
|
||||||
|
left: auto;
|
||||||
|
right: 100%;
|
||||||
|
border-color: transparent;
|
||||||
|
border-right-color: white;
|
||||||
|
}
|
||||||
|
.cd-timeline-block:nth-child(even) .cd-timeline-content .cd-read-more {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
.cd-timeline-block:nth-child(even) .cd-timeline-content .cd-date {
|
||||||
|
left: auto;
|
||||||
|
right: 115%;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ============================================================================== */
|
/* ============================================================================== */
|
||||||
/* CSS style used for small screen */
|
/* CSS style used for small screen */
|
||||||
|
|||||||
@ -1,265 +0,0 @@
|
|||||||
#cd-timeline {
|
|
||||||
position: relative;
|
|
||||||
padding: 2em 0;
|
|
||||||
margin-bottom: 2em;
|
|
||||||
}
|
|
||||||
#cd-timeline::before {
|
|
||||||
/* this is the vertical line */
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 18px;
|
|
||||||
height: 100%;
|
|
||||||
width: 4px;
|
|
||||||
background: #d7e4ed;
|
|
||||||
}
|
|
||||||
@media only screen and (min-width: 1170px) {
|
|
||||||
#cd-timeline {
|
|
||||||
margin-bottom: 3em;
|
|
||||||
}
|
|
||||||
#cd-timeline::before {
|
|
||||||
left: 50%;
|
|
||||||
margin-left: -2px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.cd-timeline-block {
|
|
||||||
position: relative;
|
|
||||||
margin: 2em 0;
|
|
||||||
}
|
|
||||||
.cd-timeline-block:after {
|
|
||||||
content: "";
|
|
||||||
display: table;
|
|
||||||
clear: both;
|
|
||||||
}
|
|
||||||
.cd-timeline-block:first-child {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
.cd-timeline-block:last-child {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
@media only screen and (min-width: 1170px) {
|
|
||||||
.cd-timeline-block {
|
|
||||||
margin: 4em 0;
|
|
||||||
}
|
|
||||||
.cd-timeline-block:first-child {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
.cd-timeline-block:last-child {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.cd-timeline-img {
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 40px;
|
|
||||||
height: 40px;
|
|
||||||
border-radius: 50%;
|
|
||||||
box-shadow: 0 0 0 4px white, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
|
|
||||||
background: #d7e4ed;
|
|
||||||
}
|
|
||||||
.cd-timeline-img img {
|
|
||||||
display: block;
|
|
||||||
width: 24px;
|
|
||||||
height: 24px;
|
|
||||||
position: relative;
|
|
||||||
left: 50%;
|
|
||||||
top: 50%;
|
|
||||||
margin-left: -12px;
|
|
||||||
margin-top: -12px;
|
|
||||||
}
|
|
||||||
.cd-timeline-img.cd-picture {
|
|
||||||
background: #75ce66;
|
|
||||||
}
|
|
||||||
.cd-timeline-img.cd-movie {
|
|
||||||
background: #c03b44;
|
|
||||||
}
|
|
||||||
.cd-timeline-img.cd-location {
|
|
||||||
background: #f0ca45;
|
|
||||||
}
|
|
||||||
@media only screen and (min-width: 1170px) {
|
|
||||||
.cd-timeline-img {
|
|
||||||
width: 60px;
|
|
||||||
height: 60px;
|
|
||||||
left: 50%;
|
|
||||||
margin-left: -30px;
|
|
||||||
/* Force Hardware Acceleration in WebKit */
|
|
||||||
-webkit-transform: translateZ(0);
|
|
||||||
-webkit-backface-visibility: hidden;
|
|
||||||
}
|
|
||||||
.cssanimations .cd-timeline-img.is-hidden {
|
|
||||||
visibility: hidden;
|
|
||||||
}
|
|
||||||
.cssanimations .cd-timeline-img.bounce-in {
|
|
||||||
visibility: visible;
|
|
||||||
-webkit-animation: cd-bounce-1 0.6s;
|
|
||||||
-moz-animation: cd-bounce-1 0.6s;
|
|
||||||
animation: cd-bounce-1 0.6s;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@-webkit-keyframes cd-bounce-1 {
|
|
||||||
0% {
|
|
||||||
opacity: 0;
|
|
||||||
-webkit-transform: scale(0.5);
|
|
||||||
}
|
|
||||||
|
|
||||||
60% {
|
|
||||||
opacity: 1;
|
|
||||||
-webkit-transform: scale(1.2);
|
|
||||||
}
|
|
||||||
|
|
||||||
100% {
|
|
||||||
-webkit-transform: scale(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@-moz-keyframes cd-bounce-1 {
|
|
||||||
0% {
|
|
||||||
opacity: 0;
|
|
||||||
-moz-transform: scale(0.5);
|
|
||||||
}
|
|
||||||
|
|
||||||
60% {
|
|
||||||
opacity: 1;
|
|
||||||
-moz-transform: scale(1.2);
|
|
||||||
}
|
|
||||||
|
|
||||||
100% {
|
|
||||||
-moz-transform: scale(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@keyframes cd-bounce-1 {
|
|
||||||
0% {
|
|
||||||
opacity: 0;
|
|
||||||
-webkit-transform: scale(0.5);
|
|
||||||
-moz-transform: scale(0.5);
|
|
||||||
-ms-transform: scale(0.5);
|
|
||||||
-o-transform: scale(0.5);
|
|
||||||
transform: scale(0.5);
|
|
||||||
}
|
|
||||||
|
|
||||||
60% {
|
|
||||||
opacity: 1;
|
|
||||||
-webkit-transform: scale(1.2);
|
|
||||||
-moz-transform: scale(1.2);
|
|
||||||
-ms-transform: scale(1.2);
|
|
||||||
-o-transform: scale(1.2);
|
|
||||||
transform: scale(1.2);
|
|
||||||
}
|
|
||||||
|
|
||||||
100% {
|
|
||||||
-webkit-transform: scale(1);
|
|
||||||
-moz-transform: scale(1);
|
|
||||||
-ms-transform: scale(1);
|
|
||||||
-o-transform: scale(1);
|
|
||||||
transform: scale(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.cd-timeline-content {
|
|
||||||
position: relative;
|
|
||||||
margin-left: 60px;
|
|
||||||
background: white;
|
|
||||||
border-radius: 0.25em;
|
|
||||||
padding: 1em;
|
|
||||||
background-image: -o-linear-gradient(bottom, rgba(0,0,0,0.1) 0%, rgba(230,230,230,0.4) 100%);
|
|
||||||
background-image: -moz-linear-gradient(bottom, rgba(0,0,0,0.1) 0%, rgba(230,230,230,0.4) 100%);
|
|
||||||
background-image: -webkit-linear-gradient(bottom, rgba(0,0,0,0.1) 0%, rgba(230,230,230,0.4) 100%);
|
|
||||||
background-image: -ms-linear-gradient(bottom, rgba(0,0,0,0.1) 0%, rgba(230,230,230,0.4) 100%);
|
|
||||||
background-image: linear-gradient(bottom, rgba(0,0,0,0.1) 0%, rgba(230,230,230,0.4) 100%);
|
|
||||||
}
|
|
||||||
.cd-timeline-content:after {
|
|
||||||
content: "";
|
|
||||||
display: table;
|
|
||||||
clear: both;
|
|
||||||
}
|
|
||||||
.cd-timeline-content h2 {
|
|
||||||
color: #303e49;
|
|
||||||
}
|
|
||||||
.cd-timeline-content .cd-date {
|
|
||||||
font-size: 13px;
|
|
||||||
font-size: 0.8125rem;
|
|
||||||
}
|
|
||||||
.cd-timeline-content .cd-date {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
.cd-timeline-content p {
|
|
||||||
margin: 1em 0;
|
|
||||||
line-height: 1.6;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cd-timeline-content .cd-date {
|
|
||||||
float: left;
|
|
||||||
padding: .2em 0;
|
|
||||||
opacity: .7;
|
|
||||||
}
|
|
||||||
.cd-timeline-content::before {
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
top: 16px;
|
|
||||||
right: 100%;
|
|
||||||
height: 0;
|
|
||||||
width: 0;
|
|
||||||
border: 7px solid transparent;
|
|
||||||
border-right: 7px solid white;
|
|
||||||
}
|
|
||||||
@media only screen and (min-width: 768px) {
|
|
||||||
.cd-timeline-content h2 {
|
|
||||||
font-size: 20px;
|
|
||||||
font-size: 1.25rem;
|
|
||||||
}
|
|
||||||
.cd-timeline-content {
|
|
||||||
font-size: 16px;
|
|
||||||
font-size: 1rem;
|
|
||||||
}
|
|
||||||
.cd-timeline-content .cd-read-more, .cd-timeline-content .cd-date {
|
|
||||||
font-size: 14px;
|
|
||||||
font-size: 0.875rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@media only screen and (min-width: 1170px) {
|
|
||||||
.cd-timeline-content {
|
|
||||||
margin-left: 0;
|
|
||||||
padding: 1.6em;
|
|
||||||
width: 43%;
|
|
||||||
}
|
|
||||||
.cd-timeline-content::before {
|
|
||||||
top: 24px;
|
|
||||||
left: 100%;
|
|
||||||
border-color: transparent;
|
|
||||||
border-left-color: white;
|
|
||||||
}
|
|
||||||
.cd-timeline-content .cd-read-more {
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
.cd-timeline-content .cd-date {
|
|
||||||
position: absolute;
|
|
||||||
width: 55%;
|
|
||||||
left: 115%;
|
|
||||||
top: 6px;
|
|
||||||
font-size: 16px;
|
|
||||||
font-size: 1rem;
|
|
||||||
}
|
|
||||||
.cd-timeline-block:nth-child(even) .cd-timeline-content {
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
.cd-timeline-block:nth-child(even) .cd-timeline-content::before {
|
|
||||||
top: 24px;
|
|
||||||
left: auto;
|
|
||||||
right: 100%;
|
|
||||||
border-color: transparent;
|
|
||||||
border-right-color: white;
|
|
||||||
}
|
|
||||||
.cd-timeline-block:nth-child(even) .cd-timeline-content .cd-read-more {
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
.cd-timeline-block:nth-child(even) .cd-timeline-content .cd-date {
|
|
||||||
left: auto;
|
|
||||||
right: 115%;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@ -99,9 +99,10 @@ if (empty($reshook))
|
|||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
$sql = "SELECT g.rowid, g.nom as name, g.note, g.entity, g.datec, COUNT(DISTINCT ugu.fk_user) as nb";
|
$sql = "SELECT g.rowid, g.nom as name, g.note, g.entity, g.datec, COUNT(DISTINCT ugu.fk_user) as nb, COUNT(DISTINCT ugr.fk_id) as nbpermissions";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."usergroup as g";
|
$sql.= " FROM ".MAIN_DB_PREFIX."usergroup as g";
|
||||||
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."usergroup_user as ugu ON ugu.fk_usergroup = g.rowid";
|
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."usergroup_user as ugu ON ugu.fk_usergroup = g.rowid";
|
||||||
|
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."usergroup_rights as ugr ON ugr.fk_usergroup = g.rowid";
|
||||||
if (! empty($conf->multicompany->enabled) && $conf->entity == 1 && ($conf->global->MULTICOMPANY_TRANSVERSE_MODE || ($user->admin && ! $user->entity)))
|
if (! empty($conf->multicompany->enabled) && $conf->entity == 1 && ($conf->global->MULTICOMPANY_TRANSVERSE_MODE || ($user->admin && ! $user->entity)))
|
||||||
{
|
{
|
||||||
$sql.= " WHERE g.entity IS NOT NULL";
|
$sql.= " WHERE g.entity IS NOT NULL";
|
||||||
@ -110,11 +111,8 @@ else
|
|||||||
{
|
{
|
||||||
$sql.= " WHERE g.entity IN (0,".$conf->entity.")";
|
$sql.= " WHERE g.entity IN (0,".$conf->entity.")";
|
||||||
}
|
}
|
||||||
if (! empty($search_group))
|
if (! empty($search_group)) natural_search(array("g.nom", "g.note"), $search_group);
|
||||||
{
|
if ($sall) $sql.= natural_search(array("g.nom", "g.note"), $sall);
|
||||||
$sql .= " AND (g.nom LIKE '%".$db->escape($search_group)."%' OR g.note LIKE '%".$db->escape($search_group)."%')";
|
|
||||||
}
|
|
||||||
if ($sall) $sql.= " AND (g.nom LIKE '%".$db->escape($sall)."%' OR g.note LIKE '%".$db->escape($sall)."%')";
|
|
||||||
$sql.= " GROUP BY g.rowid, g.nom, g.note, g.entity, g.datec";
|
$sql.= " GROUP BY g.rowid, g.nom, g.note, g.entity, g.datec";
|
||||||
$sql.= $db->order($sortfield,$sortorder);
|
$sql.= $db->order($sortfield,$sortorder);
|
||||||
|
|
||||||
@ -172,6 +170,7 @@ if ($resql)
|
|||||||
print_liste_field_titre("Entity",$_SERVER["PHP_SELF"],"g.entity",$param,"",'align="center"',$sortfield,$sortorder);
|
print_liste_field_titre("Entity",$_SERVER["PHP_SELF"],"g.entity",$param,"",'align="center"',$sortfield,$sortorder);
|
||||||
}
|
}
|
||||||
print_liste_field_titre("NbOfUsers",$_SERVER["PHP_SELF"],"nb",$param,"",'align="center"',$sortfield,$sortorder);
|
print_liste_field_titre("NbOfUsers",$_SERVER["PHP_SELF"],"nb",$param,"",'align="center"',$sortfield,$sortorder);
|
||||||
|
print_liste_field_titre("NbOfPermissions",$_SERVER["PHP_SELF"],"nbpermissions",$param,"",'align="center"',$sortfield,$sortorder);
|
||||||
print_liste_field_titre("DateCreationShort",$_SERVER["PHP_SELF"],"g.datec",$param,"",'align="right"',$sortfield,$sortorder);
|
print_liste_field_titre("DateCreationShort",$_SERVER["PHP_SELF"],"g.datec",$param,"",'align="right"',$sortfield,$sortorder);
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
@ -200,6 +199,7 @@ if ($resql)
|
|||||||
print '<td align="center">'.$mc->label.'</td>';
|
print '<td align="center">'.$mc->label.'</td>';
|
||||||
}
|
}
|
||||||
print '<td align="center">'.$obj->nb.'</td>';
|
print '<td align="center">'.$obj->nb.'</td>';
|
||||||
|
print '<td align="center">'.$obj->nbpermissions.'</td>';
|
||||||
print '<td align="right" class="nowrap">'.dol_print_date($db->jdate($obj->datec),"dayhour").'</td>';
|
print '<td align="right" class="nowrap">'.dol_print_date($db->jdate($obj->datec),"dayhour").'</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
$i++;
|
$i++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user