Skip to content
Khriztian Moreno edited this page Mar 9, 2019 · 1 revision

Styles Generales

.App {
  text-align: center;
}

a,
a:visited {
  color: #4d9cff;
  text-decoration: none;
}

a:hover {
  color: #3790ff;
  text-decoration: underline;
}

a:active {
  color: #3790ff;
  text-decoration: underline;
}

ul {
  list-style-type: none;
  padding: 0;
}

nav ul {
  margin-left: -10px;
}

nav ul li {
  display: inline-block;
  padding: 10px;
}

label {
  color: #888;
  display: block;
  margin-top: 1rem;
}

label span {
  display: block;
}

input[type="checkbox"] {
  margin-right: 0.3rem;
  position: relative;
  top: -1px;
}

label input[type="checkbox"] + span {
  display: inline;
}

button.btn-add,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  background-color: #4d9cff;
  border: 1px solid #448ae2;
  border-radius: 2px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 0.85rem;
  height: 2.2rem;
  line-height: 2.2rem;
  letter-spacing: 0.05rem;
  padding: 0 1.5rem;
  margin-top: 1rem;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

button.btn-add:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  background-color: #61a7ff;
  border-color: #5797e6;
}

button.btn-add:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px #55a1ff66;
}

button.btn-add:active,
input[type="button"]:active,
input[type="reset"]:active,
input[type="submit"]:active {
  background-color: #3790ff;
  border-color: #3180e2;
}

button[disabled].btn-add,
input[type="button"][disabled],
input[type="reset"][disabled],
input[type="submit"][disabled] {
  cursor: default;
  opacity: 0.5;
}

button[disabled].btn-add:hover,
input[type="button"][disabled]:hover,
input[type="reset"][disabled]:hover,
input[type="submit"][disabled]:hover {
  background-color: #4d9cff;
  border: 1px solid #448ae2;
}

.App-logo {
  animation: App-logo-spin infinite 20s linear;
  height: 40vmin;
  pointer-events: none;
}

.App-header {
  background-color: #282c34;
  height: 30vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
  color: white;
}

.App-link {
  color: #61dafb;
}

@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

Style Start

 <style>
      .star-btn {
        position: absolute;
        padding: 0;
        margin: 0 0 0 0.3rem;
        height: 1.4rem;
        line-height: 1.4rem;
        background: none;
        border: 0;
        font-size: 1rem;
        outline: 0
      }
      .star-btn:hover {
        background: none;
        opacity: 0.8;
      }
    
      .star-btn:focus {
        box-shadow: none;
      }
    
      @keyframes inflate {
        0% {
          font-size: 1rem;
          margin-left: 0.3rem;
        }
        100% {
          font-size: 1.4rem;
          margin-left: 0.1rem;
        }
      }
    </style>