shapes.css 7.6 KB

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