shapes.css 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. /*
  2. Square Shape
  3. */
  4. .square-shape {
  5. width: 100px;
  6. height: 100px;
  7. background: #967ADC; }
  8. /*
  9. Rectangle Shape
  10. */
  11. .rectangle-shape {
  12. width: 200px;
  13. height: 100px;
  14. background: #967ADC; }
  15. /*
  16. Circle Shape
  17. */
  18. .circle-shape {
  19. width: 100px;
  20. height: 100px;
  21. background: #967ADC;
  22. -moz-border-radius: 50px;
  23. -webkit-border-radius: 50px;
  24. border-radius: 50px; }
  25. /*
  26. Oval Shape
  27. */
  28. .oval-shape {
  29. width: 200px;
  30. height: 100px;
  31. background: #967ADC;
  32. -moz-border-radius: 100px / 50px;
  33. -webkit-border-radius: 100px / 50px;
  34. border-radius: 100px / 50px; }
  35. /*
  36. Triangle Up
  37. */
  38. .triangle-up-shape {
  39. width: 100px;
  40. height: 100px;
  41. border-left: 50px solid transparent;
  42. border-right: 50px solid transparent;
  43. border-bottom: 100px solid #967ADC; }
  44. /*
  45. Triangle Down
  46. */
  47. .triangle-down-shape {
  48. width: 0;
  49. height: 0;
  50. border-left: 50px solid transparent;
  51. border-right: 50px solid transparent;
  52. border-top: 100px solid #967ADC; }
  53. /*
  54. Triangle Left
  55. */
  56. .triangle-left-shape {
  57. width: 0;
  58. height: 0;
  59. border-top: 50px solid transparent;
  60. border-right: 100px solid #967ADC;
  61. border-bottom: 50px solid transparent; }
  62. /*
  63. Triangle Right
  64. */
  65. .triangle-right-shape {
  66. width: 0;
  67. height: 0;
  68. border-top: 50px solid transparent;
  69. border-left: 100px solid #967ADC;
  70. border-bottom: 50px solid transparent; }
  71. /*
  72. Triangle Top Left
  73. */
  74. .triangle-topleft-shape {
  75. width: 0;
  76. height: 0;
  77. border-top: 100px solid #967ADC;
  78. border-right: 100px solid transparent; }
  79. /*
  80. Triangle Top Right
  81. */
  82. .triangle-topright-shape {
  83. width: 0;
  84. height: 0;
  85. border-top: 100px solid #967ADC;
  86. border-left: 100px solid transparent; }
  87. /*
  88. Triangle Bottom Left
  89. */
  90. .triangle-bottomleft-shape {
  91. width: 0;
  92. height: 0;
  93. border-bottom: 100px solid #967ADC;
  94. border-right: 100px solid transparent; }
  95. /*
  96. Triangle Bottom Right
  97. */
  98. .triangle-bottomright-shape {
  99. width: 0;
  100. height: 0;
  101. border-bottom: 100px solid #967ADC;
  102. border-left: 100px solid transparent; }
  103. /*
  104. Star Shape
  105. */
  106. .star-shape {
  107. margin: 50px 0;
  108. position: relative;
  109. display: block;
  110. color: #967ADC;
  111. width: 0px;
  112. height: 0px;
  113. border-right: 100px solid transparent;
  114. border-bottom: 70px solid #967ADC;
  115. border-left: 100px solid transparent;
  116. transform: rotate(35deg); }
  117. .star-shape:before {
  118. border-bottom: 80px solid #967ADC;
  119. border-left: 30px solid transparent;
  120. border-right: 30px solid transparent;
  121. position: absolute;
  122. height: 0;
  123. width: 0;
  124. top: -45px;
  125. left: -65px;
  126. display: block;
  127. content: '';
  128. transform: rotate(-35deg); }
  129. .star-shape:after {
  130. position: absolute;
  131. display: block;
  132. color: #967ADC;
  133. top: 3px;
  134. left: -105px;
  135. width: 0px;
  136. height: 0px;
  137. border-right: 100px solid transparent;
  138. border-bottom: 70px solid #967ADC;
  139. border-left: 100px solid transparent;
  140. transform: rotate(-70deg);
  141. content: ''; }
  142. /*
  143. Pentagon
  144. */
  145. .pentagon-shape {
  146. position: relative;
  147. width: 54px;
  148. border-width: 50px 18px 0;
  149. border-style: solid;
  150. border-color: #967ADC transparent; }
  151. .pentagon-shape:before {
  152. content: "";
  153. position: absolute;
  154. height: 0;
  155. width: 0;
  156. top: -85px;
  157. left: -18px;
  158. border-width: 0 45px 35px;
  159. border-style: solid;
  160. border-color: transparent transparent #967ADC; }
  161. /*
  162. Hexagon
  163. */
  164. .hexagon-shape {
  165. width: 100px;
  166. height: 55px;
  167. background: #967ADC;
  168. position: relative; }
  169. .hexagon-shape:before {
  170. content: "";
  171. position: absolute;
  172. top: -25px;
  173. left: 0;
  174. width: 0;
  175. height: 0;
  176. border-left: 50px solid transparent;
  177. border-right: 50px solid transparent;
  178. border-bottom: 25px solid #967ADC; }
  179. .hexagon-shape:after {
  180. content: "";
  181. position: absolute;
  182. bottom: -25px;
  183. left: 0;
  184. width: 0;
  185. height: 0;
  186. border-left: 50px solid transparent;
  187. border-right: 50px solid transparent;
  188. border-top: 25px solid #967ADC; }
  189. /*
  190. Octagon
  191. */
  192. .octagon-shape {
  193. width: 100px;
  194. height: 100px;
  195. background: #967ADC;
  196. position: relative; }
  197. .octagon-shape:before {
  198. content: "";
  199. position: absolute;
  200. top: 0;
  201. left: 0;
  202. border-bottom: 29px solid #967ADC;
  203. border-left: 29px solid #eee;
  204. border-right: 29px solid #eee;
  205. width: 42px;
  206. height: 0; }
  207. .octagon-shape:after {
  208. content: "";
  209. position: absolute;
  210. bottom: 0;
  211. left: 0;
  212. border-top: 29px solid #967ADC;
  213. border-left: 29px solid #eee;
  214. border-right: 29px solid #eee;
  215. width: 42px;
  216. height: 0; }
  217. /*
  218. Heart Shape
  219. */
  220. .heart-shape {
  221. position: relative;
  222. width: 100px;
  223. height: 90px; }
  224. .heart-shape:before {
  225. position: absolute;
  226. content: "";
  227. left: 50px;
  228. top: 0;
  229. width: 50px;
  230. height: 80px;
  231. background: #967ADC;
  232. -moz-border-radius: 50px 50px 0 0;
  233. border-radius: 50px 50px 0 0;
  234. transform: rotate(-45deg);
  235. transform-origin: 0 100%; }
  236. .heart-shape:after {
  237. position: absolute;
  238. content: "";
  239. left: 50px;
  240. top: 0;
  241. width: 50px;
  242. height: 80px;
  243. background: #967ADC;
  244. -moz-border-radius: 50px 50px 0 0;
  245. border-radius: 50px 50px 0 0;
  246. transform: rotate(-45deg);
  247. transform-origin: 0 100%;
  248. left: 0;
  249. transform: rotate(45deg);
  250. transform-origin: 100% 100%; }
  251. /*
  252. Diamond
  253. */
  254. .cut-diamond-shape {
  255. border-style: solid;
  256. border-color: transparent transparent #967ADC transparent;
  257. border-width: 0 25px 25px 25px;
  258. height: 0;
  259. width: 50px;
  260. position: relative;
  261. margin: 20px 0 50px 0; }
  262. .cut-diamond-shape:after {
  263. content: "";
  264. position: absolute;
  265. top: 25px;
  266. left: -25px;
  267. width: 0;
  268. height: 0;
  269. border-style: solid;
  270. border-color: #967ADC transparent transparent transparent;
  271. border-width: 70px 50px 0 50px; }
  272. /*
  273. Diamond Square
  274. */
  275. .diamond-shape {
  276. width: 0;
  277. height: 0;
  278. border: 50px solid transparent;
  279. border-bottom-color: #967ADC;
  280. position: relative;
  281. top: -50px; }
  282. .diamond-shape:after {
  283. content: '';
  284. position: absolute;
  285. left: -50px;
  286. top: 50px;
  287. width: 0;
  288. height: 0;
  289. border: 50px solid transparent;
  290. border-top-color: #967ADC; }
  291. /*
  292. Egg Shape
  293. */
  294. .egg-shape {
  295. display: block;
  296. width: 126px;
  297. height: 180px;
  298. background-color: #967ADC;
  299. -webkit-border-radius: 63px 63px 63px 63px / 108px 108px 72px 72px;
  300. border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
  301. .app-shape {
  302. position: relative;
  303. color: #FFF;
  304. vertical-align: middle;
  305. margin: auto;
  306. z-index: 10; }
  307. .app-shape span {
  308. position: absolute;
  309. top: 50%;
  310. margin-top: -10px;
  311. left: 0;
  312. right: 0;
  313. z-index: 11; }
  314. .heart-shape span {
  315. margin-top: -20px; }
  316. @media (min-width: 768px) {
  317. .jqueryui-ele-container .app-shape {
  318. display: inline-block; } }