Advertisement
b0rn-to-be-wild

PROFILE BOX CSS

Mar 5th, 2018
629
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.50 KB | None | 0 0
  1. Paste the following code under <style type="text/css">:
  2.  
  3.  
  4. /*-------- PROFILE BOX BY @BORNTOBEWILDCODES ---------*/
  5.  
  6. /* Open button */
  7.  
  8. .open-button{
  9. position:absolute;
  10. top:{text:Profile button top margin};
  11. left:{text:Profile button left margin};
  12. width:120px;
  13. height:16px;
  14. line-height:16px;
  15. padding:5px;
  16. text-align:center;
  17. letter-spacing:1px;
  18. border-radius:20px;
  19. font-size:12px;
  20. cursor:pointer;
  21. color:{color:Profile button icon};
  22. background:{color:Profile button background};
  23. background-image:url({image:Profile button background});
  24. box-shadow: 2px 2px 5px {color:Profile box shadow};
  25. z-index:10000;
  26. -webkit-transition: all 0.2s linear;
  27. -moz-transition: all 0.2s linear;
  28. -ms-transition: all 0.2s linear;
  29. -o-transition: all 0.2s linear;
  30. transition: all 0.2s linear;
  31. }
  32.  
  33. .open-button span{
  34. margin-left:5px;
  35. font-size:12px;
  36. vertical-align:middle;
  37. color:{color:Profile button icon};
  38. -webkit-transition: all 0.2s linear;
  39. -moz-transition: all 0.2s linear;
  40. -ms-transition: all 0.2s linear;
  41. -o-transition: all 0.2s linear;
  42. transition: all 0.2s linear;
  43. }
  44.  
  45. .open-button:hover{
  46. color:{color:Profile link hover};
  47. }
  48.  
  49. .open-button:hover span {
  50. color:{color:Profile link hover};
  51. }
  52.  
  53. /*-- PROFILE --*/
  54.  
  55. #profile-box{
  56. position:fixed;
  57. width:100%;
  58. height:100%;
  59. background:rgba({select:Profile shadow}, 0.5);
  60. display:none;
  61. z-index:100000;
  62. }
  63.  
  64. .profile {
  65. position:absolute;
  66. display:flex;
  67. flex-direction:column;
  68. flex-wrap:wrap;
  69. column-count:2;
  70. column-gap: 15px;
  71. top:{text:Profile box top margin};
  72. left:{text:Profile box left margin};
  73. width:492px;
  74. height:358px;
  75. padding:20px;
  76. padding-right:5px;
  77. padding-bottom:0px;
  78. background-color:{color:Profile background};
  79. background-image:url({image:Profile background});
  80. border-radius:{text:Profile box border radius};
  81. box-shadow: 2px 2px 5px {color:Profile box shadow};
  82. {block:ifProfileBoxCentered}
  83. top:50%;
  84. left:50%;
  85. -webkit-transform:translateX(-50%) translateY(-50%);
  86. -moz-transform:translateX(-50%) translateY(-50%);
  87. -ms-transform:translateX(-50%) translateY(-50%);
  88. -o-transform:translateX(-50%) translateY(-50%);
  89. transform:translateX(-50%) translateY(-50%);
  90. {/block:ifProfileBoxCentered}
  91. }
  92.  
  93. .profile b {
  94. color:{color:Profile label};
  95. }
  96.  
  97. /* Close button */
  98.  
  99. .close-button {
  100. position:absolute;
  101. top:-15px;
  102. left:calc(100% - 120px);
  103. width:100px;
  104. height:26px;
  105. line-height:26px;
  106. text-align:center;
  107. letter-spacing:1px;
  108. font-size:12px;
  109. color:{color:Profile close icon};
  110. background:{color:Profile background};
  111. background-image:url({image:Profile background});
  112. border-radius:20px;
  113. cursor:pointer;
  114. -webkit-transition: all 0.2s linear;
  115. -moz-transition: all 0.2s linear;
  116. -ms-transition: all 0.2s linear;
  117. -o-transition: all 0.2s linear;
  118. transition: all 0.2s linear;
  119. }
  120.  
  121. .close-button span{
  122. margin-left:5px;
  123. font-size:8px;
  124. vertical-align:middle;
  125. color:{color:Profile close icon};
  126. -webkit-transition: all 0.2s linear;
  127. -moz-transition: all 0.2s linear;
  128. -ms-transition: all 0.2s linear;
  129. -o-transition: all 0.2s linear;
  130. transition: all 0.2s linear;
  131. }
  132.  
  133. .close-button:hover, .close-button:hover span {
  134. color:{color:Profile link hover};
  135. }
  136.  
  137. /*-- Info --*/
  138.  
  139. .profile-info {
  140. display:inline-block;
  141. break-inside: avoid;
  142. margin-bottom:15px;
  143. width:230px;
  144. height:50px;
  145. padding:15px 0px;
  146. text-align:left;
  147. font-size:11px;
  148. line-height:17px;
  149. letter-spacing:1px;
  150. background:rgba({select:Profile boxes background}, {select:Profile boxes background transparency});
  151. border:1px solid {color:Profile borders};
  152. /* About info style */
  153. color:{color:Profile text};
  154. }
  155.  
  156. /* Avatar */
  157.  
  158. .profile-avatar {
  159. float:left;
  160. margin:0px 15px;
  161. padding-right:10px;
  162. width:50px;
  163. height:50px;
  164. border-right:1px solid {color:Profile borders};
  165. }
  166.  
  167. .profile-avatar img{
  168. margin:0;
  169. width:100%;
  170. height:100%;
  171. border-radius:100%;
  172. }
  173.  
  174. /*-- Profile escription --*/
  175.  
  176. .profile-description {
  177. display:inline-block;
  178. break-inside: avoid;
  179. margin-bottom:15px;
  180. width:200px;
  181. padding:10px 15px;
  182. font-size:12px;
  183. line-height:18px;
  184. height:105px;
  185. overflow-y:auto;
  186. background:rgba({select:Profile boxes background}, {select:Profile boxes background transparency});
  187. border:1px solid {color:Profile borders};
  188. /* Description style */
  189. color:{color:Profile text};
  190. text-align:justify;
  191. }
  192.  
  193. /*-- Profile links --*/
  194.  
  195. .profile-links {
  196. display:inline-block;
  197. break-inside: avoid;
  198. margin-bottom:15px;
  199. width:200px;
  200. padding:10px 15px;
  201. overflow:hidden;
  202. height:75px!important;
  203. background:rgba({select:Profile boxes background}, {select:Profile boxes background transparency});
  204. border:1px solid {color:Profile borders};
  205. text-align:center;
  206. }
  207.  
  208. .plink1, .plink2, .plink3, .plink4, .plink5, .plink6 {
  209. display:inline-block;
  210. margin-top:0px;
  211. margin-bottom:10px;
  212. margin-left:13px;
  213. margin-right:13px;
  214. width:30px;
  215. height:30px;
  216. line-height:30px;
  217. text-align:center;
  218. border-radius:100%;
  219. }
  220.  
  221. .plink1 a, .plink2 a, .plink3 a, .plink4 a, .plink5 a, .plink6 a{
  222. margin:0px;
  223. width:20px;
  224. height:20px;
  225. padding:5px;
  226. line-height:20px;
  227. text-align:center;
  228. font-size:12px;
  229. border:1px solid {color:Profile borders};
  230. border-radius:100%;
  231. -webkit-transition: all 0.5s linear;
  232. -moz-transition: all 0.5s linear;
  233. -ms-transition: all 0.5s linear;
  234. -o-transition: all 0.5s linear;
  235. transition: all 0.5s linear;
  236. }
  237.  
  238. .plink1 a{
  239. color:{color:First color};
  240. }
  241.  
  242. .plink1:hover a{
  243. color:{color:Profile hover};
  244. border:1px solid {color:First color};
  245. }
  246.  
  247. .plink2 a{
  248. color:{color:Second color};
  249. }
  250.  
  251. .plink2:hover a{
  252. color:{color:Profile hover};
  253. border:1px solid {color:Second color};
  254. }
  255.  
  256. .plink3 a{
  257. color:{color:Third color};
  258. }
  259.  
  260. .plink3:hover a{
  261. color:{color:Profile hover};
  262. border:1px solid {color:Third color};
  263. }
  264.  
  265. .plink4 a{
  266. color:{color:Fourth color};
  267. }
  268.  
  269. .plink4:hover a{
  270. color:{color:Profile hover};
  271. border:1px solid {color:Fourth color};
  272. }
  273.  
  274. .plink5 a{
  275. color:{color:Fifth color};
  276. }
  277.  
  278. .plink5:hover a{
  279. color:{color:Profile hover};
  280. border:1px solid {color:Fifth color};
  281. }
  282.  
  283. .plink6 a{
  284. color:{color:Sixth color};
  285. }
  286.  
  287. .plink6:hover a{
  288. color:{color:Profile hover};
  289. border:1px solid {color:Sixth color};
  290. }
  291.  
  292. /* Link tooltips */
  293.  
  294. .ptooltip {
  295. position:absolute;
  296. display:inline-block;
  297. margin-top:8px;
  298. margin-left:-50px;
  299. width:70px!important;
  300. padding: 0px 2px;
  301. height:17px;
  302. line-height:17px;
  303. font-size:12px;
  304. text-align: center;
  305. background:rgba({select:Profile boxes background}, {select:Profile boxes background transparency});
  306. cursor:pointer;
  307. z-index:100;
  308. visibility: hidden;
  309. -webkit-transition: all 0.5s linear;
  310. -moz-transition: all 0.5s linear;
  311. -ms-transition: all 0.5s linear;
  312. -o-transition: all 0.5s linear;
  313. transition: all 0.5s linear;
  314. }
  315.  
  316. .plink1:hover .ptooltip{
  317. visibility: visible;
  318. color:{color:First color};
  319. }
  320.  
  321. .plink2:hover .ptooltip{
  322. visibility: visible;
  323. color:{color:Second color};
  324. }
  325.  
  326. .plink3:hover .ptooltip{
  327. visibility: visible;
  328. color:{color:Third color};
  329. }
  330.  
  331. .plink4:hover .ptooltip{
  332. visibility: visible;
  333. color:{color:Fourth color};
  334. }
  335.  
  336. .plink5:hover .ptooltip{
  337. visibility: visible;
  338. color:{color:Fifth color};
  339. }
  340.  
  341. .plink6:hover .ptooltip{
  342. visibility: visible;
  343. color:{color:Sixth color};
  344. }
  345.  
  346. /*-- Progress bar --*/
  347.  
  348. .profile-progress {
  349. display:inline-block;
  350. break-inside: avoid;
  351. margin-bottom:15px;
  352. width:200px;
  353. height:110px;
  354. padding:10px 15px;
  355. overflow:hidden;
  356. background:rgba({select:Profile boxes background}, {select:Profile boxes background transparency});
  357. border:1px solid {color:Profile borders};
  358. overflow:hidden;
  359. }
  360.  
  361. .progbar{
  362. width:200px;
  363. height:12px;
  364. line-height:12px;
  365. margin-top:8px;
  366. overflow:hidden;
  367. }
  368.  
  369. .label{
  370. float:left;
  371. margin:0px;
  372. width:80px;
  373. height:12px;
  374. font-size:12px;
  375. color:{color:Profile label};
  376. }
  377.  
  378. .bar{
  379. margin-left:70px;
  380. margin-top:0px;
  381. width:130px;
  382. height:12px;
  383. background:{color:Profile borders};
  384. border-radius:10px;
  385. }
  386.  
  387. .bar1, .bar2, .bar3, .bar4, .bar5{
  388. height:12px;
  389. border-radius:10px;
  390. text-align:center;
  391. font-size:10px;
  392. line-height:12px;
  393. color:{color:Profile background};
  394. }
  395.  
  396. .bar1{
  397. background:{color:First color};
  398. width:{text:Bar 1 progress};
  399. }
  400.  
  401. .bar2{
  402. background:{color:Second color};
  403. width:{text:Bar 2 progress};
  404. }
  405.  
  406. .bar3{
  407. background:{color:Third color};
  408. width:{text:Bar 3 progress};
  409. }
  410.  
  411. .bar4{
  412. background:{color:Fourth color};
  413. width:{text:Bar 4 progress};
  414. }
  415.  
  416. .bar5{
  417. background:{color:Fifth color};
  418. width:{text:Bar 5 progress};
  419. }
  420.  
  421. /*-- Profile icons --*/
  422.  
  423. .profile-icons {
  424. display:inline-block;
  425. break-inside: avoid;
  426. margin-bottom:15px;
  427. width:200px;
  428. height:30px;
  429. line-height:30px;
  430. padding:10px 15px;
  431. text-align:center;
  432. overflow:hidden;
  433. background:rgba({select:Profile boxes background}, {select:Profile boxes background transparency});
  434. border:1px solid {color:Profile borders};
  435. }
  436.  
  437. .icon1, .icon2, .icon3, .icon4, .icon5 {
  438. display:inline-block;
  439. margin:0px 3px;
  440. width:20px!important;
  441. height:20px!important;
  442. line-height:20px;
  443. padding:3px;
  444. text-align:center;
  445. border:1px solid {color:Profile borders};
  446. border-radius:100%;
  447. }
  448.  
  449. .profile-icons span{
  450. font-size:12px;
  451. }
  452.  
  453. .icon1 span{
  454. color:{color:First color};
  455. }
  456.  
  457. .icon1:hover, .icon1:hover span{
  458. color:rgba({select:Profile boxes background}, 1);
  459. background:{color:First color};
  460. }
  461.  
  462. .icon2 span{
  463. color:{color:Second color};
  464. }
  465.  
  466. .icon2:hover, .icon2:hover span{
  467. color:rgba({select:Profile boxes background}, 1);
  468. background:{color:Second color};
  469. }
  470.  
  471. .icon3 span{
  472. color:{color:Third color};
  473. }
  474.  
  475. .icon3:hover, .icon3:hover span{
  476. color:rgba({select:Profile boxes background}, 1);
  477. background:{color:First color};
  478. }
  479.  
  480. .icon4 span{
  481. color:{color:Fourth color};
  482. }
  483.  
  484. .icon4:hover, .icon4:hover span{
  485. color:rgba({select:Profile boxes background}, 1);
  486. background:{color:Fourth color};
  487. }
  488.  
  489. .icon5 span{
  490. color:{color:Fifth color};
  491. }
  492.  
  493. .icon5:hover, .icon5:hover span{
  494. color:rgba({select:Profile boxes background}, 1);
  495. background:{color:Fifth color};
  496. }
  497.  
  498. /*-- Profile stats --*/
  499.  
  500. .profile-stats {
  501. display:inline-block;
  502. break-inside: avoid;
  503. margin-bottom:15px;
  504. width:200px;
  505. height:100px;
  506. overflow-y:auto;
  507. padding:10px 15px;
  508. font-size:12px;
  509. line-height:20px;
  510. background:rgba({select:Profile boxes background}, {select:Profile boxes background transparency});
  511. border:1px solid {color:Profile borders};
  512. /* Stats style */
  513. color:{color:Profile link};
  514. text-align:justify;
  515. }
  516.  
  517. .profile-stats b {
  518. font-weight:600;
  519. }
  520.  
  521. .profile-stats p {
  522. border-bottom:1px solid {color:Profile borders};
  523. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement