diff options
| author | Raphael Kabo <raphaelkabo@hey.com> | 2023-10-08 12:11:36 +0100 | 
|---|---|---|
| committer | Raphael Kabo <raphaelkabo@hey.com> | 2023-10-08 12:11:36 +0100 | 
| commit | 6b220e094f215c488eb5102e25506f5b3d371245 (patch) | |
| tree | be0abbbf7a0c881d61e6375626f197c4ae124001 /public/css | |
| parent | b8e424a8602b586bbf346cd27171ede570a54973 (diff) | |
Refactor: event group form and API, extract JS
Diffstat (limited to 'public/css')
| -rwxr-xr-x | public/css/style.css | 426 | 
1 files changed, 235 insertions, 191 deletions
diff --git a/public/css/style.css b/public/css/style.css index a312587..0f149e8 100755 --- a/public/css/style.css +++ b/public/css/style.css @@ -7,133 +7,152 @@ body, html {  /* FONTS */  @font-face { -  font-family: 'Fredoka One'; -  font-style: normal; -  font-weight: 400; -  src: url('../fonts/fredoka-one-v7-latin-regular.eot'); /* IE9 Compat Modes */ -  src: local('Fredoka One'), local('FredokaOne-Regular'), -     url('../fonts/fredoka-one-v7-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ -     url('../fonts/fredoka-one-v7-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */ -     url('../fonts/fredoka-one-v7-latin-regular.woff') format('woff'), /* Modern Browsers */ -     url('../fonts/fredoka-one-v7-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */ -     url('../fonts/fredoka-one-v7-latin-regular.svg#FredokaOne') format('svg'); /* Legacy iOS */ -  } -   +    font-family: "Fredoka One"; +    font-style: normal; +    font-weight: 400; +    src: url("../fonts/fredoka-one-v7-latin-regular.eot"); /* IE9 Compat Modes */ +    src: +        local("Fredoka One"), +        local("FredokaOne-Regular"), +        url("../fonts/fredoka-one-v7-latin-regular.eot?#iefix") +            format("embedded-opentype"), +        /* IE6-IE8 */ url("../fonts/fredoka-one-v7-latin-regular.woff2") +            format("woff2"), +        /* Super Modern Browsers */ +            url("../fonts/fredoka-one-v7-latin-regular.woff") format("woff"), +        /* Modern Browsers */ url("../fonts/fredoka-one-v7-latin-regular.ttf") +            format("truetype"), +        /* Safari, Android, iOS */ +            url("../fonts/fredoka-one-v7-latin-regular.svg#FredokaOne") +            format("svg"); /* Legacy iOS */ +}  @media (max-width: 576px) { -  #container { -    height: auto !important; -    overflow-x: hidden; -  } +    #container { +        height: auto !important; +        overflow-x: hidden; +    }  }  #content { -  display: flex; -  min-height: 100vh; -  flex-direction: column; +    display: flex; +    min-height: 100vh; +    flex-direction: column;  }  #bodyContainer { -  flex: 1; +    flex: 1;  }  #fixedContainer { -  position: sticky; -  top: 0; +    position: sticky; +    top: 0;  }  #footerContainer { -  border-top: 1px solid #e0e0e0; -  text-align: center; -  padding: 5px 0; +    border-top: 1px solid #e0e0e0; +    text-align: center; +    padding: 5px 0;  }  #sidebar { -  background: #f5f5f5; -  border-bottom: 2px solid #e0e0e0; +    background: #f5f5f5; +    border-bottom: 2px solid #e0e0e0;  }  #sidebar h1 { -  font-family: "Fredoka One", sans-serif; -  font-weight: 700; -  text-align: center; -  letter-spacing: -0.5px; -  font-size: 3rem; -  color: transparent !important; -  margin-bottom: 0; +    font-family: "Fredoka One", sans-serif; +    font-weight: 700; +    text-align: center; +    letter-spacing: -0.5px; +    font-size: 3rem; +    color: transparent !important; +    margin-bottom: 0;  }  #sidebar h1 a { -  background: rgb(33, 37, 41); -  background-clip: text; -  -webkit-background-clip: text; -  color: transparent !important; +    background: rgb(33, 37, 41); +    background-clip: text; +    -webkit-background-clip: text; +    color: transparent !important;  }  #sidebar h1 a:hover { -  text-decoration: none; -  background: linear-gradient(to right, #27aa45, #7fe0c8, #5d26c1); -  background-size: 100% 100%; -  background-clip: text; -  -webkit-background-clip: text; -  color: transparent !important; +    text-decoration: none; +    background: linear-gradient(to right, #27aa45, #7fe0c8, #5d26c1); +    background-size: 100% 100%; +    background-clip: text; +    -webkit-background-clip: text; +    color: transparent !important;  }  #content { -  background: #ffffff; -  box-shadow: -8px 0 6px -6px rgba(0,0,0,0.3); +    background: #ffffff; +    box-shadow: -8px 0 6px -6px rgba(0, 0, 0, 0.3);  }  #genericEventImageContainer { -  height:150px; -  border-radius: 5px; +    height: 150px; +    border-radius: 5px;  }  #genericEventImageContainer:before { -  content: ''; -  background: linear-gradient(to bottom, rgba(30,87,153,0) 0%,rgba(242,245,249,0) 75%,rgba(255,255,255,1) 95%,rgba(255,255,255,1) 100%); -  position: absolute; -  width: 97%; -  height: 150px; +    content: ""; +    background: linear-gradient( +        to bottom, +        rgba(30, 87, 153, 0) 0%, +        rgba(242, 245, 249, 0) 75%, +        rgba(255, 255, 255, 1) 95%, +        rgba(255, 255, 255, 1) 100% +    ); +    position: absolute; +    width: 97%; +    height: 150px;  }  #eventImageContainer { -  height:300px; -  background-size: cover; -  background-repeat: no-repeat; -  background-position: center; -  border-radius: 5px; +    height: 300px; +    background-size: cover; +    background-repeat: no-repeat; +    background-position: center; +    border-radius: 5px;  }  #eventImageContainer:before { -  content: ''; -  background: linear-gradient(to bottom, rgba(30,87,153,0) 0%,rgba(242,245,249,0) 85%,rgba(255,255,255,1) 95%,rgba(255,255,255,1) 100%); -  position: absolute; -  width: 100%; -  height: 300px; +    content: ""; +    background: linear-gradient( +        to bottom, +        rgba(30, 87, 153, 0) 0%, +        rgba(242, 245, 249, 0) 85%, +        rgba(255, 255, 255, 1) 95%, +        rgba(255, 255, 255, 1) 100% +    ); +    position: absolute; +    width: 100%; +    height: 300px;  }  #eventName { -  padding: 0 0 0 10px; -  width: 100%; -  display: flex; -  justify-content: space-between; +    padding: 0 0 0 10px; +    width: 100%; +    display: flex; +    justify-content: space-between;  }  #eventPrivacy { -    text-transform:capitalize; +    text-transform: capitalize;  }  #eventFromNow { -  padding-left: 25px; +    padding-left: 25px;  }  #eventFromNow::first-letter { -  text-transform:capitalize; +    text-transform: capitalize;  }  #eventActions { -  padding-left: 0; -  margin-top: 1rem; +    padding-left: 0; +    margin-top: 1rem;  }  /* @@ -145,129 +164,127 @@ body, html {  */  .attendeesList { -  margin: 0; -  padding: 0; -  list-style-type: none; -  display: flex; -  flex-wrap: wrap; +    margin: 0; +    padding: 0; +    list-style-type: none; +    display: flex; +    flex-wrap: wrap;  }  .attendeesList > li { -  border: 4px solid #0ea130; -  border-radius: 2em; -  padding: .5em 1em; -  margin-right: 5px; -  margin-bottom: 10px; -  background: #57b76d; -  color: white; -  font-size: 0.95em; -  font-weight: bold; +    border: 4px solid #0ea130; +    border-radius: 2em; +    padding: 0.5em 1em; +    margin-right: 5px; +    margin-bottom: 10px; +    background: #57b76d; +    color: white; +    font-size: 0.95em; +    font-weight: bold;  }  .expand { -  -webkit-transition: height 0.2s; -  -moz-transition: height 0.2s; -  transition: height 0.2s; +    -webkit-transition: height 0.2s; +    -moz-transition: height 0.2s; +    transition: height 0.2s;  }  .eventInformation { -  margin-left: 1.6em; +    margin-left: 1.6em;  }  .eventInformation > li { -/*  line-height: 2.1em;*/ -  margin-bottom: 0.8em; +    /*  line-height: 2.1em;*/ +    margin-bottom: 0.8em;  }  #copyEventLink { -  margin-left: 5px; +    margin-left: 5px;  }  .commentContainer { -  background: #fafafa; -  border-radius: 5px; -  padding: 10px; -  margin-bottom: 10px; -  border: 1px solid #dfdfdf; +    background: #fafafa; +    border-radius: 5px; +    padding: 10px; +    margin-bottom: 10px; +    border: 1px solid #dfdfdf;  }  .replyContainer { -  display: none; -  background: #efefef; -  padding: 10px; -  border-radius: 0 0 5px 5px; -  border-bottom: 1px solid #d2d2d2; -  border-left: 1px solid #d2d2d2; -  border-right: 1px solid #d2d2d2; -  width: 95%; -  margin: -10px auto 10px auto; +    display: none; +    background: #efefef; +    padding: 10px; +    border-radius: 0 0 5px 5px; +    border-bottom: 1px solid #d2d2d2; +    border-left: 1px solid #d2d2d2; +    border-right: 1px solid #d2d2d2; +    width: 95%; +    margin: -10px auto 10px auto;  }  .repliesContainer { -  font-size: smaller; -  padding-left:20px; +    font-size: smaller; +    padding-left: 20px;  }  /* IMAGE UPLOAD FORM */ - -  .image-preview { -  width: 100%; -  height: 200px; -  position: relative; -  overflow: hidden; -  background-color: #ffffff; -  color: #ecf0f1; -  border-radius: 5px; -  border: 1px dashed #ced4da; +    width: 920px; +    height: 200px; +    position: relative; +    overflow: hidden; +    background-color: #ffffff; +    color: #ecf0f1; +    border-radius: 5px; +    border: 1px dashed #ced4da;  }  .image-preview input { -  line-height: 200px; -  font-size: 200px; -  position: absolute; -  opacity: 0; -  z-index: 10; +    line-height: 200px; +    font-size: 200px; +    position: absolute; +    opacity: 0; +    z-index: 10;  }  .image-preview label { -  position: absolute; -  z-index: 5; -  opacity: 0.8; -  cursor: pointer; -  background-color: #ced4da; -  color: #555; -  width: 200px; -  height: 50px; -  font-size: 20px; -  line-height: 50px; -  text-transform: uppercase; -  top: 0; -  left: 0; -  right: 0; -  bottom: 0; -  margin: auto; -  text-align: center; -  border-radius: 5px; +    position: absolute; +    z-index: 5; +    opacity: 0.8; +    cursor: pointer; +    background-color: #ced4da; +    color: #555; +    width: 200px; +    height: 50px; +    font-size: 20px; +    line-height: 50px; +    text-transform: uppercase; +    top: 0; +    left: 0; +    right: 0; +    bottom: 0; +    margin: auto; +    text-align: center; +    border-radius: 5px;  }  .datepickers-container { -  z-index: 1600 !important; /* has to be larger than 1050 */ +    z-index: 1600 !important; /* has to be larger than 1050 */  }  #newEventFormContainer,  #importEventFormContainer,  #newEventGroupFormContainer { -  display: none; +    display: none;  }  #icsImportLabel { -  overflow: hidden; -  text-overflow: ellipsis; -  white-space: nowrap; -  color: #6c757d; +    overflow: hidden; +    text-overflow: ellipsis; +    white-space: nowrap; +    color: #6c757d;  }  .select2-container { -  width: 100% !important; +    width: 100% !important;  }  .select2-selection__rendered {      line-height: 2.25rem !important; @@ -280,75 +297,102 @@ body, html {  }  .attendee-name { -  white-space: nowrap; -  overflow: hidden; -  text-overflow: ""; -  overflow: hidden; -  max-width: 62px; -  color: #fff; +    white-space: nowrap; +    overflow: hidden; +    text-overflow: ""; +    overflow: hidden; +    max-width: 62px; +    color: #fff;  }  .remove-attendee { -  color: #fff; +    color: #fff;  }  .remove-attendee:hover { -  color: #016418; +    color: #016418;  }  #eventAttendees h5 { -  display: flex; -  flex-direction: column; -  align-items: flex-start; +    display: flex; +    flex-direction: column; +    align-items: flex-start;  }  #eventAttendees h5 .btn-group { -  margin-top: 0.5rem; +    margin-top: 0.5rem;  }  .edit-buttons { -  text-align: right; +    text-align: right;  }  @media (max-width: 1199.98px) { -  .edit-buttons { -    text-align: left; -  } +    .edit-buttons { +        text-align: left; +    }  }  @media (min-width: 1120px) { -  #eventActions { -    margin-top: 0; -    padding-left: 1rem; -  } +    #eventActions { +        margin-top: 0; +        padding-left: 1rem; +    }  }  @media (min-width: 577px) { -  #sidebar { -    border-right: 2px solid #e0e0e0; -    min-height: 100vh; -  } -  body { -    background: #f5f5f5; /* Old browsers */ -    background: -moz-linear-gradient(left, #f5f5f5 0%, #f5f5f5 50%, #ffffff 51%, #ffffff 100%); /* FF3.6-15 */ -    background: -webkit-linear-gradient(left, #f5f5f5 0%,#f5f5f5 50%,#ffffff 51%,#ffffff 100%); /* Chrome10-25,Safari5.1-6 */ -    background: linear-gradient(to right, #f5f5f5 0%,#f5f5f5 50%,#ffffff 51%,#ffffff 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */ -    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#ffffff',GradientType=1 ); /* IE6-9 */ -  } -  #eventAttendees h5 { -    flex-direction: row; -    justify-content: space-between; -    align-items: center; -  } -  #eventAttendees h5 .btn-group { -    margin-top: 0; -  } +    #sidebar { +        border-right: 2px solid #e0e0e0; +        min-height: 100vh; +    } +    body { +        background: #f5f5f5; /* Old browsers */ +        background: -moz-linear-gradient( +            left, +            #f5f5f5 0%, +            #f5f5f5 50%, +            #ffffff 51%, +            #ffffff 100% +        ); /* FF3.6-15 */ +        background: -webkit-linear-gradient( +            left, +            #f5f5f5 0%, +            #f5f5f5 50%, +            #ffffff 51%, +            #ffffff 100% +        ); /* Chrome10-25,Safari5.1-6 */ +        background: linear-gradient( +            to right, +            #f5f5f5 0%, +            #f5f5f5 50%, +            #ffffff 51%, +            #ffffff 100% +        ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */ +        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#ffffff',GradientType=1 ); /* IE6-9 */ +    } +    #eventAttendees h5 { +        flex-direction: row; +        justify-content: space-between; +        align-items: center; +    } +    #eventAttendees h5 .btn-group { +        margin-top: 0; +    }  }  .list-group-item-action:hover { -  background-color: #d4edda; +    background-color: #d4edda;  }  .code { -  font-family: 'Courier New', Courier, monospace; -  overflow-wrap: anywhere; +    font-family: "Courier New", Courier, monospace; +    overflow-wrap: anywhere; +} + +/* FORMS */ +label:not(.form-check-label) { +    font-weight: 500; +} + +input[type="datetime-local"] { +    max-width: 20rem;  }  | 
