Skip to content

Instantly share code, notes, and snippets.

@RinatValiullov
Last active June 25, 2017 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RinatValiullov/2d80ad12bb73aab5a793412db49238b9 to your computer and use it in GitHub Desktop.
Save RinatValiullov/2d80ad12bb73aab5a793412db49238b9 to your computer and use it in GitHub Desktop.
Pure CSS Icons

HTML:

  <div class="wrapper">
    <div class="check icon"></div>
  </div>

CSS:

.wrapper {
  width: 50px;
  height: 50px;
  background-color: #555;
  padding: 15px;
  border-radius: 50%;
  cursor: pointer;
}

.check.icon {
  color: #fff;
  margin: auto;
  width: 30px;
  height: 30px;
  border-bottom: solid 1px;
  border-left: solid 1px;
  transform: rotate(-45deg);
}

angle-arrow-down

HTML:

  <div class="wrapper">
    <div class="check icon"></div>
  </div>

CSS:

.wrapper {
  width: 50px;
  height: 50px;
  background-color: #555;
  padding: 15px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
}

.check.icon {
  color: #fff;
  margin-top: 10px;
  width: 30px;
  height: 30px;
  border-bottom: solid 1px;
  border-left: solid 1px;
  transform: translate(-50%, -50%) rotate(-225deg);
  position: absolute;
  left: 50%;
  top: 50%;
}

angle-arrow-up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment