x x x
x
Only portrait mode is currently supported - please rotate your device.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Custom section
CustomCSSflex-direction: column; width: 100%; margin: auto; margin-top: 20px;
ContainerIDmaincontainer
DisableAutoHeighttrue


HTML
<div class="ov-logo-container" style="width: 90%; margin: auto;">
<!--<p class="site-tagline"> Welcome to the <span class="is-bold">All Stars Team Platform!</span> This internal platform is designed to be a repository of important information for our grantee community currently participating in the All Stars Accelerator Program </p>-->
<img src="https://gsvlabs-confluence-files.s3-us-west-2.amazonaws.com/images/All+Stars/horizontal-white-blue-1-x%403x.png" style="width: 140px;"/>
</div>

<div class="page-banner">
<div class="overlay"> 
<div class="banner-content">
<div class="title">
<p> Events</p>
</div>

</div>

</div>

</div>


...

HTML
<link rel="stylesheet" type="text/css" href="https://gsvlabs-confluence-files.s3-us-west-2.amazonaws.com/stylesheets/All+Stars+Helping+Kids/eventsDashboardStylesheet_ASHK.css" />

<style>
.events-search-main #events-search-container img {
    filter: unset;
}

#ui-datepicker-div .ui-datepicker-today a {
    background: var(--secondary-color) !important;
}


div#ev-main-content {
    width: 90%;
    margin: auto;
}

.scroll-buttons-container .scroll-button img{
	filter: unset;
}

.filtersContainer input {
    font-family: var(--main-font-family);
    font-size: 15.3px !important; 
    line-height: 1.57;
    letter-spacing: 0.5px;
    color: black !important; 
}

.scroll-buttons-container .scroll-button {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}


div#ev-main-content {
    background: unset !important;
}

.bigTimeMonth {
    background: var(--secondary-color) !important;
}

.eventcard .title {
    color: #052468!important;
}

.program
:after {
  content  : "";
  position : absolute;
  z-index  : 1;
  bottom   : 0;
  left     : 0;
  pointer-events   : none;
  background-image : linear-gradient(to bottom, 
                    rgba(255,255,255, 0), 
                    rgba(255,255,255, .9) 100%);
  width    : 100%;
  height   : 2em;
}
div#rw_theme_header {
    background: #ffffff !important;
}
#location-clear-button {
	display: flex;
    position: absolute;
    right: 0px;
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 12px 10px;
}
/* Page Title */
.general-text-container {
    display: flex;
    flex-direction: column;
    width: 40%;
    padding: 100px 0px 0px 31px !important;
}

/* My Events Container */
#my-events-container {
	display: none;
}

/* Event Date */

.eventcard{
	width: 220px!important;
	height: 482px!important;
	box-shadow: none!important;
}

.eventcard .bottom{
	height: 200px!important;
	background: transparent;
}

.eventcard .top{
	height: 282px!important;
	padding: 0!important;
}

.eventcard .img-container{
	width: 282px!important;
	height: 282px!important;
	box-shadow: 0px 0px 10px 5px rgb(0 0 0 / 15%)!important;	
}

.bigTimeContainer {
    height: 54px;
    width: 54px;
	padding-top: 10px;
    background: white!important;
    box-shadow: 1px 2px 11px 0 rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    /* justify-content: space-evenly; */
    align-items: flex-start;
    padding-bottom: 5px;
    /* border: solid 1px #979797; */
}

.bigTimeDate {
    color: var(--secondary-font-color);
    font-size: 24px;
	margin: 0 0 0 10px;
}

.bigTimeMonth {
    font-size: 14px;
    width: 30%;
    display: flex;
    justify-content: center;
    background: white!important;
    color: var(--secondary-font-color)!important;
	margin: 0 0 0 10px;
	border-bottom: 1px solid #8eaadb;
	text-indent: 10px;
}

/* Event Program Card Styling */
.program span {
    background: transparent !important;
    color: var(--primary-font-color) !important;
	font-weight: 100;
	font-size: 14px !important;
}
.program {
    color: var(--primary-font-color) !important;
    font-family: unset !important;
    font-size: 14px !important;
    text-align: start;
    margin-left: 13px;
    margin-right: 13px;
	margin-top: 10px;
	overflow-y: auto;
    height: auto;
	font-weight: normal;
	/* padding-bottom: 14px;*/
	display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
br {
    display: none;
}
.program h1 {
    margin: 0;
    color: var(--primary-font-color) !important;
    font-size: 14px;
}
.program .p1 {
    font-size: 14px !important;
}
.program div {
    font-size: 14px !important;
    font-weight: normal !important;
}
/ * Location search bar */
.wiki-content #events-search-container {
    min-width: 280px;
    width: 25%;
    max-width: 320px;
}

#location-search-container img {
    position: relative !important;
    left: 0px !important;
    height: 12px !important;
    width: 12px !important;
    opacity: 0.7;
	cursor: pointer;
}

#location-search-container img:hover {
	filter: invert(62%) sepia(80%) saturate(588%) hue-rotate(349deg) brightness(98%) contrast(94%);
}

.wiki-content #location-searchbar {
	background: var(--secondary-color);
    color: var(--secondary-font-color);
  	box-shadow: none;
	font-size: 13px;
	width: calc(100% - 40px);	
	height: 15px;
	padding: 15px 20px;
	border: none;
}

/* Create Event Button */
a.createEventButton {
	display: none;
    box-sizing: border-box;
    transition: background-color .1s ease-out;
    border-radius: 3.01px;
    border-style: solid;
    border-width: 1px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-variant: normal;
    font-weight: 400;
    background-image: none;
    background-color: rgba(9,30,66,0.08);
    border-color: transparent;
    color: #344563;
    text-decoration: none;
    height: 2.14285714em;
    line-height: 1.42857143em;
    margin: 0;
    padding: 4px 10px;
    vertical-align: baseline;
    white-space: nowrap;
    color: black !IMPORTANT;
    border-radius: 6px;
}
.createEventContainer {
    display: flex;
    justify-content: flex-end;
    margin: 10px 26px 0 0;
}

/* Dashboard Banner */
img.events-dashboard-banner {
    width: 100%;
    height: auto;
	margin-bottom: -20px;
}
.events-dashboard-banner-container {
    margin: 0 0 -5px 0;
}
.countryFilterContainer #cc-placeholder {
    height: 45px;
    min-height: 45px;
    margin: 0px;
    text-align: left;
    width: calc(100% - 40px);
    justify-content: space-between;
    padding: 0px 20px;
    cursor: text;
    position: relative;
    align-items: center;
    background: var(--secondary-color);
  	border: 1px solid #ddd;
  	box-shadow: none;
}
.wiki-content .ev-cards-section .ev-cards-section-title {
	color: #000000 !important;
}
.wiki-content .ev-cards-outer-container {background-image: unset !important;}
.countryFilterContainer {
	justify-content: center !important;
}
.custom-section-container{
 flex-direction: column !important;
}
.countryFilterContainer #country-clear-button {
    position: absolute;
    right: 0px;
}

@media screen and (max-width: 640px) {
.filtersContainer {
	justify-content: center;
}
}

div#ev-main-content {
    background: unset !important;
}

input#cc-placeholder {
    background: black;
}

.filtersContainer div {
    background: unset !important;
}

.countryFilterContainer #cc-placeholder {
    background: rgba(251, 189, 40, 0.2);
    border-radius: 5px;
    border: solid 1px #fbbd28

;
}

#startdate, #enddate {
    background: unset;
    border: unset;
    border-bottom: solid 1px #ededed;
	letter-spacing: 3.6px;
}

.filtersContainer.events-search-main {
    justify-content: space-between;
}

.wiki-content input#events-searchbar {
    background: unset;
    border: unset;
    border-bottom: solid 1px #ededed;
}

a.imgLinkContainer.eventCardLink {position: unset;}

@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {


div#additional-filters-button {.eventcard .img-container {
    width: 220px !important;
    displayheight: none220px !important;
}


div#additional-filters-button.eventcard .text-container {
    displaywidth: none !important220px;
}

.filtersContainer.events-search-maineventcard .top {
    overflow: unsetheight: 220px !important;
}




@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {


div#additional-filters-button {
    display: none !important;
}


div#additional-filters-button {
    display: none !important;
}

.filtersContainer.events-search-main {
    overflow: unset;
    height: auto;
}

div#ui-datepicker-div {
    z-index: 1000 !important;
}
}

</style>

...

HTML
 <script>

  const getMinutesUntilEventStart = (startDate) => {
    let nowDate = new Date();
    let eventStartDate = new Date(startDate);

    let diffMilliseconds = eventStartDate.getTime() - nowDate.getTime();
    let diffMinutes =  (diffMilliseconds / 60000);

    return diffMinutes;
  }

  const getMinutesUntilEventEnd = (endDate) => {
    let nowDate = new Date();
    let eventEndDate = new Date(endDate);

    let diffMilliseconds = eventEndDate.getTime() - nowDate.getTime();
    let diffMinutes =  (diffMilliseconds / 60000);

    return diffMinutes;
  }

  window.addEventListener('load', () => {
    let upcomingEvents = document.getElementById('scroll-section-1');
    let upcomingCards = Array.from(upcomingEvents.getElementsByClassName('eventcard'));

    for (let i = 0; i < upcomingCards.length; i++) {
      let currCard = upcomingCards[i];
      let currCardStart = currCard.dataset.startdate;
      let minsTilStart = getMinutesUntilEventStart(currCardStart);

      if (minsTilStart <= 0) {
		// Check if event is offline 
	    if (currCard.dataset.offline == "true") {
		  	continue;
	    }
        let liveEl = document.createElement("div");
        liveEl.classList.add('live-circle');
        liveEl.innerText = "LIVE";
        currCard.insertAdjacentElement('afterbegin', liveEl);
      }  
    }
	
  });
</script>

<script>


<style>
  .live-circle {
    font-size: 13px;
    padding: 3px 18px;
    text-transform: uppercase;
    font-weight: bold;
    background-color: #cc1f1f;
    color: white;
    position: absolute;
    z-index: 2;
    margin: 8px 8px;
    box-shadow: 1px 1px 5px #00000054;
  }
</style>

<style>
  .watch-indicator {
    font-size: 12px;
    padding: 3px 10px;
    text-transform: uppercase;
    font-weight: bold;
    background-color: #036bc4;
    color: white;
    position: absolute;
    z-index: 2;
    margin: 8px 8px;
    box-shadow: 1px 1px 5px #00000054;
	border-radius: 3px;
	display: flex;
	justify-content: center;
	align-items: center;
  }
  .watch-indicator-icon {
	display: block;
    width: 14px !important;
    height: 14px !important;
    margin-right: 6px;
    padding-bottom: 2px flex;
	justify-content: center;
	align-items: center;
  }

a.imgLinkContainer.eventCardLink {position: unset;}

.eventcard .img-container {  .watch-indicator-icon {
	display: block;
    width: 220px14px !important;
    height: 220px14px !important;
}

.eventcard .text-container {
    widthmargin-right: 220px6px;
}

.eventcard .top {
    heightpadding-bottom: 220px !important2px;
  }


</style>