Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.34 KB | None | 0 0
  1. /*
  2. # Clueless
  3. # Copyright (c) 2015, Ajay Gupta. All Rights Reserved
  4. # ================================================
  5. # Redistribution and use in source and binary forms, with or without
  6. # modification, are permitted provided that the following conditions are met:
  7. # # Redistributions of source code must retain the above copyright notice,
  8. # # this list of conditions and the following disclaimer.
  9. # # # Redistributions in binary form must reproduce the above copyright
  10. # # # notice, this list of conditions and the following disclaimer in the
  11. # # # documentation and/or other materials provided with the distribution.
  12. # # # # Neither the name "Clueless" nor the names of its contributors may
  13. # # # # be used to endorse or promote products derived from this software
  14. # # # # without specific prior written permission.
  15. # This software is provided by the copyright holders and contributors "as
  16. # is" and any express or implied warranties, including, but not limited
  17. # to, the implied warranties of merchantability and fitness for a
  18. # particular purpose are disclaimed. In no event shall the copyright owner
  19. # or contributors be liable for any direct, indirect, incidental, special,
  20. # exemplary, or consequential damages (including, but not limited to,
  21. # procurement of substitute goods or services; loss of use, data, or
  22. # profits; or business interruption) however caused and on any theory of
  23. # liability, whether in contract, strict liability, or tort (including
  24. # negligence or otherwise) arising in any way out of the use of this
  25. # software, even if advised of the possibility of such damage.
  26. */
  27.  
  28. [data-clue] { position: relative; display: inline-block; }
  29. [data-clue]:before, [data-clue]:after {
  30. opacity: 0;
  31. visibility: hidden;
  32. z-index: 9999;
  33. pointer-events: none;
  34.  
  35. position: absolute;
  36. bottom: 100%; left: 50%;
  37.  
  38. -webkit-transition: 0.15s ease-in-out;
  39. -moz-transition: 0.15s ease-in-out;
  40. -ms-transition: 0.15s ease-in-out;
  41. -o-transition: 0.15s ease-in-out;
  42. transition: 0.15s ease-in-out;
  43. }
  44.  
  45. [data-clue]:hover:before, [data-clue]:hover:after {
  46. opacity: 1;
  47. visibility: visible;
  48.  
  49. -webkit-transform: translateY(-8px);
  50. -moz-transform: translateY(-8px);
  51. -ms-transform: translateY(-8px);
  52. -o-transform: translateY(-8px);
  53. transform: translateY(-8px)
  54. }
  55.  
  56. [data-clue]:before {
  57. background: transparent;
  58. background: transparent;
  59.  
  60. cotnent: "";
  61. z-index: 100000;
  62. position: absolute;
  63. margin-bottom: -12px;
  64.  
  65. border: 6px solid transparent;
  66. border-top-color: #383838;
  67. }
  68.  
  69. [data-clue]:after {
  70. background: #111111;
  71. background: rgba(0, 0, 0, 0.8);
  72. width: 100px;
  73. height: auto;
  74.  
  75. content: attr(data-clue);
  76. color: #FFFFFF;
  77. color: rgba(255, 255, 255, 1);
  78. font-size: 12px;
  79. font-family: lato;
  80.  
  81. line-height: 16px;
  82. text-transform: none;
  83. text-decoration: none;
  84. text-shadow: 1px 1px 1px #000000;
  85. text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
  86. text-align: left;
  87. white-space: wrap;
  88.  
  89. padding: 8px 10px;
  90. margin-left: -30px;
  91.  
  92. border: auto;
  93. border-bottom: 2px solid #4499FF;
  94. border-bottom: 2px solid rgba(68, 153, 255, 0.9);
  95. -webkit-border-radius: 2px;
  96. -moz-border-radius: 2px;
  97. -ms-border-radius: 2px;
  98. -o-border-radius: 2px;
  99. border-radius: 2px;
  100.  
  101. -webkit-box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.15);
  102. -moz-box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.15);
  103. -ms-box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.15);
  104. -o-box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.15);
  105. box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.15);
  106. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement