NecromancerCoding

Nascent Tower Memberlist

Feb 25th, 2021 (edited)
1,620
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5.91 KB | None | 0 0
  1. <script>
  2. $(document).ready(function(){
  3. $('.mbuser span').each(function(){
  4. var bodyColor = $(this).css('color');
  5. $(this).parents('.member').attr('style', '--groups: ' + bodyColor + ';');
  6. });
  7. $('.mbcontact img[src*="contact_pm"]').parent().attr('title', 'Mensaje Privado').html('DM');
  8. });
  9. </script>
  10. <style>
  11. #memberlist {
  12.     --border1: 1px solid #fff;
  13.     --border2: 1px solid #0a0a0a;
  14.     --tbckg1: rgba(0,0,0,0.25);
  15.     --effect: blur(3px);
  16.     --accent1:#74a690;
  17.     --accent2:#506e61;
  18.     --bodywidth:750px;
  19.     font: 10px 'Open Sans';
  20.     color: #aaa;
  21. }
  22.  
  23. #memberlist {
  24.     display: flex;
  25.     justify-content: center;
  26.     align-items: flex-start;
  27. }
  28.  
  29. .mbforms {
  30.     display: flex;
  31.     justify-content: flex-start;
  32.     align-items: center;
  33.     flex-direction: column;
  34.     position: relative;
  35.   width:100%;
  36.   height:100%;
  37.   box-sizing:border-box;
  38. }
  39.  
  40. #memberlist form {
  41.     flex-shrink: 0;
  42.     flex-grow: 1;
  43.     align-self: stretch;
  44.     padding: 0 20px 0 0;
  45.     border-right: var(--border1);
  46.     margin-right: 20px;
  47. }
  48.  
  49. .mbody {
  50.     display: flex;
  51.     justify-content: center;
  52.     align-items: flex-start;
  53.     flex-wrap: wrap;
  54.     width: var(--bodywidth);
  55. }
  56.  
  57. .member {
  58.     width: calc(25% - 15px);
  59.     overflow: hidden;
  60.     margin-right: 20px;
  61.     margin-top: 20px;
  62. }
  63.  
  64. .mb1 {
  65.     width: 100%;
  66.     height: 300px;
  67.     overflow: hidden;
  68.     position: relative;
  69.     box-sizing: border-box;
  70.     border: var(--border2);
  71. }
  72.  
  73. .member:nth-of-type(4n+0), .member:last-of-type {
  74.     margin-right: 0;
  75. }
  76.  
  77. .mb1 img {
  78.     width: 100%;
  79.     height: 100%;
  80.     object-fit: cover;
  81.     object-position: center 20%;
  82. }
  83.  
  84. .mb1:before {content: "";width: 15px;height: 100%;display: block;position: absolute;right: 0;top: 0;background: var(--groups);}
  85.  
  86. .mb2 {
  87.     margin-top: 20px;
  88.     display: flex;
  89.     justify-content: center;
  90.     align-items: center;
  91.     border: var(--border2);
  92.     background: var(--tbckg1);
  93.     backdrop-filter: var(--effect);
  94.     padding: 10px;
  95. }
  96.  
  97. .member:nth-of-type(-n+4) {
  98.     margin-top: 0;
  99. }
  100.  
  101. .mbcontact {
  102.     display: flex;
  103.     justify-content: center;
  104.     align-items: center;
  105.     flex-direction: column;
  106. }
  107.  
  108. .mbcontact a {
  109.     background: var(--groups);
  110.     border-radius: 100%;
  111.     height: 20px;
  112.     width: 20px;
  113.     font-size: 8px;
  114.     text-align: center;
  115.     line-height: 20px;
  116.     font-weight: 700;
  117.     color: white;
  118.     text-shadow: 1px 1px rgba(0,0,0,0.2), -1px 1px rgba(0,0,0,0.2), 1px -1px rgba(0,0,0,0.2), -1px -1px rgba(0,0,0,0.2);
  119. }
  120.  
  121. .mbcontact a:first-of-type {
  122.     margin-bottom: 5px;
  123. }
  124.  
  125. .mbcontact a:first-of-type:last-of-type {
  126.     margin-bottom: 0;
  127. }
  128.  
  129. .mbuser {
  130.     text-transform: uppercase;
  131.     font: 13px 'Poppins';
  132.     letter-spacing: -1px;
  133. }
  134.  
  135. .mbinfo {
  136.     text-transform: uppercase;
  137.     font-size: 8px;
  138. }
  139.  
  140. .mbdata {
  141.     flex-grow: 1;
  142. }
  143.  
  144. .mbform span {
  145.     text-transform: uppercase;
  146.     display: block;
  147.     font-weight: 700;
  148.     font-size: 9px;
  149. }
  150.  
  151. .mbform {
  152.     text-align: center;
  153.     margin-bottom: 20px;
  154.     align-self: stretch;
  155. }
  156.  
  157. .mbform select, .mbform input[type="text"] {
  158.     border: var(--border2);
  159.     backdrop-filter: var(--effect);
  160.     background: var(--tbckg1);
  161.     font: 9px 'Open Sans';
  162.     color: #aaa;
  163.     padding: 5px;
  164.     margin-top: 5px;
  165.     box-sizing: border-box;
  166.     width: 100%;
  167. }
  168.  
  169. .mbforms input[type="submit"] {
  170.     border: 1px solid var(--accent2);
  171.     font-size: 10px;
  172.     background: var(--accent1);
  173.     text-transform: uppercase;
  174.     color: white;
  175.     text-shadow: 1px 1px var(--accent2), -1px 1px var(--accent2), 1px -1px var(--accent2), -1px -1px var(--accent2);
  176.     padding: 5px 10px;
  177.     box-sizing: border-box;
  178.     width: 100%;
  179. }
  180. .mbpagination {
  181.     position: absolute;
  182.     bottom: 0;
  183.     background: var(--tbckg1);
  184.     border: var(--border2);
  185.     backdrop-filter: var(--effect);
  186.     padding: 10px;
  187.     width: 100%;
  188.     box-sizing: border-box;
  189.     text-align: center;
  190.     text-transform: uppercase;
  191.     font-size: 9px;
  192.     font-weight: 700;
  193. }
  194.  
  195. .mbpagination a {
  196.     color: var(--accent1);
  197. }
  198.  
  199. .mbpagination a[href*="javascript"] {
  200.     color: #aaa!important;
  201. }
  202.  
  203. .mbpagination a:hover {
  204.     color: var(--accent2);
  205. }
  206.  
  207. form[name="go_page"] {
  208.     background: #151515;
  209.     border: 1px solid #0a0a0a;
  210.     font: 8px 'Open Sans';
  211.     text-transform: uppercase;
  212. }
  213.  
  214. form[name="go_page"] td.row1 {
  215.     background: transparent;
  216. }
  217.  
  218. form[name="go_page"] input {
  219.     border: 1px solid #0a0a0a;
  220.     background: #222;
  221.     padding: 5px;
  222.     margin: 3px 0;
  223.     color: #aaa;
  224.     text-transform: uppercase;
  225.     font-weight: 700;
  226. }
  227. </style>
  228. <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Poppins:wght@700&display=swap" rel="stylesheet"/>
  229. <div id="memberlist">
  230. <form action="{S_MODE_ACTION}" method="get">
  231. <div class="mbforms">
  232. <div class="mbform">
  233. <span>{L_USER_SELECT}</span>
  234. <input type="text" name="username" maxlength="25" size="20" value="{L_USER_SELECT_VALUE}" />
  235. </div>
  236. <div class="mbform">
  237. <span>{L_SELECT_SORT_METHOD}</span>
  238. {S_MODE_SELECT}
  239. </div>
  240. <div class="mbform">
  241. <span>{L_ORDER}</span>
  242. {S_ORDER_SELECT}
  243. </div>
  244. {S_HIDDEN_SID}
  245. <input type="submit" name="submit" value="{L_SUBMIT}" />
  246. <!-- BEGIN switch_pagination -->
  247. <div class="mbpagination">{PAGINATION}</div>
  248. <!-- END switch_pagination -->
  249. </div>
  250. </form>
  251. <div class="mbody">
  252. <!-- BEGIN memberrow -->
  253. <div class="member">
  254. <div class="mb1">
  255. {memberrow.AVATAR_IMG}
  256. </div>
  257. <div class="mb2">
  258. <div class="mbdata">
  259. <div class="mbuser">{memberrow.USERNAME}</div>
  260. <div class="mbinfo">Última visita: {memberrow.LASTVISIT}<br/>{memberrow.POSTS} POSTS</div>
  261. </div>
  262. <div class="mbcontact">
  263. <a href="{memberrow.U_VIEWPROFILE}" title="Perfil de usuario">PF</a>
  264. {memberrow.PM_IMG}
  265. </div>
  266. </div>
  267. </div>
  268. <!-- END memberrow -->
  269. <!-- BEGIN switch_no_user -->
  270. <strong class="nouser">{switch_no_user.L_NO_USER}</strong>
  271. <!-- END switch_no_user -->
  272. </div>
  273. </div>
Add Comment
Please, Sign In to add comment