Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.59 KB | None | 0 0
  1. /*グラデーション下線*/
  2. h2.underline {
  3. position: relative;
  4. display: block;
  5. padding: 0.2em 0;
  6. }
  7.  
  8. h2.underline::before {
  9. position: absolute;
  10. bottom: 0;
  11. display: block;
  12. width: 100%;
  13. height: 4px;
  14. background: #8ec5fc;
  15. background-image: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
  16. content: "";
  17. }
  18.  
  19. /*カラフル下線*/
  20. h2.underline-colorful {
  21. position: relative;
  22. display: block;
  23. padding: 0.2em 0;
  24. }
  25.  
  26. h2.underline-colorful::before {
  27. position: absolute;
  28. bottom: 0;
  29. display: block;
  30. width: 100%;
  31. height: 4px;
  32. background: linear-gradient(to right, rgb(190, 255, 209) 0%,rgb(181, 253, 202) 33%,rgb(255, 145, 137) 33%,rgb(252, 188, 165) 66%,rgb(174, 220, 255) 66%,rgb(155, 211, 255) 100%);
  33. background-color: #a3e9ff;
  34. content: "";
  35. }
  36.  
  37. /*丸アイコン*/
  38. h2.circle {
  39. position: relative;
  40. display: block;
  41. padding: 0.2em 0 0.2em 1.2em;
  42. }
  43.  
  44. h2.circle::before {
  45. position: absolute;
  46. top: 0.5em;
  47. left: 0;
  48. display: block;
  49. width: 0.8em;
  50. height: 0.8em;
  51. border-radius: 50%;
  52. background: #35bdcc;
  53. content: "";
  54. }
  55.  
  56. /*丸アイコン2個*/
  57. h2.circle-two {
  58. position: relative;
  59. display: block;
  60. padding: 0.2em 0 0.2em 1.2em;
  61. }
  62.  
  63. h2.circle-two::before {
  64. position: absolute;
  65. top: 0.6em;
  66. left: 0;
  67. display: block;
  68. width: 0.8em;
  69. height: 0.8em;
  70. border-radius: 50%;
  71. background: #70e2ef;
  72. box-shadow: 0.4em -0.4em 0 -1px #ffcdcd;
  73. content: "";
  74. }
  75.  
  76. /*四角アイコン*/
  77. h2.square {
  78. position: relative;
  79. display: block;
  80. padding: 0.2em 0 0.2em 1.2em;
  81. }
  82.  
  83. h2.square::before {
  84. position: absolute;
  85. top: 0.5em;
  86. left: 0;
  87. display: block;
  88. width: 0.8em;
  89. height: 0.8em;
  90. background: #9dcdff;
  91. content: "";
  92. }
  93.  
  94. /*四角アイコン2個横並び*/
  95. h2.square-two-side {
  96. position: relative;
  97. display: block;
  98. padding: 0.2em 0 0.2em 2em;
  99. }
  100.  
  101. h2.square-two-side::before {
  102. position: absolute;
  103. top: 0.46em;
  104. left: 0;
  105. display: block;
  106. width: 0.8em;
  107. height: 0.8em;
  108. background: #9dcdff;
  109. box-shadow: 1em 0 0 #ffcdcd;
  110. content: "";
  111. }
  112.  
  113. /*四角アイコン2個縦並び*/
  114. h2.square-two-length {
  115. position: relative;
  116. display: block;
  117. padding: 0.2em 0 0.2em 1em;
  118. }
  119.  
  120. h2.square-two-length::before {
  121. position: absolute;
  122. top: 0.2em;
  123. left: 0;
  124. display: block;
  125. width: 0.6em;
  126. height: 0.6em;
  127. background: #9dcdff;
  128. box-shadow: 0 0.7em 0 #ffcdcd;
  129. content: "";
  130. }
  131.  
  132. /*四角アイコン4個*/
  133. h2.square-four {
  134. position: relative;
  135. display: block;
  136. padding: 0.2em 0 0.2em 1.4em;
  137. }
  138.  
  139. h2.square-four::before {
  140. position: absolute;
  141. top: 0.3em;
  142. left: 0;
  143. display: block;
  144. width: 0.5em;
  145. height: 0.5em;
  146. background: #ffa3a3;
  147. box-shadow: 0 0.6em 0 #93e099, 0.6em 0 0 #8adaf9, 0.6em 0.6em 0 #efc378;
  148. content: "";
  149. }
  150.  
  151. /*ひし形アイコン*/
  152. h2.diamond {
  153. position: relative;
  154. display: block;
  155. padding: 0.2em 0 0.2em 1.2em;
  156. }
  157.  
  158. h2.diamond::before {
  159. position: absolute;
  160. top: 0.5em;
  161. left: 0;
  162. display: block;
  163. width: 0.8em;
  164. height: 0.8em;
  165. background: #5ea6c3;
  166. content: "";
  167. -webkit-transform: rotate(-45deg);
  168. transform: rotate(-45deg);
  169. }
  170.  
  171. /*ひし形2個アイコン*/
  172. h2.diamond-two {
  173. position: relative;
  174. display: block;
  175. padding: 0.2em 0 0.2em 1.5em;
  176. }
  177.  
  178. h2.diamond-two::before {
  179. position: absolute;
  180. top: 0.5em;
  181. left: 0;
  182. display: block;
  183. width: 0.8em;
  184. height: 0.8em;
  185. background: #5ea6c3;
  186. box-shadow: 0.4em 0.4em 0 -0.1em #ff9c4f;
  187. content: "";
  188. -webkit-transform: rotate(-45deg);
  189. transform: rotate(-45deg);
  190. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement