Guest User

Untitled

a guest
Jun 19th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. <nav class="radial">
  2. <input type="checkbox" id="menu" checked>
  3. <a href="" class="fa fa-question">About</a>
  4. <a href="" class="fa fa-book">Resume</a>
  5. <a href="" class="fa fa-code">Blog</a>
  6. <a href="" class="fa fa-github">Github</a>
  7. <a href="" class="fa fa-stack-exchange">a</a>
  8. <label for="menu" class='fa-bars'>Menu</label>
  9. </nav>
  10.  
  11. <nuxt-link :to="'/about'"><fa icon="bars" /></nuxt-link>
  12.  
  13. nav.radial {
  14. -webkit-touch-callout: none;
  15. -webkit-user-select: none;
  16. -khtml-user-select: none;
  17. -moz-user-select: none;
  18. -ms-user-select: none;
  19. user-select: none;
  20. position: relative;
  21. top: -2.5rem;
  22. width: 3rem;
  23. height: 3rem;
  24. margin: 0 100px;
  25. }
  26. nav.radial input {
  27. display: none;
  28. }
  29. nav.radial > label,
  30. nav.radial > a {
  31. display: block;
  32. position: absolute;
  33. top: 0;
  34. left: 0;
  35. width: 100%;
  36. height: 100%;
  37. background-color: #21618C;
  38. color: white;
  39. text-align: center;
  40. font-size: 0;
  41. line-height: 3rem;
  42. }
  43. nav.radial label:before,
  44. nav.radial a:before {
  45. font-size: 1.2rem;
  46. color: white;
  47. }
  48. nav.radial a {
  49. color: transparent;
  50. text-decoration: none;
  51. box-sizing: border-box;
  52. }
  53. nav.radial label {
  54. border-radius: 0 0 1.5rem 1.5rem;
  55. cursor: pointer;
  56. box-sizing: border-box;
  57. border-bottom: 0.25rem solid #2f2f2f;
  58. box-shadow: 0 0.1875rem rgba(0, 0, 0, 0.25);
  59. transition: border-bottom 0.25s, box-shadow 0.5s;
  60. }
  61. nav.radial input:checked ~ label {
  62. border-bottom-width: 1px;
  63. box-shadow: none;
  64. }
  65. nav.radial a[href] {
  66. transition: top 0.1s, left 0.25s, opacity 1s, box-shadow 0.25s;
  67. border-radius: 1.5rem;
  68. opacity: 0;
  69. box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  70. border-bottom: 1px solid #888;
  71. box-sizing: border-box;
  72. }
  73. nav.radial a[href]:hover {
  74. background-color: #E6EDF2;
  75. border-bottom-color: #2c7768;
  76. }
  77. nav.radial input:checked ~ a[href] {
  78. transition: top 1s, left 0.6s, box-shadow 1s, background-color 0.25s, border-bottom-color 0.25s, border-bottom-width 0.25s;
  79. opacity: 1;
  80. }
  81. nav.radial a[href]:hover {
  82. border-bottom-width: 0.25rem;
  83. }
  84. nav.radial input:checked ~ a[href]:nth-of-type(1),
  85. nav.radial input:checked ~ a[href]:nth-of-type(5) {
  86. box-shadow: 0 -0.1875rem 0.375rem rgba(0, 0, 0, 0.25);
  87. }
  88. nav.radial input:checked ~ a[href]:nth-of-type(1) {
  89. left: -4.72707721rem;
  90. top: 0.83351125rem;
  91. }
  92. nav.radial input:checked ~ a[href]:nth-of-type(2) {
  93. left: -3.08538053rem;
  94. top: 3.67701333rem;
  95. }
  96. nav.radial input:checked ~ a[href]:nth-of-type(3) {
  97. left: 0rem;
  98. top: 4.8rem;
  99. }
  100. nav.radial input:checked ~ a[href]:nth-of-type(4) {
  101. left: 3.08538053rem;
  102. top: 3.67701333rem;
  103. }
  104. nav.radial input:checked ~ a[href]:nth-of-type(5) {
  105. left: 4.72707721rem;
  106. top: 0.83351125rem;
  107. }
Add Comment
Please, Sign In to add comment