Skip to content
Snippets Groups Projects
styles.css 3.83 KiB
Newer Older
body {
  background-color: black;
  margin: 0;
Yuriy Maksymets's avatar
Yuriy Maksymets committed
#canvas {
  width: calc(100vw - 8px);
  background-color: white;
  border: 4px solid red;
}

#tools-panel {
  padding-top: 8px;
  display: flex;
  align-items: center;
#connected-room-info {
  display: none;
  color: white;
  flex: 1;
  text-align: right;
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: 100%;
  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;
  padding: 16px;
}

.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;
}

#connected-peers li {
  border-bottom: 1px solid black;
  padding: 4px 0;
}

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

.dropdown:hover .peers {
  display: block;
}

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

#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;
}

#pen-tool {
  background-color: #2f2f2f;
  color: white;
  padding: 10px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 50%;
}

#pen-tool:hover {
  transition-duration: 0.4s;
}

#eraser-tool {
  background-color: #2f2f2f;
  color: white;
  padding: 10px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 50%;
}

#eraser-tool:hover {
  transition-duration: 0.4s;
}
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;
  font-family: "Martel", 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);
  font-family: "Martel", serif;

.wheelPiece {
  opacity: 0.8;
}

.wheelPiece:hover {
  opacity: 1;
}

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

.properties:palette {
  padding-top: 50px;
}