Advertisement
Guest User

sumerian

a guest
Sep 24th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.24 KB | None | 0 0
  1. <style>
  2.     /*
  3.      * Place your styles here. Beware that CSS styles affect all
  4.      * HTML elements in the page so you need to provide appropriate
  5.      * classes or IDs to identify the elements being styled.
  6.      */
  7.  
  8.     .play {
  9.       background: #ff7626;
  10.       border-radius: 50% / 10%;
  11.       color: #FFFFFF;
  12.       font-size: 1.0em; /* change this to change size */
  13.       height: 4em;
  14.       margin: 20px auto;
  15.       padding: 0;
  16.       position: relative;
  17.       text-align: center;
  18.       text-indent: 0.1em;
  19.       transition: all 150ms ease-out;
  20.       width: 5em;
  21.     }
  22.  
  23.     .play:hover {
  24.       background: #ff7626;
  25.     }
  26.  
  27.     .play::before {
  28.       background: inherit;
  29.       border-radius: 5% / 50%;
  30.       bottom: 9%;
  31.       content: "";
  32.       left: -5%;
  33.       position: absolute;
  34.       right: -5%;
  35.       top: 9%;
  36.     }
  37.  
  38.     .play::after {
  39.       border-style: solid;
  40.       border-width: 1em 0 1em 1.732em;
  41.       border-color: transparent transparent transparent rgba(255, 255, 255, 0.75);
  42.       content: ' ';
  43.       font-size: 0.75em;
  44.       height: 0;
  45.       margin: -1em 0 0 -0.75em;
  46.       top: 50%;
  47.       position: absolute;
  48.       width: 0;
  49.     }
  50. </style>
  51.  
  52. <p class="my-paragraph">
  53.     <div id="startSpeech" class="play"></div>
  54. </p>
  55.  
  56. <!-- Hints:
  57. + It is not recommended to use <script> tags directly. Consider using the Script Component instead.
  58. -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement