[frio] Move specific event styles to main theme stylesheet

- Fix hovercard.css formatting
This commit is contained in:
Hypolite Petovan 2020-08-15 19:01:24 -04:00
parent 2e286d6a57
commit 2505b33615
4 changed files with 456 additions and 435 deletions

View file

@ -1,302 +1,345 @@
.hovercard { .hovercard {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
z-index: 1040; z-index: 1040;
display: none; display: none;
/*max-width: 276px;*/ max-width: 400px;
max-width: 400px; padding: 1px;
padding: 1px; text-align: left;
text-align: left; background-color: #ffffff;
background-color: #ffffff; background-clip: padding-box;
background-clip: padding-box; border: 1px solid #cccccc;
border: 1px solid #cccccc; border: 1px solid rgba(0, 0, 0, 0.2);
border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 200px;
border-radius: 200px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); white-space: normal;
white-space: normal; }
}
.hovercard.top { .hovercard.top {
margin-top: -10px; margin-top: -10px;
} }
.hovercard.right {
margin-left: 10px; .hovercard.right {
} margin-left: 10px;
.hovercard.bottom { }
margin-top: 10px;
} .hovercard.bottom {
.hovercard.left { margin-top: 10px;
margin-left: -10px; }
}
.hovercard-title { .hovercard.left {
margin: 0; margin-left: -10px;
padding: 8px 14px; }
font-size: 14px;
font-weight: normal; .hovercard-title {
line-height: 18px; margin: 0;
background-color: #f7f7f7; padding: 8px 14px;
border-bottom: 1px solid #ebebeb; font-size: 14px;
border-radius: 199px 199px 0 0; font-weight: normal;
display: none; line-height: 18px;
} background-color: #f7f7f7;
.hovercard-content { border-bottom: 1px solid #ebebeb;
color: #777; border-radius: 199px 199px 0 0;
padding: 0; display: none;
} }
.hovercard > .arrow,
.hovercard > .arrow:after { .hovercard-content {
position: absolute; padding: 0;
display: block; }
width: 0;
height: 0; .hovercard > .arrow,
border-color: transparent; .hovercard > .arrow:after {
border-style: solid; position: absolute;
} display: block;
.hovercard > .arrow { width: 0;
border-width: 11px; height: 0;
} border-color: transparent;
.hovercard > .arrow:after { border-style: solid;
border-width: 10px; }
content: "";
} .hovercard > .arrow {
.hovercard.top > .arrow { border-width: 11px;
left: 50%; }
margin-left: -11px;
border-bottom-width: 0; .hovercard > .arrow:after {
border-top-color: #999999; border-width: 10px;
border-top-color: rgba(0, 0, 0, 0.25); content: "";
bottom: -11px; }
}
.hovercard.top > .arrow:after { .hovercard.top > .arrow {
content: " "; left: 50%;
bottom: 1px; margin-left: -11px;
margin-left: -10px; border-bottom-width: 0;
border-bottom-width: 0; border-top-color: #999999;
border-top-color: #ffffff; border-top-color: rgba(0, 0, 0, 0.25);
} bottom: -11px;
.hovercard.right > .arrow { }
top: 50%;
left: -11px; .hovercard.top > .arrow:after {
margin-top: -11px; content: " ";
border-left-width: 0; bottom: 1px;
border-right-color: #999999; margin-left: -10px;
border-right-color: rgba(0, 0, 0, 0.25); border-bottom-width: 0;
} border-top-color: #ffffff;
.hovercard.right > .arrow:after { }
content: " ";
left: 1px; .hovercard.right > .arrow {
bottom: -10px; top: 50%;
border-left-width: 0; left: -11px;
border-right-color: #ffffff; margin-top: -11px;
} border-left-width: 0;
.hovercard.bottom > .arrow { border-right-color: #999999;
left: 50%; border-right-color: rgba(0, 0, 0, 0.25);
margin-left: -11px; }
border-top-width: 0;
border-bottom-color: #999999; .hovercard.right > .arrow:after {
border-bottom-color: rgba(0, 0, 0, 0.25); content: " ";
top: -11px; left: 1px;
} bottom: -10px;
.hovercard.bottom > .arrow:after { border-left-width: 0;
content: " "; border-right-color: #ffffff;
top: 1px; }
margin-left: -10px;
border-top-width: 0; .hovercard.bottom > .arrow {
border-bottom-color: #ffffff; left: 50%;
} margin-left: -11px;
.hovercard.left > .arrow { border-top-width: 0;
top: 50%; border-bottom-color: #999999;
right: -11px; border-bottom-color: rgba(0, 0, 0, 0.25);
margin-top: -11px; top: -11px;
border-right-width: 0; }
border-left-color: #999999;
border-left-color: rgba(0, 0, 0, 0.25); .hovercard.bottom > .arrow:after {
} content: " ";
.hovercard.left > .arrow:after { top: 1px;
content: " "; margin-left: -10px;
right: 1px; border-top-width: 0;
border-right-width: 0; border-bottom-color: #ffffff;
border-left-color: #ffffff; }
bottom: -10px;
} .hovercard.left > .arrow {
top: 50%;
.right-aligned { right: -11px;
float: right !important; margin-top: -11px;
} border-right-width: 0;
.left-align { border-left-color: #999999;
float: left !important; border-left-color: rgba(0, 0, 0, 0.25);
} }
.hidden {
display: none !important; .hovercard.left > .arrow:after {
visibility: hidden !important; content: " ";
} right: 1px;
.hovercard h1, border-right-width: 0;
.hovercard .h1, border-left-color: #ffffff;
.hovercard h2, bottom: -10px;
.hovercard .h2, }
.hovercard h3,
.hovercard .h3 { .right-aligned {
margin: 0; float: right !important;
padding: 0; }
}
.hovercard h3 { .left-align {
font-size: 24px; float: left !important;
} }
.hovercard h4,
.hovercard .h4, .hidden {
.hovercard h5, display: none !important;
.hovercard .h5, visibility: hidden !important;
.hovercard h6, }
.hovercard .h6 {
margin: 0; .hovercard h1,
padding: 0; .hovercard .h1,
} .hovercard h2,
.hovercard h4.text-center { .hovercard .h2,
margin-top: 10px; .hovercard h3,
margin-bottom: 5px; .hovercard .h3 {
} margin: 0;
.hovercard sup { padding: 0;
top: 0; }
}
.hovercard small, .hovercard h3 {
.hovercard .small { font-size: 24px;
font-size: 85%; }
}
.hovercard ul, .hovercard h4,
.hovercard ol { .hovercard .h4,
margin: 0; .hovercard h5,
padding: 0; .hovercard .h5,
margin-bottom: 0; .hovercard h6,
} .hovercard .h6 {
.hovercard a:hover, margin: 0;
.hovercard a:active, padding: 0;
.hovercard a:focus, }
.hovercard a:visited {
text-decoration: none !important; .hovercard h4.text-center {
} margin-top: 10px;
margin-bottom: 5px;
}
/* Basic hovercard */
.basic-content { .hovercard sup {
padding: 9px; top: 0;
} }
.image-wrapper {
background: #fff; .hovercard small,
border: 2px #fff solid; .hovercard .small {
display: block; font-size: 85%;
overflow: hidden; }
}
.image-wrapper > a, .hovercard ul,
.image-wrapper > span { .hovercard ol {
background-size: 100% !important; margin: 0;
} padding: 0;
.image-wrapper.medium > a, margin-bottom: 0;
.image-wrapper.medium > span { }
content: " ";
display: block; .hovercard a:hover,
} .hovercard a:active,
.image-wrapper.medium > a img { .hovercard a:focus,
height: 80px; .hovercard a:visited {
width: 80px; text-decoration: none !important;
margin-bottom: 0; }
}
.hovercard {
-webkit-border-radius: 4px; /* Basic hovercard */
-moz-border-radius: 4px; .basic-content {
border-radius: 4px; padding: 9px;
/*max-width: 250px;*/ }
max-width: 400px;
width: 350px; .image-wrapper {
-webkit-box-shadow: 0 10px 100px rgba(0, 0, 0, 0.25); display: block;
-moz-box-shadow: 0 10px 100px rgba(0, 0, 0, 0.25); overflow: hidden;
box-shadow: 0 10px 100px rgba(0, 0, 0, 0.25); }
border: 1px solid rgba(0, 0, 0, 0);
} .image-wrapper > a,
.hovercard a:hover { .image-wrapper > span {
text-decoration: none; background-size: 100% !important;
} }
.hovercard.right > .arrow {
border-right-color: rgba(0, 0, 0, 0.05); .image-wrapper.medium > a,
} .image-wrapper.medium > span {
.hovercard.left > .arrow { content: " ";
border-left-color: rgba(0, 0, 0, 0.05); display: block;
} }
.hovercard.bottom > .arrow {
border-bottom-color: rgba(0, 0, 0, 0.05); .image-wrapper.medium > a img {
} height: 80px;
.hovercard.top > .arrow { width: 80px;
border-top-color: rgba(0, 0, 0, 0.05); margin-bottom: 0;
} }
.advance-hovercard + .hovercard {
max-width: 445px; .hovercard {
} -webkit-border-radius: 4px;
.advance-hovercard + .hovercard .hovercard-content { -moz-border-radius: 4px;
padding: 5px; border-radius: 4px;
} /*max-width: 250px;*/
max-width: 400px;
.basic-hovercard + .hovercard { width: 350px;
max-width: 445px; -webkit-box-shadow: 0 10px 100px rgba(0, 0, 0, 0.25);
} -moz-box-shadow: 0 10px 100px rgba(0, 0, 0, 0.25);
.basic-hovercard + .hovercard .hovercard-content { box-shadow: 0 10px 100px rgba(0, 0, 0, 0.25);
padding: 5px; border: 1px solid rgba(0, 0, 0, 0);
} }
.hover-card-header { .hovercard a:hover {
width: 100%; text-decoration: none;
} }
.hover-card-header h4 {
display: block; .hovercard.right > .arrow {
border-right-color: rgba(0, 0, 0, 0.05);
} }
.hover-card-header h4 a {
font-size: 18px; .hovercard.left > .arrow {
font-weight: bold; border-left-color: rgba(0, 0, 0, 0.05);
letter-spacing: 0.03rem; }
}
.hover-card-details { .hovercard.bottom > .arrow {
width: 100%; border-bottom-color: rgba(0, 0, 0, 0.05);
} }
.hover-card-pic {
margin-top: 0px; .hovercard.top > .arrow {
display: block; border-top-color: rgba(0, 0, 0, 0.05);
} }
.hover-card-pic .image-wrapper {
margin-right: 0.75em; .advance-hovercard + .hovercard {
float: left; max-width: 445px;
position: relative; }
}
.hover-card-content { .advance-hovercard + .hovercard .hovercard-content {
list-style-type: none; padding: 5px;
width: 100%; }
display: block;
background: #fff; .basic-hovercard + .hovercard {
padding: 0.3em 0 1em; max-width: 445px;
} }
.hover-card-content .profile-details {
font-size: 13px; .basic-hovercard + .hovercard .hovercard-content {
} padding: 5px;
.hover-card-content .profile-addr { }
overflow: hidden;
display: block; .hover-card-header {
text-overflow: ellipsis; width: 100%;
} }
.hovercard-content .hover-card-details .hover-card-content .profile-details > .profile-network a {
color: #777; .hover-card-header h4 {
} display: block;
.hover-card-actions {
display: flex; }
}
.hover-card-actions-connection { .hover-card-header h4 a {
margin-left: 10px; font-size: 18px;
} font-weight: bold;
.hovercard .hovercard-content .hover-card-actions a.btn { letter-spacing: 0.03rem;
display: inline-block; }
}
.hover-card-footer { .hover-card-details {
background-color: #f7f7f7; width: 100%;
border-top: 1px solid #ebebeb; }
padding: 0 10px;
} .hover-card-pic {
margin-top: 0px;
display: block;
}
.hover-card-pic .image-wrapper {
margin-right: 0.75em;
float: left;
position: relative;
}
.hover-card-content {
list-style-type: none;
width: 100%;
display: block;
padding: 0.3em 0 1em;
}
.hover-card-content .profile-details {
font-size: 13px;
}
.hover-card-content .profile-addr {
overflow: hidden;
display: block;
text-overflow: ellipsis;
}
.hover-card-actions {
display: flex;
}
.hover-card-actions-connection {
margin-left: 10px;
}
.hovercard .hovercard-content .hover-card-actions a.btn {
display: inline-block;
}
.hover-card-footer {
background-color: #f7f7f7;
border-top: 1px solid #ebebeb;
padding: 0 10px;
}

View file

@ -1,118 +0,0 @@
/**
* @file view/theme/frio/css/mod_event.css
*/
/**
* The different views of js fullcalendar
*/
#fc-header {
margin-top: 20px;
margin-bottom: 10px;
}
#fc-header-left,
#fc-header-right,
#event-calendar-title {
display: inline-block;
}
#fc-title {
margin: 0;
padding-left: 20px;
}
#fc-header-right {
margin-top: -4px;
}
#fc-header-right .dropdown > button {
color: inherit;
}
#event-calendar-title {
vertical-align: middle;
}
#event-calendar-views {
padding: 6px 9px;
font-size: 14px
}
.fc .fc-toolbar {
display: none;
}
.fc .fc-month-view td.fc-widget-content,
.fc .fc-list-view,
.fc .fc-list-view .fc-list-table td,
.fc .fc-body td {
border-style: none;
}
.fc td.fc-widget-header,
.fc th.fc-widget-header {
border-left: none;
border-right: none;
border-top: none;
}
.fc .fc-month-view td.fc-day {
border-left: none;
border-right: none;
border-bottom: 1px solid;
padding: 0 6px;
}
.fc .fc-day-grid-container .fc-row {
border-bottom: 1px solid;
border-color: #ddd;
}
.fc .fc-day-grid-event .fc-content {
/*white-space: normal;*/
}
.fc tr td.fc-today {
border-style: none;
}
.fc .fc-month-view .fc-content .fc-title .item-desc {
font-size: 11px;
}
.fc .fc-view-container {
margin-top: 25px;
}
.fc .fc-list-view td {
padding: 0;
}
#events-calendar.fc-ltr .fc-basic-view .fc-day-top .fc-day-number {
float: left;
font-size: 12px;
}
.fc .fc-event {
background-color: transparent;
background-color: #E3F2FD;
border: 1px solid #BBDEFB;
color: #555;
}
.fc .fc-month-view .fc-time,
.fc .fc-listMonth-view .fc-list-item-time,
.fc .fc-listMonth-view .fc-list-item-marker,
.fc .fc-listMonth-view .fc-widget-header {
display: none;
}
.fc .fc-listMonth-view .fc-list-item:hover td {
background: transparent;
cursor: pointer;
}
.fc .fc-listMonth-view .seperator {
margin-left: 30px;
width: 60px;
}
/**
* The event-card
*/
.event-card {
width: auto;
}
.event-card .event-label,
.event-card .location-label {
font-weight: bold;
}
.popover.event-card .event-card-basic-content {
margin-top: 0;
padding: 9px;
padding-left: 0px;
}
.event-card .event-hover-location .location {
color: #777;
font-size: 13px;
}

