This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
navbar.scss 4.01 KiB
Newer Older
Daniel Rainer's avatar
Daniel Rainer committed
  box-sizing: border-box;
  font-family: Open Sans;
Daniel Rainer's avatar
Daniel Rainer committed
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
Daniel Rainer's avatar
Daniel Rainer committed
#top-space {
  height: auto;
  padding-top: 15px;
  padding-bottom: 25px;
  padding-left: 25px;
}

/* Vector graphics */
svg {
Daniel Rainer's avatar
Daniel Rainer committed
  overflow: hidden;
  vertical-align: middle;
  margin-bottom: 5px;
  margin-right: 5px;
Daniel Rainer's avatar
Daniel Rainer committed
  height: 25px;
  background-color: lightblue;
Daniel Rainer's avatar
Daniel Rainer committed

Daniel Rainer's avatar
Daniel Rainer committed
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: auto;
  margin-left: auto;
Daniel Rainer's avatar
Daniel Rainer committed
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  float: left;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: 1rem;
  color: #212529;
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
}

.dropdown-menu.show {
Daniel Rainer's avatar
Daniel Rainer committed
  display: block;
  background-color: rgb(255, 255, 255);
  width: max-content;
  min-width: 408px;
  padding-top: 15px;
  padding-right: 25px;
  padding-bottom: 30px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
Daniel Rainer's avatar
Daniel Rainer committed
  display: block;
  width: 100%;
  padding: 0.25rem 1.5rem;
  padding-top: 0.35rem;
  padding-right: 1.5rem;
  padding-bottom: 0.3rem;
  padding-left: 1.5rem;
  clear: both;
  font-weight: 400;
  color: #212529;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}

.flex-item-left,
.flex-item-right {
  flex: 50%;
}

@media (max-width: 800px) {
Daniel Rainer's avatar
Daniel Rainer committed
  .flex-container {
    flex-direction: column;
Daniel Rainer's avatar
Daniel Rainer committed
}

.dropdown-divider {
Daniel Rainer's avatar
Daniel Rainer committed
  height: 0;
  margin: 0.5rem 0;
  margin-top: 20px;
  margin-bottom: 20px;
  overflow: hidden;
  border-top: 1px solid #e9ecef;
Daniel Rainer's avatar
Daniel Rainer committed
  position: relative;
  float: left;
  width: max-content;
  max-width: 100%;
Daniel Rainer's avatar
Daniel Rainer committed
  padding-left: 25px;
  color: darkgray;
  padding-top: 10px;
Daniel Rainer's avatar
Daniel Rainer committed
.search-container {
  padding-top: 15px;
  padding-left: 25px;
Daniel Rainer's avatar
Daniel Rainer committed
  padding-top: 15px;
Daniel Rainer's avatar
Daniel Rainer committed
  float: left;
  padding-left: 25px;
  padding-bottom: 15px;
  padding-top: 15px;
  color: #737373;
Daniel Rainer's avatar
Daniel Rainer committed
  margin-bottom: 25px;
Daniel Rainer's avatar
Daniel Rainer committed
  width: 100%;
  min-height: 64px;
  max-height: fit-content;
  display: flex;
  flex-direction: row;
  justify-content: center;
  background-color: #343a40;
  text-align: center;
Daniel Rainer's avatar
Daniel Rainer committed
.div-footer {
  width: auto;
  margin-top: 45px;
  padding-right: 50px;
  color: white;
  float: left;
Daniel Rainer's avatar
Daniel Rainer committed
  color: #737373;
Daniel Rainer's avatar
Daniel Rainer committed
  height: 10px;
  width: 10px;
  background-color: #b3b3b3;
  border-radius: 50%;
  float: left;
  margin-right: 15px;
  margin-top: 7px;
Daniel Rainer's avatar
Daniel Rainer committed
  padding-right: 50px;
Daniel Rainer's avatar
Daniel Rainer committed
  width: 256px;
  height: auto;
Daniel Rainer's avatar
Daniel Rainer committed
  float: left;
Daniel Rainer's avatar
Daniel Rainer committed
  color: #b3b3b3;
Daniel Rainer's avatar
Daniel Rainer committed
  color: #d8d8d8;
Daniel Rainer's avatar
Daniel Rainer committed
#university,
#repository,
#file-format,
#status,
#difficulty {
  color: darkgray;
Daniel Rainer's avatar
Daniel Rainer committed
  color: darkgray;
Daniel Rainer's avatar
Daniel Rainer committed

/* Star rating */
// The following classes are used to style a five star rating system.
// This probably should not be in navbar.scss, but in a file for search results.
// Currently, rating is not implemented.
Daniel Rainer's avatar
Daniel Rainer committed
  float: right;
  height: auto;
  padding: 0 10px;
  padding-top: 12px;
}

.rate:not(:checked) > input {
  position: absolute;
  top: -9999px;
}

.rate:not(:checked) > label {
  float: right;
  width: 1em;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  font-size: 18px;
  color: #ccc;
}

.rate:not(:checked) > label:before {
  content: '★ ';
}

.rate > input:checked ~ label {
  color: #ffc700;
}

.rate:not(:checked) > label:hover,
.rate:not(:checked) > label:hover ~ label {
  color: #deb217;
}

.rate > input:checked + label:hover,
.rate > input:checked + label:hover ~ label,
.rate > input:checked ~ label:hover,
.rate > input:checked ~ label:hover ~ label,
.rate > label:hover ~ input:checked ~ label {
  color: #c59b08;
}