Advertisement
carlos__z

Untitled

Nov 17th, 2020
764
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.73 KB | None | 0 0
  1. body {
  2.     --block-text-color: #222;
  3.     --block-background-color: #fff;
  4.     --block-accent-color: #00ae86;
  5.     --block-shadow-color: #444;
  6. }
  7. .block {
  8.     display: block;
  9.     color: var(--block-text-color);
  10.     border: 3px solid var(--block-text-color);
  11.     border-radius: 3px;
  12.     padding: 4px 8px;
  13.     background: var(--block-background-color);
  14.     font-weight: 700;
  15.     cursor: pointer;
  16.     box-sizing: border-box;
  17.     position: relative;
  18.     top: -2px;
  19.     left: -2px;
  20.     transition: transform 0.2s;
  21.     margin: 8px 6px 10px;
  22.     z-index: 1;
  23.     user-select: none;
  24.     -webkit-user-select: none;
  25.     -moz-user-select: none;
  26. }
  27. .block.wrapper,
  28. .block.wrapper.inline {
  29.     display: inline-block;
  30.     padding: 0;
  31. }
  32. .block.wrapper > * {
  33.     margin: 0;
  34. }
  35. .block:before {
  36.     content: "";
  37.     background: var(--block-background-color);
  38.     border: 3px solid var(--block-text-color);
  39.     border-radius: 3px;
  40.     position: absolute;
  41.     top: -3px;
  42.     left: -3px;
  43.     height: 100%;
  44.     width: 100%;
  45.     z-index: -1;
  46. }
  47. .block:focus,
  48. .block:hover {
  49.     transform: translate(2px, 2px);
  50. }
  51. .block:after {
  52.     content: "";
  53.     display: block;
  54.     background: var(--block-shadow-color);
  55.     border: 3px solid var(--block-text-color);
  56.     border-radius: 3px;
  57.     height: 100%;
  58.     width: 100%;
  59.     position: absolute;
  60.     top: 3px;
  61.     left: 3px;
  62.     right: 0;
  63.     z-index: -2;
  64.     transition: transform 0.2s;
  65. }
  66. .block:focus:after,
  67. .block:hover:after {
  68.     transform: translate(-2px, -3px);
  69. }
  70. .block:active {
  71.     color: var(--block-text-color);
  72.     transform: translate(3px, 3px);
  73. }
  74. .block:active:after {
  75.     transform: translate(-4px, -4px);
  76. }
  77. .block:focus {
  78.     outline: none;
  79. }
  80. .block.fixed {
  81.     cursor: auto;
  82. }
  83. .block.fixed:active,
  84. .block.fixed:active:after,
  85. .block.fixed:active:before,
  86. .block.fixed:focus,
  87. .block.fixed:focus:after,
  88. .block.fixed:focus:before,
  89. .block.fixed:hover,
  90. .block.fixed:hover:after,
  91. .block.fixed:hover:before {
  92.     transform: none;
  93. }
  94. .block.accent {
  95.     color: var(--block-background-color);
  96. }
  97. .block.accent,
  98. .block.accent:before {
  99.     background: var(--block-accent-color);
  100. }
  101. .block.inline {
  102.     display: inline-block;
  103.     font-size: 0.75em;
  104.     padding: 0 6px;
  105.     margin: 3px 2px 1px 4px;
  106. }
  107. .block.inline:after {
  108.     top: -1px;
  109.     left: -1px;
  110. }
  111. .block.inline:focus,
  112. .block.inline:hover {
  113.     transform: translate(1px, 1px);
  114. }
  115. .block.inline:focus:after,
  116. .block.inline:hover:after {
  117.     transform: translate(-1px, -1px);
  118. }
  119. .block.inline:active {
  120.     transform: translate(2px, 2px);
  121. }
  122. .block.round,
  123. .block.round:after,
  124. .block.round:before {
  125.     border-radius: 30px;
  126. }
  127. .block.round:after {
  128.     left: 1px;
  129. }
  130. /*# sourceMappingURL=blocks.min.css.map */
  131.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement