Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.88 KB | None | 0 0
  1. #square {
  2. width: 100px;
  3. height: 100px;
  4. background: red;
  5. }
  6.  
  7. #rectangle {
  8. width: 200px;
  9. height: 100px;
  10. background: red;
  11. }
  12.  
  13. #circle {
  14. width: 100px;
  15. height: 100px;
  16. background: red;
  17. -moz-border-radius: 50px;
  18. -webkit-border-radius: 50px;
  19. border-radius: 50px;
  20. }
  21. /* Cleaner, but slightly less support: use "50%" as value */
  22.  
  23. #oval {
  24. width: 200px;
  25. height: 100px;
  26. background: red;
  27. -moz-border-radius: 100px / 50px;
  28. -webkit-border-radius: 100px / 50px;
  29. border-radius: 100px / 50px;
  30. }
  31. /* Cleaner, but slightly less support: use "50%" as value */
  32.  
  33. #triangle-up {
  34. width: 0;
  35. height: 0;
  36. border-left: 50px solid transparent;
  37. border-right: 50px solid transparent;
  38. border-bottom: 100px solid red;
  39. }
  40.  
  41. #triangle-down {
  42. width: 0;
  43. height: 0;
  44. border-left: 50px solid transparent;
  45. border-right: 50px solid transparent;
  46. border-top: 100px solid red;
  47. }
  48.  
  49. #triangle-left {
  50. width: 0;
  51. height: 0;
  52. border-top: 50px solid transparent;
  53. border-right: 100px solid red;
  54. border-bottom: 50px solid transparent;
  55. }
  56.  
  57. #triangle-right {
  58. width: 0;
  59. height: 0;
  60. border-top: 50px solid transparent;
  61. border-left: 100px solid red;
  62. border-bottom: 50px solid transparent;
  63. }
  64.  
  65. #triangle-topleft {
  66. width: 0;
  67. height: 0;
  68. border-top: 100px solid red;
  69. border-right: 100px solid transparent;
  70. }
  71.  
  72. #triangle-topright {
  73. width: 0;
  74. height: 0;
  75. border-top: 100px solid red;
  76. border-left: 100px solid transparent;
  77. }
  78.  
  79. #triangle-bottomleft {
  80. width: 0;
  81. height: 0;
  82. border-bottom: 100px solid red;
  83. border-right: 100px solid transparent;
  84. }
  85.  
  86. #triangle-bottomright {
  87. width: 0;
  88. height: 0;
  89. border-bottom: 100px solid red;
  90. border-left: 100px solid transparent;
  91. }
  92.  
  93. #curvedarrow {
  94. position: relative;
  95. width: 0;
  96. height: 0;
  97. border-top: 9px solid transparent;
  98. border-right: 9px solid red;
  99. -webkit-transform: rotate(10deg);
  100. -moz-transform: rotate(10deg);
  101. -ms-transform: rotate(10deg);
  102. -o-transform: rotate(10deg);
  103. }
  104.  
  105. #curvedarrow:after {
  106. content: "";
  107. position: absolute;
  108. border: 0 solid transparent;
  109. border-top: 3px solid red;
  110. border-radius: 20px 0 0 0;
  111. top: -12px;
  112. left: -9px;
  113. width: 12px;
  114. height: 12px;
  115. -webkit-transform: rotate(45deg);
  116. -moz-transform: rotate(45deg);
  117. -ms-transform: rotate(45deg);
  118. -o-transform: rotate(45deg);
  119. }
  120.  
  121. #trapezoid {
  122. border-bottom: 100px solid red;
  123. border-left: 50px solid transparent;
  124. border-right: 50px solid transparent;
  125. height: 0;
  126. width: 100px;
  127. }
  128.  
  129. #parallelogram {
  130. width: 150px;
  131. height: 100px;
  132. -webkit-transform: skew(20deg);
  133. -moz-transform: skew(20deg);
  134. -o-transform: skew(20deg);
  135. background: red;
  136. }
  137.  
  138. #star-six {
  139. width: 0;
  140. height: 0;
  141. border-left: 50px solid transparent;
  142. border-right: 50px solid transparent;
  143. border-bottom: 100px solid red;
  144. position: relative;
  145. }
  146.  
  147. #star-six:after {
  148. width: 0;
  149. height: 0;
  150. border-left: 50px solid transparent;
  151. border-right: 50px solid transparent;
  152. border-top: 100px solid red;
  153. position: absolute;
  154. content: "";
  155. top: 30px;
  156. left: -50px;
  157. }
  158.  
  159. #star-five {
  160. margin: 50px 0;
  161. position: relative;
  162. display: block;
  163. color: red;
  164. width: 0px;
  165. height: 0px;
  166. border-right: 100px solid transparent;
  167. border-bottom: 70px solid red;
  168. border-left: 100px solid transparent;
  169. -moz-transform: rotate(35deg);
  170. -webkit-transform: rotate(35deg);
  171. -ms-transform: rotate(35deg);
  172. -o-transform: rotate(35deg);
  173. }
  174.  
  175. #star-five:before {
  176. border-bottom: 80px solid red;
  177. border-left: 30px solid transparent;
  178. border-right: 30px solid transparent;
  179. position: absolute;
  180. height: 0;
  181. width: 0;
  182. top: -45px;
  183. left: -65px;
  184. display: block;
  185. content: '';
  186. -webkit-transform: rotate(-35deg);
  187. -moz-transform: rotate(-35deg);
  188. -ms-transform: rotate(-35deg);
  189. -o-transform: rotate(-35deg);
  190. }
  191.  
  192. #star-five:after {
  193. position: absolute;
  194. display: block;
  195. color: red;
  196. top: 3px;
  197. left: -105px;
  198. width: 0px;
  199. height: 0px;
  200. border-right: 100px solid transparent;
  201. border-bottom: 70px solid red;
  202. border-left: 100px solid transparent;
  203. -webkit-transform: rotate(-70deg);
  204. -moz-transform: rotate(-70deg);
  205. -ms-transform: rotate(-70deg);
  206. -o-transform: rotate(-70deg);
  207. content: '';
  208. }
  209.  
  210. #pentagon {
  211. position: relative;
  212. width: 54px;
  213. border-width: 50px 18px 0;
  214. border-style: solid;
  215. border-color: red transparent;
  216. }
  217.  
  218. #pentagon:before {
  219. content: "";
  220. position: absolute;
  221. height: 0;
  222. width: 0;
  223. top: -85px;
  224. left: -18px;
  225. border-width: 0 45px 35px;
  226. border-style: solid;
  227. border-color: transparent transparent red;
  228. }
  229.  
  230. #hexagon {
  231. width: 100px;
  232. height: 55px;
  233. background: red;
  234. position: relative;
  235. }
  236.  
  237. #hexagon:before {
  238. content: "";
  239. position: absolute;
  240. top: -25px;
  241. left: 0;
  242. width: 0;
  243. height: 0;
  244. border-left: 50px solid transparent;
  245. border-right: 50px solid transparent;
  246. border-bottom: 25px solid red;
  247. }
  248.  
  249. #hexagon:after {
  250. content: "";
  251. position: absolute;
  252. bottom: -25px;
  253. left: 0;
  254. width: 0;
  255. height: 0;
  256. border-left: 50px solid transparent;
  257. border-right: 50px solid transparent;
  258. border-top: 25px solid red;
  259. }
  260.  
  261. #octagon {
  262. width: 100px;
  263. height: 100px;
  264. background: red;
  265. position: relative;
  266. }
  267.  
  268. #octagon:before {
  269. content: "";
  270. position: absolute;
  271. top: 0;
  272. left: 0;
  273. border-bottom: 29px solid red;
  274. border-left: 29px solid #eee;
  275. border-right: 29px solid #eee;
  276. width: 42px;
  277. height: 0;
  278. }
  279.  
  280. #octagon:after {
  281. content: "";
  282. position: absolute;
  283. bottom: 0;
  284. left: 0;
  285. border-top: 29px solid red;
  286. border-left: 29px solid #eee;
  287. border-right: 29px solid #eee;
  288. width: 42px;
  289. height: 0;
  290. }
  291.  
  292. #heart {
  293. position: relative;
  294. width: 100px;
  295. height: 90px;
  296. }
  297.  
  298. #heart:before,
  299. #heart:after {
  300. position: absolute;
  301. content: "";
  302. left: 50px;
  303. top: 0;
  304. width: 50px;
  305. height: 80px;
  306. background: red;
  307. -moz-border-radius: 50px 50px 0 0;
  308. border-radius: 50px 50px 0 0;
  309. -webkit-transform: rotate(-45deg);
  310. -moz-transform: rotate(-45deg);
  311. -ms-transform: rotate(-45deg);
  312. -o-transform: rotate(-45deg);
  313. transform: rotate(-45deg);
  314. -webkit-transform-origin: 0 100%;
  315. -moz-transform-origin: 0 100%;
  316. -ms-transform-origin: 0 100%;
  317. -o-transform-origin: 0 100%;
  318. transform-origin: 0 100%;
  319. }
  320.  
  321. #heart:after {
  322. left: 0;
  323. -webkit-transform: rotate(45deg);
  324. -moz-transform: rotate(45deg);
  325. -ms-transform: rotate(45deg);
  326. -o-transform: rotate(45deg);
  327. transform: rotate(45deg);
  328. -webkit-transform-origin: 100% 100%;
  329. -moz-transform-origin: 100% 100%;
  330. -ms-transform-origin: 100% 100%;
  331. -o-transform-origin: 100% 100%;
  332. transform-origin: 100% 100%;
  333. }
  334.  
  335. #infinity {
  336. position: relative;
  337. width: 212px;
  338. height: 100px;
  339. }
  340.  
  341. #infinity:before,
  342. #infinity:after {
  343. content: "";
  344. position: absolute;
  345. top: 0;
  346. left: 0;
  347. width: 60px;
  348. height: 60px;
  349. border: 20px solid red;
  350. -moz-border-radius: 50px 50px 0 50px;
  351. border-radius: 50px 50px 0 50px;
  352. -webkit-transform: rotate(-45deg);
  353. -moz-transform: rotate(-45deg);
  354. -ms-transform: rotate(-45deg);
  355. -o-transform: rotate(-45deg);
  356. transform: rotate(-45deg);
  357. }
  358.  
  359. #infinity:after {
  360. left: auto;
  361. right: 0;
  362. -moz-border-radius: 50px 50px 50px 0;
  363. border-radius: 50px 50px 50px 0;
  364. -webkit-transform: rotate(45deg);
  365. -moz-transform: rotate(45deg);
  366. -ms-transform: rotate(45deg);
  367. -o-transform: rotate(45deg);
  368. transform: rotate(45deg);
  369. }
  370.  
  371. #diamond {
  372. width: 0;
  373. height: 0;
  374. border: 50px solid transparent;
  375. border-bottom-color: red;
  376. position: relative;
  377. top: -50px;
  378. }
  379.  
  380. #diamond:after {
  381. content: '';
  382. position: absolute;
  383. left: -50px;
  384. top: 50px;
  385. width: 0;
  386. height: 0;
  387. border: 50px solid transparent;
  388. border-top-color: red;
  389. }
  390.  
  391. #diamond-shield {
  392. width: 0;
  393. height: 0;
  394. border: 50px solid transparent;
  395. border-bottom: 20px solid red;
  396. position: relative;
  397. top: -50px;
  398. }
  399.  
  400. #diamond-shield:after {
  401. content: '';
  402. position: absolute;
  403. left: -50px;
  404. top: 20px;
  405. width: 0;
  406. height: 0;
  407. border: 50px solid transparent;
  408. border-top: 70px solid red;
  409. }
  410.  
  411. #diamond-narrow {
  412. width: 0;
  413. height: 0;
  414. border: 50px solid transparent;
  415. border-bottom: 70px solid red;
  416. position: relative;
  417. top: -50px;
  418. }
  419.  
  420. #diamond-narrow:after {
  421. content: '';
  422. position: absolute;
  423. left: -50px;
  424. top: 70px;
  425. width: 0;
  426. height: 0;
  427. border: 50px solid transparent;
  428. border-top: 70px solid red;
  429. }
  430.  
  431. #cut-diamond {
  432. border-style: solid;
  433. border-color: transparent transparent red transparent;
  434. border-width: 0 25px 25px 25px;
  435. height: 0;
  436. width: 50px;
  437. position: relative;
  438. margin: 20px 0 50px 0;
  439. }
  440.  
  441. #cut-diamond:after {
  442. content: "";
  443. position: absolute;
  444. top: 25px;
  445. left: -25px;
  446. width: 0;
  447. height: 0;
  448. border-style: solid;
  449. border-color: red transparent transparent transparent;
  450. border-width: 70px 50px 0 50px;
  451. }
  452.  
  453. #egg {
  454. display: block;
  455. width: 126px;
  456. height: 180px;
  457. background-color: red;
  458. -webkit-border-radius: 63px 63px 63px 63px / 108px 108px 72px 72px;
  459. border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  460. }
  461.  
  462. #pacman {
  463. width: 0px;
  464. height: 0px;
  465. border-right: 60px solid transparent;
  466. border-top: 60px solid red;
  467. border-left: 60px solid red;
  468. border-bottom: 60px solid red;
  469. border-top-left-radius: 60px;
  470. border-top-right-radius: 60px;
  471. border-bottom-left-radius: 60px;
  472. border-bottom-right-radius: 60px;
  473. }
  474.  
  475. #talkbubble {
  476. width: 120px;
  477. height: 80px;
  478. background: red;
  479. position: relative;
  480. -moz-border-radius: 10px;
  481. -webkit-border-radius: 10px;
  482. border-radius: 10px;
  483. }
  484.  
  485. #talkbubble:before {
  486. content: "";
  487. position: absolute;
  488. right: 100%;
  489. top: 26px;
  490. width: 0;
  491. height: 0;
  492. border-top: 13px solid transparent;
  493. border-right: 26px solid red;
  494. border-bottom: 13px solid transparent;
  495. }
  496.  
  497. #burst-12 {
  498. background: red;
  499. width: 80px;
  500. height: 80px;
  501. position: relative;
  502. text-align: center;
  503. }
  504.  
  505. #burst-12:before,
  506. #burst-12:after {
  507. content: "";
  508. position: absolute;
  509. top: 0;
  510. left: 0;
  511. height: 80px;
  512. width: 80px;
  513. background: red;
  514. }
  515.  
  516. #burst-12:before {
  517. -webkit-transform: rotate(30deg);
  518. -moz-transform: rotate(30deg);
  519. -ms-transform: rotate(30deg);
  520. -o-transform: rotate(30deg);
  521. }
  522.  
  523. #burst-12:after {
  524. -webkit-transform: rotate(60deg);
  525. -moz-transform: rotate(60deg);
  526. -ms-transform: rotate(60deg);
  527. -o-transform: rotate(60deg);
  528. }
  529.  
  530. #burst-8 {
  531. background: red;
  532. width: 80px;
  533. height: 80px;
  534. position: relative;
  535. text-align: center;
  536. -webkit-transform: rotate(20deg);
  537. -moz-transform: rotate(20deg);
  538. -ms-transform: rotate(20deg);
  539. -o-transform: rotate(20eg);
  540. }
  541.  
  542. #burst-8:before {
  543. content: "";
  544. position: absolute;
  545. top: 0;
  546. left: 0;
  547. height: 80px;
  548. width: 80px;
  549. background: red;
  550. -webkit-transform: rotate(135deg);
  551. -moz-transform: rotate(135deg);
  552. -ms-transform: rotate(135deg);
  553. -o-transform: rotate(135deg);
  554. }
  555.  
  556. #yin-yang {
  557. width: 96px;
  558. height: 48px;
  559. background: #eee;
  560. border-color: red;
  561. border-style: solid;
  562. border-width: 2px 2px 50px 2px;
  563. border-radius: 100%;
  564. position: relative;
  565. }
  566.  
  567. #yin-yang:before {
  568. content: "";
  569. position: absolute;
  570. top: 50%;
  571. left: 0;
  572. background: #eee;
  573. border: 18px solid red;
  574. border-radius: 100%;
  575. width: 12px;
  576. height: 12px;
  577. }
  578.  
  579. #yin-yang:after {
  580. content: "";
  581. position: absolute;
  582. top: 50%;
  583. left: 50%;
  584. background: red;
  585. border: 18px solid #eee;
  586. border-radius: 100%;
  587. width: 12px;
  588. height: 12px;
  589. }
  590.  
  591. #badge-ribbon {
  592. position: relative;
  593. background: red;
  594. height: 100px;
  595. width: 100px;
  596. -moz-border-radius: 50px;
  597. -webkit-border-radius: 50px;
  598. border-radius: 50px;
  599. }
  600.  
  601. #badge-ribbon:before,
  602. #badge-ribbon:after {
  603. content: '';
  604. position: absolute;
  605. border-bottom: 70px solid red;
  606. border-left: 40px solid transparent;
  607. border-right: 40px solid transparent;
  608. top: 70px;
  609. left: -10px;
  610. -webkit-transform: rotate(-140deg);
  611. -moz-transform: rotate(-140deg);
  612. -ms-transform: rotate(-140deg);
  613. -o-transform: rotate(-140deg);
  614. }
  615.  
  616. #badge-ribbon:after {
  617. left: auto;
  618. right: -10px;
  619. -webkit-transform: rotate(140deg);
  620. -moz-transform: rotate(140deg);
  621. -ms-transform: rotate(140deg);
  622. -o-transform: rotate(140deg);
  623. }
  624.  
  625. #space-invader {
  626. box-shadow: 0 0 0 1em red, 0 1em 0 1em red, -2.5em 1.5em 0 .5em red, 2.5em 1.5em 0 .5em red, -3em -3em 0 0 red, 3em -3em 0 0 red, -2em -2em 0 0 red, 2em -2em 0 0 red, -3em -1em 0 0 red, -2em -1em 0 0 red, 2em -1em 0 0 red, 3em -1em 0 0 red, -4em 0 0 0 red, -3em 0 0 0 red, 3em 0 0 0 red, 4em 0 0 0 red, -5em 1em 0 0 red, -4em 1em 0 0 red, 4em 1em 0 0 red, 5em 1em 0 0 red, -5em 2em 0 0 red, 5em 2em 0 0 red, -5em 3em 0 0 red, -3em 3em 0 0 red, 3em 3em 0 0 red, 5em 3em 0 0 red, -2em 4em 0 0 red, -1em 4em 0 0 red, 1em 4em 0 0 red, 2em 4em 0 0 red;
  627. background: red;
  628. width: 1em;
  629. height: 1em;
  630. overflow: hidden;
  631. margin: 50px 0 70px 65px;
  632. }
  633.  
  634. #tv {
  635. position: relative;
  636. width: 200px;
  637. height: 150px;
  638. margin: 20px 0;
  639. background: red;
  640. border-radius: 50% / 10%;
  641. color: white;
  642. text-align: center;
  643. text-indent: .1em;
  644. }
  645.  
  646. #tv:before {
  647. content: '';
  648. position: absolute;
  649. top: 10%;
  650. bottom: 10%;
  651. right: -5%;
  652. left: -5%;
  653. background: inherit;
  654. border-radius: 5% / 50%;
  655. }
  656.  
  657. #chevron {
  658. position: relative;
  659. text-align: center;
  660. padding: 12px;
  661. margin-bottom: 6px;
  662. height: 60px;
  663. width: 200px;
  664. }
  665.  
  666. #chevron:before {
  667. content: '';
  668. position: absolute;
  669. top: 0;
  670. left: 0;
  671. height: 100%;
  672. width: 51%;
  673. background: red;
  674. -webkit-transform: skew(0deg, 6deg);
  675. -moz-transform: skew(0deg, 6deg);
  676. -ms-transform: skew(0deg, 6deg);
  677. -o-transform: skew(0deg, 6deg);
  678. transform: skew(0deg, 6deg);
  679. }
  680.  
  681. #chevron:after {
  682. content: '';
  683. position: absolute;
  684. top: 0;
  685. right: 0;
  686. height: 100%;
  687. width: 50%;
  688. background: red;
  689. -webkit-transform: skew(0deg, -6deg);
  690. -moz-transform: skew(0deg, -6deg);
  691. -ms-transform: skew(0deg, -6deg);
  692. -o-transform: skew(0deg, -6deg);
  693. transform: skew(0deg, -6deg);
  694. }
  695.  
  696. ​ #magnifying-glass {
  697. font-size: 10em;
  698. /* This controls the size. */
  699.  
  700. display: inline-block;
  701. width: 0.4em;
  702. height: 0.4em;
  703. border: 0.1em solid red;
  704. position: relative;
  705. border-radius: 0.35em;
  706. }
  707.  
  708. #magnifying-glass::before {
  709. content: "";
  710. display: inline-block;
  711. position: absolute;
  712. right: -0.25em;
  713. bottom: -0.1em;
  714. border-width: 0;
  715. background: red;
  716. width: 0.35em;
  717. height: 0.08em;
  718. -webkit-transform: rotate(45deg);
  719. -moz-transform: rotate(45deg);
  720. -ms-transform: rotate(45deg);
  721. -o-transform: rotate(45deg);
  722. }
  723.  
  724. #facebook-icon {
  725. background: red;
  726. text-indent: -999em;
  727. width: 100px;
  728. height: 110px;
  729. border-radius: 5px;
  730. position: relative;
  731. overflow: hidden;
  732. border: 15px solid red;
  733. border-bottom: 0;
  734. }
  735.  
  736. #facebook-icon::before {
  737. content: "/20";
  738. position: absolute;
  739. background: red;
  740. width: 40px;
  741. height: 90px;
  742. bottom: -30px;
  743. right: -37px;
  744. border: 20px solid #eee;
  745. border-radius: 25px;
  746. }
  747.  
  748. #facebook-icon::after {
  749. content: "/20";
  750. position: absolute;
  751. width: 55px;
  752. top: 50px;
  753. height: 20px;
  754. background: #eee;
  755. right: 5px;
  756. }
  757.  
  758. #moon {
  759. width: 80px;
  760. height: 80px;
  761. border-radius: 50%;
  762. box-shadow: 15px 15px 0 0 red;
  763. }
  764.  
  765. #flag {
  766. width: 110px;
  767. height: 56px;
  768. padding-top: 15px;
  769. position: relative;
  770. background: red;
  771. color: white;
  772. font-size: 11px;
  773. letter-spacing: 0.2em;
  774. text-align: center;
  775. text-transform: uppercase;
  776. }
  777.  
  778. #flag:after {
  779. content: "";
  780. position: absolute;
  781. left: 0;
  782. bottom: 0;
  783. width: 0;
  784. height: 0;
  785. border-bottom: 13px solid #eee;
  786. border-left: 55px solid transparent;
  787. border-right: 55px solid transparent;
  788. }
  789.  
  790. #cone {
  791. width: 0;
  792. height: 0;
  793. border-left: 70px solid transparent;
  794. border-right: 70px solid transparent;
  795. border-top: 100px solid red;
  796. -moz-border-radius: 50%;
  797. -webkit-border-radius: 50%;
  798. border-radius: 50%;
  799. }
  800.  
  801. #cross {
  802. background: red;
  803. height: 100px;
  804. position: relative;
  805. width: 20px;
  806. }
  807.  
  808. #cross:after {
  809. background: red;
  810. content: "";
  811. height: 20px;
  812. left: -40px;
  813. position: absolute;
  814. top: 40px;
  815. width: 100px;
  816. }
  817.  
  818. #base {
  819. background: red;
  820. display: inline-block;
  821. height: 55px;
  822. margin-left: 20px;
  823. margin-top: 55px;
  824. position: relative;
  825. width: 100px;
  826. }
  827.  
  828. #base:before {
  829. border-bottom: 35px solid red;
  830. border-left: 50px solid transparent;
  831. border-right: 50px solid transparent;
  832. content: "";
  833. height: 0;
  834. left: 0;
  835. position: absolute;
  836. top: -35px;
  837. width: 0;
  838. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement