Skip to content
Snippets Groups Projects
base.css 8.35 KiB
Newer Older
Florent Lavelle's avatar
Florent Lavelle committed
            /* APP */
Florent Lavelle's avatar
Florent Lavelle committed
body {
  height:100%;
  width:100%;
  margin: 0;
}

#app {
  position: relative;
  min-height: 100vh; /* keep the space for loader, before page contents are injected */
  display: flex;          /* used to fix height on sticky header and footer */
  flex-direction: column; /* used to fix height on sticky header and footer */
}

Florent Lavelle's avatar
Florent Lavelle committed
#app-header {
#app-content {
  overflow: auto;
  flex: 1 0 auto; /* used to fix height on sticky header and footer */
  min-height: 61px; /* value by default of the header, defined here to be sync with anchor below, in order to keep the page stuck to top */
  position: relative; /* for anchor below */
Florent Lavelle's avatar
Florent Lavelle committed
}

#scroll-top-anchor {
  position: absolute;
  top: -61px;
  visibility: hidden;
}


Florent Lavelle's avatar
Florent Lavelle committed
  max-width: 1200px;
Florent Lavelle's avatar
Florent Lavelle committed
  margin: 2em auto;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 250px;
Florent Lavelle's avatar
Florent Lavelle committed
  touch-action: none; /* workaround for modifying feature on mobile */
Florent Lavelle's avatar
Florent Lavelle committed
}

#app-footer {
Florent Lavelle's avatar
Florent Lavelle committed
  background-color: #464646;
  text-align: center;
  flex-shrink: 0; /* used to fix height on sticky header and footer */
  position: sticky;
  bottom: 0;
  z-index: 1000;
Florent Lavelle's avatar
Florent Lavelle committed
}

#app-footer .ui.text.menu {
  min-height: 30px !important;
}

#app-footer .ui.text.menu .item {
  color: #ffffff;
  padding: 5px 14px;
}

#app-footer .ui.text.menu a.item:hover {
Florent Lavelle's avatar
Florent Lavelle committed
}

#app-footer .ui.text.menu .item:not(:first-child) {
    border-left: 1px solid rgba(34,36,38,.15);
Timothee P's avatar
Timothee P committed
/* ---------------------------------- */
            /* UTILS */
/* ---------------------------------- */
.inline {
  display: inline;
}
Timothee P's avatar
Timothee P committed
.no-margin {
  margin: 0 !important;
}
.margin-top {
  margin-top: 1rem;
}
.margin-bottom {
  margin-bottom: 1rem;
}
.tiny-margin {
  margin:  0.1rem 0 0.1rem 0.1rem !important;
}
.tiny-margin-left {
  margin-left:  0.1rem !important;
}
.ellipsis {
  text-overflow: ellipsis;
  overflow: hidden;
}
/* ---------------------------------- */
            /* MAIN */
/* ---------------------------------- */

.button-hover-orange:hover {
  background: #fbbd08 !important;
}
.button-hover-green:hover {
  background: #5bba21 !important;
}
.button-hover-red:hover {
  background: #ee2e24 !important;
}
.ui.button.button-hover-red:hover, .ui.button.button-hover-red:hover i.icon,
.ui.button.button-hover-green:hover, .ui.button.button-hover-green:hover i.icon {
  color: #fff !important;
}
.ui.button.button-hover-red:hover i.icon,
.ui.button.button-hover-green:hover i.icon {
  transition: all 0.5s ease !important;
}
  padding-top: 1.5em;
}

.delete-hidden-field {
  display: none;
}

.ui.dropdown .menu > .header {
  font-size: 1em;
  text-transform: none;
}

.ui.dropdown .menu.text-wrap {
  max-width: 80vw;
  overflow: auto;
}

.ui.dropdown .menu.text-wrap > .item {
  white-space: normal;
  word-wrap: normal;
}

.ui.checkbox.disabled > input {
  cursor: default !important;
}

#form-layers button.button:not(:last-of-type) {
  margin-right: 0.5em !important;
}

#form-layers .errorlist{
  list-style: none;
  padding-left: 0;
  color: #9f3a38;
}

#form-layers .infoslist{
  list-style: none;
  padding-left: 0;
  color: #38989f;
}

/* Fix semantic ui overflow when is too long */
.layer-item .form div.text {
  width: 100%
}

.ui.selection.dropdown .menu>.item {
  word-break: break-all;
}

/* Needs this unfortunatly, because semantic overrides the background-color */
#form-layers .blue-background-class {
  background-color: rgb(205, 229, 245);
}

/* Thicker borders for each basemap segment */
#form-layers [data-segments=basemap_set-SEGMENTS] > .ui.segment {
  margin-bottom: 3rem;
  border: 1px solid rgba(34,36,38,.30);
}


/* Sortable */
.layer-handle-sort {
  cursor: grab;
}

.blue-background-class {
  background-color: rgb(205, 229, 245);
}

.white-opacity-background-class {
  background-color: white;
  opacity: 0.9;
}


/* ---------------------------------- */
      /* LEAFLET DRAW TOOLBAR */
/* ---------------------------------- */

.leaflet-draw-toolbar a.leaflet-draw-draw-circlemarker,
.leaflet-draw-toolbar a.leaflet-draw-draw-polyline,
.leaflet-draw-toolbar a.leaflet-draw-draw-polygon {
    background-color: #FFA19E;
}

/* ---------------------------------- */
      /* ERROR LIST */
/* ---------------------------------- */
.errorlist {
  margin-top: 1rem;
  padding: 0;
}

.infoslist {
  margin-top: 0.1rem;
  padding: 0;
}

.errorlist > li {
  list-style: none;
  color: rgb(177, 55, 55);
  border:  thin solid rgb(197, 157, 157);
  border-radius: 3px;
  background-color: rgb(250, 241, 242);
  padding: 0.5rem 1rem;
}

.infoslist > li {
  list-style: none;
  color: #38989f;
  border-radius: 3px;
  padding: 0;
  text-align: right;
Florent's avatar
Florent committed
}

/* ---------------------------------- */
      /* PAGINATION */
/* ---------------------------------- */

.custom-pagination {
  display: flex;
  align-items: center;
  list-style: none;
  font-size: 1.2em;
}

.custom-pagination > .page-item > .page-link {
  border: none;
  font-weight: 400;
  color: #008080;
}
.custom-pagination  > .page-item.active > .page-link {
  color: #008080;
  background-color: transparent;
  font-weight: bolder;
  text-shadow: 0 0 2px #008080;
  padding: 0.325em 0.75em;
  pointer-events: none;
}
.custom-pagination > .page-item.disabled > .page-link {
  opacity: 0.5;
  pointer-events: none;
}

.custom-pagination > div > .page-item > .page-link {
  border: none;
  font-weight: 400;
  color: #008080;
  padding: 0.325em 0.75em;
}
.custom-pagination > div > .page-item.active > .page-link {
  color: #008080;
  background-color: transparent;
  font-weight: bolder;
  font-size: 1.2em;
  text-shadow: 0 0 2px #008080;
  padding: 0.325em 0.75em;
  pointer-events: none;
}
.custom-pagination > div > .page-item.disabled > .page-link {
  opacity: 0.5;
  padding: 0.325em 0.75em;
  pointer-events: none;
}

/* ---------------------------------- */
      /* MULTISELECT */
Florent's avatar
Florent committed
/* ---------------------------------- */
.multiselect {
  font-family: var(--font-family, 'Roboto Condensed', 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif) !important;
Florent's avatar
Florent committed
.multiselect__tags {
Florent Lavelle's avatar
Florent Lavelle committed
  border: 1px solid #ced4da;
  border-radius: 0 !important;
  font-family: var(--font-family, 'Roboto Condensed', 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif) !important;
  font-size: 1rem !important;
Florent's avatar
Florent committed
}
.multiselect__tags > .multiselect__input {
  border: none !important;
  font-size: 1rem !important;
Florent's avatar
Florent committed
}

.multiselect__placeholder {
  color: #838383;
  margin-bottom: 0px;
  padding-top: 0;
}

.multiselect__single, .multiselect__tags, .multiselect__content, .multiselect__option {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
  background-color: #fff;
  font-size: 1rem !important;
Florent's avatar
Florent committed
}

.multiselect__select {
  z-index: 1 !important;
}
.multiselect__content-wrapper {
  box-shadow: 0 2px 3px 0 rgba(34,36,38,.15);
}
Florent's avatar
Florent committed
.multiselect__clear {
  position: absolute;
  right: 1px;
  top: 8px;
  width: 40px;
  display: block;
  cursor: pointer;
  z-index: 9;
  background-color: #fff;
}
.multiselect__spinner {
  z-index: 2 !important;
  background-color: #fff;
  opacity: 1;
  top: 2px;
Florent Lavelle's avatar
Florent Lavelle committed
}

Florent Lavelle's avatar
Florent Lavelle committed
.menu.projects > .item > .multiselect {
  min-height: 0px !important;
}
.menu.projects > .item > .multiselect > .multiselect__tags {
  min-height: 0px !important;
}

.multiselect__option--selected {
  background: #fff !important;
  color: #35495e !important;
}
.multiselect__option--highlight {
  background: #f3f3f3 !important;
  color: #35495e !important;
}
.multiselect__option--selected.multiselect__option--highlight {
  background: #f3f3f3 !important;
  color: #35495e !important;
Timothee P's avatar
Timothee P committed
.multiselect__clear {
Timothee P's avatar
Timothee P committed
  text-align: center;
}
.multiselect__clear i.icon {
  font-size: .75em;
  color: #999;
Timothee P's avatar
Timothee P committed
}
/* ---------------------------------- */
      /* OVERRIDE SEMANTIC STYLES */
/* ---------------------------------- */

.ui.page.dimmer { /* keep the dimmer above the dropdown (z-index 1001: above the map)*/
  z-index: 1002;
}