Skip to content
Snippets Groups Projects
styles.css 9.87 KiB
Newer Older
Yuriy Maksymets's avatar
Yuriy Maksymets committed
#console {
  color: white;
}

body {
  background-color: black;
  margin: 0;
Yuriy Maksymets's avatar
Yuriy Maksymets committed
#canvas-container {
  width: calc(100vw - 8px);
  background-color: white;
  border: 4px solid red;
Yuriy Maksymets's avatar
Yuriy Maksymets committed
  position: relative;
  overflow: hidden;
}

#canvas {
  position: absolute;
  left: -5000px;
  top: -5000px;
  width: 10000px;
  height: 10000px;
}

#tools-panel {
  padding-top: 8px;
  display: flex;
  align-items: center;
#connected-room-info {
  color: white;
  display: flex;
  align-items: center;
  background-color: #4f4f4fb7;
  border-radius: 4px;
  justify-content: center;
Yuriy Maksymets's avatar
Yuriy Maksymets committed
button.selected {
Yuriy Maksymets's avatar
Yuriy Maksymets committed
}
#top-panel {
  padding: 8px;
}

.top-bar {
  background-color: black;
  width: 100%;
  height: 36px;
  display: flex;
  align-items: stretch;
  z-index: 999;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-peers {
  background-color: #2f2f2f;
  color: white;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition-duration: 0.4s;
  height: 36px;
  width: 36px;
}

.peers {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.peers a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.peers a:hover {
  background-color: #f1f1f1;
}

#connected-peers {
  white-space: nowrap;
  list-style: none;
  padding: 0 0 4px 0;
  margin: 0;
}

@keyframes connected-peers-slide {
  from {
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

#connected-peers li {
  animation: connected-peers-slide 0.5s forwards;
  border-bottom: 1px solid black;
  padding: 4px 0;
  display: flex;
  align-items: center;
}

#connected-peers li:nth-child(2) {
  animation-delay: 0.125s;
}

#connected-peers li:nth-child(3) {
  animation-delay: 0.25s;
}

#connected-peers li:nth-child(4) {
  animation-delay: 0.375s;
}

#connected-peers li:nth-child(5) {
  animation-delay: 0.5s;
}

#connected-peers li:nth-child(6) {
  animation-delay: 0.625s;
#connected-peers li:nth-child(7) {
  animation-delay: 0.75s;
}

#connected-peers li:nth-child(8) {
  animation-delay: 0.875s;
}

#connected-peers li:last-child {
  border-bottom-width: 0px;
}

.peer-status {
  width: 15px;
  height: 15px;
  margin-right: 5px;
}

.peer-status {
.peer-status::after {
  font-size: 0.5em;
  margin-left: 10px;
  background-color: white;
  border-radius: 50%;
}

.peer-status.upload::after {
  content: "▲";
  padding: 0.5px;
}

.peer-status.download::after {
  content: "▼";
  padding: 1px;
}

  background-color: gray;
}

@keyframes peer-status-negotiating {
  from {
    background-color: orange;
  }
}

.peer-status.negotiating {
  animation: peer-status-negotiating 0.5s step-end infinite;
  background-color: orange;
.dropdown:hover .peers {
  display: block;
}

.dropdown:hover .dropdown-peers {
  background-color: #4f4f4f;
}

#overall-status-icon {
  pointer-events: none;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  padding: 4px;
  margin-left: -18px;
  margin-top: -4px;
  z-index: 0;
}

@keyframes overall-status-synchronising {
  to {
    transform: rotate(-360deg);
  }
}

#overall-status-icon.synchronising {
  background-color: orange;
  animation: overall-status-synchronising 2s linear infinite;
}

#overall-status-icon.synchronised {
  background-color: green;
}

#overall-status-icon-img {
  height: inherit;
}

#room-id {
  flex: 1;
  padding: 10px;
  margin: 0 8px;
  box-sizing: border-box;
  opacity: 0.8;
  border-radius: 4px;
}

#room-connect {
  background-color: #2f2f2f;
  color: white;
  padding: 8px;
  font-size: 12px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  width: 78px;
  height: 36px;
  white-space: nowrap;
  overflow: hidden;
Yuriy Maksymets's avatar
Yuriy Maksymets committed
.selectable-tool {
  background-color: #2f2f2f;
  color: white;
  padding: 10px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 50%;
}

Yuriy Maksymets's avatar
Yuriy Maksymets committed
.selectable-tool:hover {
  transition-duration: 0.4s;
}
#pen-tool {
  width: 39px;
  height: 39px;
  margin-right: 8px;
}

  padding: 0 1.5px;
#eraser-tool {
  width: 39px;
  height: 39px;
  margin-right: 8px;
  padding: 0 1.5px;
}

#dragging-tool {
  width: 39px;
  height: 39px;
  margin-right: 8px;
}

#dragging-tool > i {
  padding: 0 2.5px;
}

#canvas-center {
  width: 39px;
  height: 39px;
  margin-right: 8px;
}

#canvas-center > i {
  padding: 0 1.5px;
}

#recognition-mode {
  width: 39px;
  height: 39px;
  margin-right: 8px;
}

#recognition-mode > i {
  padding: 0 2.5px;
  width: 39px;
  height: 39px;
  margin-right: 8px;
}

#undo-tool.disabled {
  display: none;
}

  padding: 0 2.5px;
  width: 39px;
  height: 39px;
  margin-right: 8px;
}

#fast-undo-tool.disabled {
  display: none;
}

  padding: 0 1.5px;
Giovanni Caruso's avatar
Giovanni Caruso committed
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
Giovanni Caruso's avatar
Giovanni Caruso committed
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

.pen-contents {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: 80%;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
  animation-name: animatetop;
  animation-duration: 0.4s;
Giovanni Caruso's avatar
Giovanni Caruso committed
  font-family: "Martel", sans-serif;
}

.close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.pen-header {
  padding: 2px 16px;
Giovanni Caruso's avatar
Giovanni Caruso committed
  background-color: #2f2f2f;
  color: white;
}

.pen-body {
  padding: 2px 16px;
Giovanni Caruso's avatar
Giovanni Caruso committed
  display: flex;
  align-items: center;
}

@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

Giovanni Caruso's avatar
Giovanni Caruso committed
#rectangle {
  height: 20px;
  width: 30px;
  background-color: blue;
}

.palette-selector {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 1px solid #888;
  width: 500px;
  height: 500px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
Giovanni Caruso's avatar
Giovanni Caruso committed
  font-family: "Martel", sans-serif;

.wheelPiece {
  opacity: 0.8;
}

.wheelPiece:hover {
  opacity: 1;
}

.wheel-header {
  padding: 2px 16px;
  background-color: #2f2f2f;
  color: white;
  text-align: center;
}
Giovanni Caruso's avatar
Giovanni Caruso committed

Giovanni Caruso's avatar
Giovanni Caruso committed
.slide-size {
  width: 90%;
  height: 20%;
  margin-left: 2.2%;
Giovanni Caruso's avatar
Giovanni Caruso committed
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 25px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
  margin-top: 30px;
}

.slider:hover {
  opacity: 1;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background: #4f4f4f;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: #4f4f4f;
  cursor: pointer;
}

@media only screen and (max-width: 600px) {
  .properties {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
  }

  .palette-selector {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    height: 80%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
    font-family: "Martel", serif;
  }

  .wheel-header {
    padding: 2px 16px;
    background-color: #2f2f2f;
    color: white;
    text-align: center;
  }
}

Giovanni Caruso's avatar
Giovanni Caruso committed
#others {
Giovanni Caruso's avatar
Giovanni Caruso committed
  margin-top: 2%;
Giovanni Caruso's avatar
Giovanni Caruso committed
  display: flex;
  align-items: center;
  justify-content: center;
Giovanni Caruso's avatar
Giovanni Caruso committed
  background-color: #3cbc8d;
  color: white;
  padding-top: 4px;
  padding-bottom: 4px;
}

#other-colours {
  background-color: #3cbc8d;
}

#colours {
  background-color: blue;
  height: 32px;
  width: 64px;
  border: 4px solid #555;
  border-radius: 4px;
  opacity: 0.5;
  margin-left: 2%;
}

#colours:hover {
  border: 4px solid #4f4f4f;
  border-radius: 4px;
  opacity: 1;
  transition-duration: 0.4s;
}

@supports (-webkit-overflow-scrolling: touch) {
  #colours {
    visibility: hidden;
  }

  #other-colours {
    visibility: visible;
  }
}

@supports not (-webkit-overflow-scrolling: touch) {
  #other-colours {
    visibility: hidden;
  }
Giovanni Caruso's avatar
Giovanni Caruso committed
}

@font-face {
  font-family: "Martel";
  font-style: normal;
  font-weight: 400;
  src: url("./assets/fonts/martel-v4-latin/martel-v4-latin-regular.eot");
  src: local("Martel"), local("Martel-Regular"),
    url("./assets/fonts/martel-v4-latin/martel-v4-latin-regular.eot?#iefix")
      format("embedded-opentype"),
    url("./assets/fonts/martel-v4-latin/martel-v4-latin-regular.woff2")
      format("woff2"),
    url("./assets/fonts/martel-v4-latin/martel-v4-latin-regular.woff")
      format("woff"),
    url("./assets/fonts/martel-v4-latin/martel-v4-latin-regular.ttf")
      format("truetype"),
    url("./assets/fonts/martel-v4-latin/martel-v4-latin-regular.svg#Martel")
      format("svg");
Giovanni Caruso's avatar
Giovanni Caruso committed
}
Giovanni Caruso's avatar
Giovanni Caruso committed

.avatar {
  margin-right: 5px;
}

#user-avatar {
  color: white;
  display: flex;
  align-items: center;
  background-color: #4f4f4fb7;
  border-radius: 4px;
  margin-left: 0.75em;
  padding: 0 0.75em 0 0;
}

#status-info {
  display: flex;
  align-items: center;
  justify-content: right;
}

#imperial-logo {
    background-color: white;
    display: flex;
    align-items: center;
    border-radius: 4px;
    margin-left: 0.75em;
    padding: 0;
}