View file

@ -8,20 +8,6 @@ and open the template in the editor.
Author : rabuzarus Author : rabuzarus
*/ */
/* Imports */
/*@import url("frameworks/bootstrap/css/bootstrap.min.css");
@import url("frameworks/bootstrap/css/bootstrap-theme.min.css");
@import url("frameworks/font-awesome/css/font-awesome.min.css");
@import url("frameworks/jasny/css/jasny-bootstrap.min.css");
@import url("frameworks/bootstrap-select/css/bootstrap-select.min.css");
@import url("frameworks/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css");
@import url("frameworks/ekko-lightbox/ekko-lightbox.min.css");
@import url("frameworks/justifiedGallery/justifiedGallery.min.css");
@import url("frameworks/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css");
@import url("font/open_sans/open-sans.css");
@import url("css/hovercard.css");*/
body { body {
padding-top: 110px; padding-top: 110px;
background-color: $background_color; background-color: $background_color;
@ -3388,6 +3374,117 @@ section .profile-match-wrapper {
margin-top: 15px !important; margin-top: 15px !important;
} }
/**
* The different views of js fullcalendar
*/
#fc-header {
margin-top: 20px;
margin-bottom: 10px;
}
#fc-header-left,
#fc-header-right,
#event-calendar-title {
display: inline-block;
}
#fc-title {
margin: 0;
padding-left: 20px;
}
#fc-header-right {
margin-top: -4px;
}
#fc-header-right .dropdown > button {
color: inherit;
}
#event-calendar-title {
vertical-align: middle;
}
#event-calendar-views {
padding: 6px 9px;
font-size: 14px
}
.fc .fc-toolbar {
display: none;
}
.fc .fc-month-view td.fc-widget-content,
.fc .fc-list-view,
.fc .fc-list-view .fc-list-table td,
.fc .fc-body td {
border-style: none;
}
.fc td.fc-widget-header,
.fc th.fc-widget-header {
border-left: none;
border-right: none;
border-top: none;
}
.fc .fc-month-view td.fc-day {
border-left: none;
border-right: none;
border-bottom: 1px solid;
padding: 0 6px;
}
.fc .fc-day-grid-container .fc-row {
border-bottom: 1px solid;
border-color: #ddd;
}
.fc tr td.fc-today {
border-style: none;
}
.fc .fc-month-view .fc-content .fc-title .item-desc {
font-size: 11px;
}
.fc .fc-view-container {
margin-top: 25px;
}
.fc .fc-list-view td {
padding: 0;
}
#events-calendar.fc-ltr .fc-basic-view .fc-day-top .fc-day-number {
float: left;
font-size: 12px;
}
.fc .fc-event {
background-color: #E3F2FD;
border: 1px solid #BBDEFB;
color: #555;
}
.fc .fc-month-view .fc-time,
.fc .fc-listMonth-view .fc-list-item-time,
.fc .fc-listMonth-view .fc-list-item-marker,
.fc .fc-listMonth-view .fc-widget-header {
display: none;
}
.fc .fc-listMonth-view .fc-list-item:hover td {
background: transparent;
cursor: pointer;
}
.fc .fc-listMonth-view .seperator {
margin-left: 30px;
width: 60px;
}
/**
* The event-card
*/
.event-card {
width: auto;
}
.event-card .event-label,
.event-card .location-label {
font-weight: bold;
}
.popover.event-card .event-card-basic-content {
margin-top: 0;
padding: 9px;
padding-left: 0px;
}
.event-card .event-hover-location .location {
color: $font_color;
font-size: 13px;
}
/* Medium devices (desktops, 992px and up) */ /* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) { @media (min-width: 992px) {
.mod-home.is-not-singleuser #content, .mod-home.is-not-singleuser #content,

View file

@ -1,5 +1,4 @@
<link rel="stylesheet" type="text/css" href="view/theme/frio/css/mod_events.css?v={{$smarty.const.FRIENDICA_VERSION}}" />
<script type="text/javascript" src="view/theme/frio/js/mod_events.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script> <script type="text/javascript" src="view/theme/frio/js/mod_events.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
<script type="text/javascript"> <script type="text/javascript">