Advertisement
b0rn-to-be-wild

POP UP CSS

Mar 3rd, 2018
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.43 KB | None | 0 0
  1. Paste the following code under <style type="text/css">:
  2.  
  3.  
  4. /*----- POP UP BOX by borntobewildcodes -----*/
  5.  
  6. /* You can change the placement of this box and set position value to fixed */
  7.  
  8. #pclick{
  9. position:absolute;
  10. margin-top:50px;
  11. margin-left:50px;
  12. width:30px;
  13. height:30px;
  14. padding:5px;
  15. line-height:40px;
  16. text-align:center;
  17. color:#222;
  18. background:#fff;
  19. border:1px solid #eee;
  20. overflow:hidden;
  21. z-index:1000;
  22. -webkit-transition: all 0.7s ease;
  23. -moz-transition: all 0.7s ease;
  24. -o-transition: all 0.7s ease;
  25. }
  26.  
  27. #pclick span{
  28. font-size:15px;
  29. color:#444;
  30. }
  31.  
  32. #pclick:hover span{
  33. color:#000;
  34. }
  35.  
  36. #popen{
  37. position:absolute;
  38. width:30px;
  39. height:30px;
  40. }
  41.  
  42. #pclose{
  43. position:absolute;
  44. width:30px;
  45. height:30px;
  46. z-index:10;
  47. display:none;
  48. }
  49.  
  50. /*-- POP UP BOX --*/
  51.  
  52. #popup_box {
  53. position:fixed;
  54. top:50%;
  55. left:50%;
  56. width:600px;
  57. height:450px;
  58. z-index:100;
  59. overflow:hidden;
  60. -webkit-transform:translateX(-50%) translateY(-50%);
  61. -moz-transform:translateX(-50%) translateY(-50%);
  62. -ms-transform:translateX(-50%) translateY(-50%);
  63. -o-transform:translateX(-50%) translateY(-50%);
  64. transform:translateX(-50%) translateY(-50%);
  65. /* Container background */
  66. background:#000000;
  67. border:1px solid #111111;
  68. display:none;
  69. }
  70.  
  71. /*-- SIDEBAR, I don't recommend changing anything but background, especially if you're not experienced --*/
  72.  
  73. #sidebar {
  74. position:absolute;
  75. top:0px;
  76. left:300px;
  77. width:300px;
  78. height:450px;
  79. /* Sidebar background */
  80. background-color:#111111;
  81. background-image: URL('https://i.pinimg.com/originals/49/67/14/49671401bf201ad7b23c2a25b6d857da.jpg');
  82. background-repeat:no-repeat;
  83. background-size:cover;
  84. z-index:1000;
  85. -webkit-transition: all 0.5s ease;
  86. -moz-transition: all 0.5s ease;
  87. -ms-transition: all 0.5s ease;
  88. -o-transition: all 0.5s ease;
  89. transition: all 0.5s ease;
  90. }
  91.  
  92. #sidebar.pushed{
  93. -webkit-transform: translateX(-300px);
  94. -moz-transform: translateX(-300px);
  95. -ms-transform: translateX(-300px);
  96. -o-transform: translateX(-300px);
  97. transform: translateX(-300px);
  98. }
  99.  
  100. /* Click icon */
  101.  
  102. #click {
  103. position:absolute;
  104. top:50%;
  105. left:50%;
  106. width:40px;
  107. height:40px;
  108. padding:5px;
  109. line-height:5px;
  110. border:1px solid #111111;
  111. background:rgba(0,0,0,1);
  112. border-radius:100%;
  113. text-align:center;
  114. cursor:pointer;
  115. z-index:1000;
  116. -webkit-transform:translateX(-50%) translateY(-50%);
  117. -moz-transform:translateX(-50%) translateY(-50%);
  118. -ms-transform:translateX(-50%) translateY(-50%);
  119. -o-transform:translateX(-50%) translateY(-50%);
  120. transform:translateX(-50%) translateY(-50%);
  121. }
  122.  
  123. /* Click icon left */
  124.  
  125. .clicon span{
  126. color:#eeeeee;
  127. font-size:20px;
  128. }
  129.  
  130. /* Click icon left, on hover */
  131.  
  132. .clicon:hover span{
  133. color:#D88552;
  134. }
  135.  
  136. /* Click icon right */
  137.  
  138. .cricon {
  139. display:none;
  140. margin-top:-10px;
  141. -webkit-transform: rotate(180deg);
  142. -moz-transform: rotate(180deg);
  143. -ms-transform: rotate(180deg);
  144. -o-transform: rotate(180deg);
  145. transform: rotate(180deg);
  146. }
  147.  
  148. .cricon span{
  149. color:#D88552;
  150. font-size:20px;
  151. }
  152.  
  153. /* Click icon right, on hover */
  154.  
  155. .cricon:hover span{
  156. color:#eeeeee;
  157. }
  158.  
  159. /*-- PANEL ONE --*/
  160.  
  161. #panelone{
  162. position:fixed;
  163. top:0px;
  164. left:0px;
  165. height:450px;
  166. width:300px;
  167. background-color:#000000;
  168. -webkit-transition: all 0.5s ease;
  169. -moz-transition: all 0.5s ease;
  170. -ms-transition: all 0.5s ease;
  171. -o-transition: all 0.5s ease;
  172. transition: all 0.5s ease;
  173. z-index:1000!important;
  174. }
  175.  
  176. /* I don't recommend editing */
  177.  
  178. .panelin{
  179. position:absolute;
  180. top:50%;
  181. left:50%;
  182. width:330px;
  183. height:auto;
  184. -webkit-transform:translateX(-50%) translateY(-50%);
  185. -moz-transform:translateX(-50%) translateY(-50%);
  186. -ms-transform:translateX(-50%) translateY(-50%);
  187. -o-transform:translateX(-50%) translateY(-50%);
  188. transform:translateX(-50%) translateY(-50%);
  189. }
  190.  
  191. /* Avatar */
  192.  
  193. #avatar {
  194. margin:15px auto;
  195. width:90px;
  196. height:90px;
  197. border-radius:100px;
  198. -webkit-transition: all 0.5s ease;
  199. -moz-transition: all 0.5s ease;
  200. -ms-transition: all 0.5s ease;
  201. -o-transition: all 0.5s ease;
  202. transition: all 0.5s ease;
  203. }
  204.  
  205. #avatar img{
  206. margin:0;
  207. width:100%;
  208. height:100%;
  209. border:1px solid #bbbbbb;
  210. border-radius:100px;
  211. }
  212.  
  213. /* Avatar on hover */
  214.  
  215. #avatar:hover {
  216. -webkit-transform: rotate(360deg);
  217. -moz-transform: rotate(360deg);
  218. -ms-transform: rotate(360deg);
  219. -o-transform: rotate(360deg);
  220. transform: rotate(360deg);
  221. }
  222.  
  223. /* Blog title */
  224.  
  225. #blogtitle {
  226. margin:10px auto;
  227. width:285px;
  228. height:31px;
  229. font-size:27px;
  230. line-height:30px;
  231. color:#eeeeee;
  232. background: transparent;
  233. font-family:'Brutal Type', sans-serif;
  234. text-align:center;
  235. }
  236.  
  237. /* Description */
  238.  
  239. #description {
  240. margin:0px auto;
  241. width:265px;
  242. height:auto;
  243. font-size:12px;
  244. line-height:20px;
  245. color:#eeeeee;
  246. background: transparent;
  247. font-family:'Brutal Type', sans-serif;
  248. text-align:center;
  249. }
  250.  
  251. /* Main icons */
  252.  
  253. #icons {
  254. margin:0px auto;
  255. width:240px;
  256. height:51px;
  257. background: transparent;
  258. text-align:center;
  259. overflow:hidden;
  260. }
  261.  
  262. #icons span {
  263. display:inline-block;
  264. height:40px;
  265. margin:0px;
  266. margin-left:-2px;
  267. margin-right:-1px;
  268. padding:7px 10px;
  269. /* Main icons style */
  270. color: #dddddd;
  271. font-size:16px;
  272. line-height:40px;
  273. text-align:center;
  274. -webkit-transition: all 0.4s ease-in-out;
  275. -moz-transition: all 0.4s ease-in-out;
  276. -ms-transition: all 0.4s ease-in-out;
  277. -o-transition: all 0.4s ease-in-out;
  278. transition: all 0.4s ease-in-out;
  279. }
  280.  
  281. /* Main icons style on hover */
  282.  
  283. #icons span:hover {
  284. color:#D88552;
  285. }
  286.  
  287. /*-- PANEL TWO --*/
  288.  
  289. #paneltwo{
  290. position:fixed;
  291. top:0px;
  292. left:0px;
  293. height:450px;
  294. width:300px;
  295. background-color:#000000;
  296. -webkit-transition: ease 0.5s;
  297. -moz-transition: ease 0.5s;
  298. -o-transition: ease 0.5s;
  299. transition: ease 0.5s;
  300. z-index:100!imnportant;
  301. }
  302.  
  303. #paneltwo.pushedtwo{
  304. -webkit-transform: translateX(300px);
  305. -moz-transform: translateX(300px);
  306. -ms-transform: translateX(300px);
  307. -o-transform: translateX(300px);
  308. transform: translateX(300px);
  309. }
  310.  
  311. /* Big icons style, I don't recommend changing anything but color, especially if you're not experienced */
  312.  
  313. #paneltwo a{
  314. display:inline-block;
  315. margin:10px 10px 10px 32px;
  316. width:110px;
  317. height:85px;
  318. padding-top:25px;
  319. line-height:30px;
  320. font-size:13px;
  321. text-align:center;
  322. cursor:pointer;
  323. /* Big icon link color */
  324. color:#eeeeee;
  325. }
  326.  
  327. .aicon:before, .licon:before, .ticon:before, .ficon:before, .bicon:before, .eicon:before{
  328. display:block;
  329. margin-bottom:10px;
  330. font-family:'saturnicons';
  331. font-size:32px;
  332. }
  333.  
  334. /* About icon */
  335.  
  336. .aicon:before{
  337. /* Icon code */
  338. content:'\e275';
  339. /* Icon color */
  340. color:#eeeeee;
  341. }
  342.  
  343. .aicon:after{
  344. /* Section title */
  345. content:'ABOUT';
  346. }
  347.  
  348. /* Links icon */
  349.  
  350. .licon:before{
  351. /* Icon code */
  352. content:'\e190';
  353. /* Icon color */
  354. color:#eeeeee;
  355. }
  356.  
  357. .licon:after{
  358. /* Section title */
  359. content:'LINKS';
  360. }
  361.  
  362. /* Tags icon */
  363.  
  364. .ticon:before{
  365. /* Icon code */
  366. content:'\e24b';
  367. /* Icon color */
  368. color:#eeeeee;
  369. }
  370.  
  371. .ticon:after{
  372. /* Section title */
  373. content:'TAGS';
  374. }
  375.  
  376. /* F.A.Q. icon */
  377.  
  378. .ficon:before{
  379. /* Icon code */
  380. content:'\e080';
  381. /* Icon color */
  382. color:#eeeeee;
  383. }
  384.  
  385. .ficon:after{
  386. /* Section title */
  387. content:'F.A.Q.';
  388. }
  389.  
  390. /* Blogroll icon */
  391.  
  392. .bicon:before{
  393. /* Icon code */
  394. content:'\e123';
  395. /* Icon color */
  396. color:#eeeeee;
  397. }
  398.  
  399. .bicon:after{
  400. /* Section title */
  401. content:'PARTNERS';
  402. }
  403.  
  404. /* Extra icon */
  405.  
  406. .eicon:before{
  407. /* Icon code */
  408. content:'\e183';
  409. /* Icon color */
  410. color:#eeeeee;
  411. }
  412.  
  413. .eicon:after{
  414. /* Section title */
  415. content:'EXTRA';
  416. }
  417.  
  418. .aicon:hover:before, .licon:hover:before, .ticon:hover:before, .ficon:hover:before, .bicon:hover:before, .eicon:hover:before {
  419. /* Big icon color on hover */
  420. color:#D88552;
  421. }
  422.  
  423. /* Close icon */
  424.  
  425. .close{
  426. width:110px;
  427. height:60px;
  428. }
  429.  
  430. .close:before{
  431. display:block;
  432. margin-bottom:10px;
  433. /* Icon code */
  434. content:'\e0c4';
  435. font-family:'saturnicons';
  436. font-size:30px;
  437. color:#D88552;
  438. }
  439.  
  440. .close:after{
  441. content:'CLOSE';
  442. }
  443.  
  444. .close:hover:before {
  445. /* Icon on hover */
  446. color:#bbbbbb;
  447. }
  448.  
  449. /*-- CONTENT BOXES, I don't recommend changing anything but color, especially if you're not experienced */
  450.  
  451. #about, #links, #tags, #faq, #blogroll, #extra{
  452. position:fixed;
  453. top:0px;
  454. left:0px;
  455. height:450px;
  456. width:300px;
  457. background-color:#000000;
  458. border:1px solid #111111;
  459. -webkit-transition: ease 0.5s;
  460. -moz-transition: ease 0.5s;
  461. -o-transition: ease 0.5s;
  462. transition: ease 0.5s;
  463. z-index:1000!important;
  464. /* do not remove this line */
  465. display:none;
  466. }
  467.  
  468. .box{
  469. position:absolute;
  470. top:50%;
  471. left:50%;
  472. width:255px;
  473. height:auto;
  474. max-height:430px;
  475. /* Content font style */
  476. font-size:12px;
  477. line-height:20px;
  478. overflow:hidden;
  479. -webkit-transform:translateX(-50%) translateY(-50%);
  480. -moz-transform:translateX(-50%) translateY(-50%);
  481. -ms-transform:translateX(-50%) translateY(-50%);
  482. -o-transform:translateX(-50%) translateY(-50%);
  483. transform:translateX(-50%) translateY(-50%);
  484. }
  485.  
  486. .boxin{
  487. margin-left:0px;
  488. width:255px;
  489. height:352px;
  490. overflow-y:auto!important;
  491. }
  492.  
  493. /* Box titles, style of headings */
  494.  
  495. .box h1{
  496. margin:0px;
  497. margin-bottom:15px;
  498. color:#eeeeee;
  499. font-weight:700;
  500. font-size:25px;
  501. font-family:Poiret One;
  502. }
  503.  
  504. /* Questions etc. */
  505.  
  506. .box big{
  507. color:#bbbbbb;
  508. font-size:15px!important;
  509. font-weight:600;
  510. }
  511.  
  512. /*-- Links --*/
  513.  
  514. #links a{
  515. display:block;
  516. padding:5px;
  517. padding-left:0px;
  518. font-size:14px;
  519. color:#eeeeee;
  520. border-bottom:1px solid #111111;
  521. }
  522.  
  523. #links span{
  524. margin-right:10px;
  525. color:#D88552;
  526. }
  527.  
  528. #links a:hover{
  529. color:#D88552;
  530. }
  531.  
  532. /*-- Tag links --*/
  533.  
  534. #tags a{
  535. display:inline-block;
  536. margin:4px;
  537. padding:4px 6px;
  538. color:#eeeeee;
  539. border:1px solid #111111;
  540. }
  541.  
  542. #tags span{
  543. margin-right:5px;
  544. color:#D88552;
  545. }
  546.  
  547. #tags a:hover{
  548. color:#D88552;
  549. background:#555555;
  550. }
  551.  
  552. /*-- Blogroll --*/
  553.  
  554. .person{
  555. display: inline-block;
  556. margin-top:5px;
  557. margin-left:2px;
  558. width:230px;
  559. height:50px;
  560. padding-bottom:10px;
  561. border-bottom:1px solid #111111;
  562. overflow:hidden;
  563. }
  564.  
  565. /* Followed person avatar */
  566.  
  567. .person img {
  568. float:left;
  569. margin:0px;
  570. width:48px;
  571. height:48px;
  572. border:1px solid #eeeeee;
  573. border-radius:100%;
  574. }
  575.  
  576. /* Followed person url */
  577.  
  578. .personurl {
  579. margin-top:0px;
  580. margin-left:15px;
  581. width:150px;
  582. padding:5px;
  583. height:40px;
  584. line-height:20px;
  585. color:#eeeeee;
  586. text-align:center;
  587. overflow:hidden;
  588. }
  589.  
  590. .personurl a {
  591. font-size:12px;
  592. color:#eeeeee;
  593. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement