Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 11.75 KB | None | 0 0
  1. /*-------------------------------------------------------------*
  2.  *  CheChat
  3.  *-------------------------------------------------------------*
  4.  *  1. General
  5.  *  2. Preloader
  6.  *  3. Sidebar
  7.  *      3.0 Left-Gradient
  8.  *      3.1 Logo
  9.  *      3.2 Navigation
  10.  *          3.2.1 Navigation > Current User
  11.  *      3.3 Copyright
  12.  *  4. Teal
  13.  *  5. Main Content
  14.  *      5.0 Container
  15.  *      5.1 Card
  16.  *      5.2 Background Page
  17.  *      5.3 Login/registration page
  18.  *      5.4 Single chat page
  19.  *  6. Contacts
  20.  *  7. Chat page
  21.  *  8. Responsive
  22.  *--------------------------------------------------------------*/
  23.  
  24.  
  25. /*--------------------------------------------------------------*
  26.  *
  27.  *  1. General
  28.  *
  29.  *--------------------------------------------------------------*/
  30. input:focus {
  31.     border: none;
  32. }
  33.  
  34. h1, h2, h3, h4, p {
  35.     font-family: 'Ubuntu', sans-serif !important;
  36. }
  37.  
  38. html, body {
  39.     height: 100%;
  40.     transition: all 0.5s;
  41.     background: #f8fafb;
  42.     scroll-behavior: smooth;
  43. }
  44.  
  45. /*--------------------------------------------------------------*
  46.  *
  47.  *  2. Preloader
  48.  *
  49.  *--------------------------------------------------------------*/
  50. #preloader {
  51.     position: fixed;
  52.     top: 0;
  53.     left: 0;
  54.     min-width: 100%;
  55.     min-height: 100%;
  56.     z-index: 999;
  57.     background-color: #f8fafb;
  58.     background-image: url(../assets/logo.svg);
  59.     background-repeat: no-repeat;
  60.     background-size: 200px auto;
  61.     background-position: center center;
  62. }
  63.  
  64. /*--------------------------------------------------------------*
  65.  *
  66.  *  3.  Sidebar
  67.  *
  68.  *--------------------------------------------------------------*/
  69. .w3-sidebar {
  70.     border: none;
  71.     color: #82829c;
  72.     position: fixed;
  73.     height: 100vh;
  74.     background: #fff !important;
  75.     overflow-x: hidden !important;
  76.     box-shadow: none !important;
  77.     border-right: solid 1px #e0e7ef;
  78.     z-index: 9 !important;
  79. }
  80.  
  81. /*--------------------------------------------------------------*
  82.  *  3.0  Left Gradient
  83.  *--------------------------------------------------------------*/
  84. #left-gradient {
  85.     position: fixed;
  86.     width: 5px;
  87.     height: 100vh;
  88.     background: #272938;
  89. }
  90.  
  91. /*--------------------------------------------------------------*
  92.  *  3.1  Sidebar Logo
  93.  *--------------------------------------------------------------*/
  94. #logo {
  95.     position: relative;
  96.     width: 100%;
  97.     height: 70px;
  98.     border: none;
  99.     background: url(../assets/logo.svg);
  100.     background-repeat: no-repeat;
  101.     background-size: 90% auto;
  102.     background-position: left center;
  103.     border-bottom: solid 0px #00000017;
  104.  
  105. }
  106.  
  107. /*--------------------------------------------------------------*
  108.  *  3.2  Sidebar navigation
  109.  *--------------------------------------------------------------*/
  110. .w3-sidebar h2 {
  111.     font-size: 12px;
  112.     text-transform: uppercase;
  113.     padding-left: 20px;
  114.     letter-spacing: 2px;
  115.     margin-top: 40px;
  116.     color: #42bdc1;
  117.     font-weight: 500;
  118.     margin-bottom: 10px;
  119. }
  120.  
  121. .w3-bar-block .w3-bar-item {
  122.     width: 100%;
  123.     padding: 9px 20px;
  124.     font-size: 20px;
  125.     border-bottom-right-radius: 25px;
  126.     border-top-right-radius: 25px;
  127.     transition: all 0.5s;
  128. }
  129.  
  130. .w3-bar-block .w3-bar-item .menu-icon {
  131.     color: #cbd9e6;
  132. }
  133.  
  134. .text {
  135.     font-size: 0.68em;
  136.     display: inline;
  137.     vertical-align: middle;
  138.     font-family: 'Ubuntu', sans-serif;
  139.     padding: 5px 19px;
  140. }
  141.  
  142. #menu-item-selected, .color-gradient:hover {
  143.     background: #edf2fe !important;
  144.     color: #508af9 !important;
  145. }
  146.  
  147. /*--------------------------------------------------------------*
  148.  *  3.2.1  Navigation > Current user
  149.  *--------------------------------------------------------------*/
  150. .current-user {
  151.     cursor: default !important;
  152. }
  153.  
  154. .current-user:hover {
  155.     color: #82829c !important;
  156.     background: transparent !important;
  157. }
  158.  
  159. .current-user .text {
  160.     padding: 5px 10px;
  161. }
  162.  
  163. .user-avatar-img {
  164.     position: relative;
  165.     width: 30px;
  166.     height: 30px;
  167.     padding: 0;
  168.     margin-left: -7px;
  169.     margin-bottom: -8px;
  170.     display: inline-block;
  171.     background-size: 130% auto;
  172.     background-repeat: no-repeat;
  173.     background-position: center center;
  174.     background-image: url('https://profile.actionsprout.com/default.jpeg');
  175.     border: solid 0px #00000017;
  176.     border-radius: 100%;
  177. }
  178.  
  179. /*--------------------------------------------------------------*
  180.  *  3.3 Sidebar Copyright
  181.  *--------------------------------------------------------------*/
  182. .copyright {
  183.     position: relative;
  184.     width: 100%;
  185.     height: auto;
  186.     padding: 40px 20px 15px 20px;
  187.     text-align: center;
  188.     font-size: 10px;
  189. }
  190.  
  191. /*--------------------------------------------------------------*
  192.  *
  193.  *  4.  Teal
  194.  *
  195.  *--------------------------------------------------------------*/
  196. .w3-teal, .w3-hover-teal:hover {
  197.     position: fixed;
  198.     width: calc(100% - 200px);
  199.     background: #fff !important;
  200.     color: #272938 !important;
  201.     border: none;
  202.     border-bottom: solid 1px #e0e7ef;
  203.     border-right: solid 1px #e0e7ef;
  204.     height: 60px;
  205.     line-height: 60px;
  206.     padding-left: 10px;
  207.     transition: top 0.5s;
  208.     z-index: 8;
  209. }
  210.  
  211. .w3-teal h1 {
  212.     display: inline;
  213.     font-size: 25px;
  214.     line-height:60px;
  215.     margin: 0;
  216.     padding: 0;
  217. }
  218.  
  219. #open-menu {
  220.     background: transparent !important;
  221.     border: none;
  222.     width: 40px;
  223.     height: 60px;
  224.     padding: 0;
  225.     margin-top: 0px;
  226.     margin-left: 10px;
  227.     margin-right: 15px;
  228. }
  229.  
  230. #open-menu:hover {
  231.     color: #508af9 !important;
  232. }
  233.  
  234.  
  235. /*--------------------------------------------------------------*
  236.  *
  237.  *  5.  Main
  238.  *
  239.  *--------------------------------------------------------------*/
  240. .w3-main {
  241.     border-right: solid 1px #e0e7ef;
  242.     height: auto;
  243.     overflow-x: hidden;
  244.     overflow-y: scroll !important;
  245. }
  246.  
  247. /*--------------------------------------------------------------*
  248.  * 5.0 Container
  249.  *--------------------------------------------------------------*/
  250. .w3-container {
  251.     background: #f8fafb !important;
  252.     z-index: 1;
  253.     color: #82819f;
  254.     width: 100% !important;
  255.     min-height: 100vh !important;
  256. }
  257.  
  258. #standard {
  259.     padding: 61px 0 0 0;
  260.     float: left;
  261. }
  262.  
  263. #log-reg {
  264.     padding: 0;
  265.     float: left;
  266. }
  267.  
  268. /*--------------------------------------------------------------*
  269.  * 5.1 Card
  270.  *--------------------------------------------------------------*/
  271. .card-main {
  272.     transition: 0.3s;
  273.     width: 100%;
  274.     height: 100px;
  275.     display: table;
  276.     background: #f8fafb;
  277. }
  278.  
  279. .card-main .img {
  280.     width: 80px;
  281.     margin: 10px;
  282.     position: relative;
  283.     height: 80px;
  284.     float: left;
  285.     background-size: cover !important;
  286.     background-position: center center;
  287.     display: table-column;
  288.     border-radius: 100%;
  289. }
  290.  
  291. .card-main .item-container {
  292.     width: calc(100% - 160px);
  293.     height: 100px;
  294.     position: relative;
  295.     float: left;
  296.     padding: 10px 16px;
  297.     display: table-column;
  298.     border-bottom: solid 1px #e0e8ef;
  299. }
  300.  
  301. .card-main .item-container h4 {
  302.     font-size: 15px;
  303.     white-space: nowrap;
  304. }
  305.  
  306. .card-main .item-container p {
  307.     font-size: 12px;
  308.     white-space: nowrap;
  309.     color: #b0b0c4;
  310. }
  311.  
  312. .card-main .meta {
  313.     width: 60px;
  314.     height: 100px;
  315.     position: relative;
  316.     float: right;
  317.     text-align: center;
  318.     display: table-column;
  319.     background-image: linear-gradient(to left, #f8fafb, transparent);
  320.     border-bottom: solid 1px #e0e8ef;
  321.     padding-bottom: 20px;
  322. }
  323.  
  324. .card-main .meta p {
  325.     font-size: 12px;
  326. }
  327.  
  328. .card-main .meta .new-message {
  329.     width: 40px;
  330.     height: 40px;
  331.     margin-left: 10px;
  332.     margin-top: -10px;
  333.     background: #508af9;
  334.     border-radius: 100%;
  335. }
  336.  
  337. .card-main .meta .new-message p {
  338.     font-size: 20px;
  339.     line-height: 40px;
  340.     text-align: center;
  341.     color: #fff;
  342.     font-weight: 900;
  343. }
  344.  
  345.  
  346. /*--------------------------------------------------------------*
  347.  * 5.2 Background page
  348.  *--------------------------------------------------------------*/
  349. .background-page {
  350.     position: relative;
  351.     width: 100%;
  352.     height: 100vh;
  353.     margin: auto;
  354.     overflow-x: hidden;
  355.     text-align: center;
  356.     background-size: cover !important;
  357.     background-repeat: no-repeat !important;
  358.     background-attachment: fixed !important;
  359. }
  360.  
  361. /*--------------------------------------------------------------*
  362.  * 5.3 Login/Registration page
  363.  *--------------------------------------------------------------*/
  364. #login-page {
  365.     background: url('../assets/login-bg.svg');
  366. }
  367.  
  368. .login-form {
  369.     position: relative;
  370.     width: calc(100% - 20px);
  371.     max-width: 450px;
  372.     margin: 10px;
  373.     height: auto;
  374.     min-height: 300px;
  375.     background: #fff;
  376.     border: solid 1px #e0e8ef;
  377.     border-radius: 10px;
  378.     padding: 30px;
  379. }
  380.  
  381. /*--------------------------------------------------------------*
  382.  * 5.4 Single chat page
  383.  *--------------------------------------------------------------*/
  384. #chat-page {
  385.     height: calc(100vh - 122px);
  386. }
  387.  
  388. #input-bar {
  389.     width: calc(100% - 200px);
  390.     height: 61px;
  391.     position: fixed;
  392.     bottom: 0;
  393.     background: #fff;
  394.     border-top: solid 1px #e0e8ef;
  395. }
  396.  
  397. /*--------------------------------------------------------------*
  398.  *
  399.  *  6.  Contacts
  400.  *
  401.  *--------------------------------------------------------------*/
  402. .container-contacts{
  403.     width: calc(100% - 100px)!important;
  404. }
  405.  
  406. .button-contacts {
  407.     float: right;
  408.     display: inline-block;
  409.     position: relative;
  410.     top:27%;
  411. }
  412.  
  413. .h4-contacts {
  414.     display: inline-block;
  415.     line-height: 80px;
  416.     margin: 0;
  417. }
  418.  
  419.  
  420. .button-contacts .btn-add{
  421.     background:#508af9!important;
  422. }
  423.  
  424.  
  425.  
  426. .select_user_checkbox{
  427.     float:right;
  428.     margin-right: 30px;
  429.     margin-top: 25px;
  430.     width: 30px;
  431.     height: 30px;
  432. }
  433.  
  434. /*--------------------------------------------------------------*
  435.  *
  436.  *  7.  Chat page
  437.  *
  438.  *--------------------------------------------------------------*/
  439.  
  440. .chat-container{
  441.     position: relative;
  442.     width: 100%;
  443.     height:calc(100vh - 122px);
  444.     margin: 0 0 61px 0;
  445.     background: url("../assets/chat-bg.svg");
  446.     overflow-y: scroll;
  447. }
  448.  
  449.  
  450. .chat-send-btn{
  451.     font-size: 20px;
  452.     width:50px;
  453.     height:50px;
  454.     margin: 5px;
  455.     border-radius: 100% !important;
  456. }
  457.  
  458. .message-row{
  459.     position: relative;
  460.     width: 100%;
  461.     min-width:150px;
  462.     min-height: 100px;
  463.     height: auto;
  464.     display: table;
  465. }
  466.  
  467. .message-row .message-container{
  468.     width: auto;
  469.     max-width: 100%;
  470.     min-width: 400px;
  471.     height: auto;
  472.     min-height: 100px;
  473.     margin:10px;
  474.     display: table-cell;
  475.     border: solid 1px rgba(0, 0, 0, 0.04);
  476.     border-radius:10px;
  477.     padding: 15px;
  478. }
  479.  
  480. .message-row .message-container.user{
  481.     float: left;
  482.     background: #edf2fe;
  483. }
  484.  
  485. .triangle-left {
  486.     position: absolute;
  487.     margin-top:10px;
  488.     width: 0;
  489.     height: 0;
  490.     border-top: 0px solid transparent;
  491.     border-right: 20px solid #edf2fe;
  492.     border-bottom: 20px solid transparent;
  493. }
  494.  
  495. .triangle-right {
  496.     position: absolute;
  497.     margin-top:10px;
  498.     width: 0;
  499.     height: 0;
  500.     right: 0;
  501.     border-top: 0px solid transparent;
  502.     border-left: 20px solid #e1feff;
  503.     border-bottom: 20px solid transparent;
  504. }
  505.  
  506. .message-row .message-container.other{
  507.     float: right;
  508.     background: #e1feff;
  509. }
  510.  
  511. .mex-title{
  512.     color: #272938;
  513. }
  514.  
  515. .mex-body{
  516.     font-size: 14px;
  517. }
  518.  
  519. /*--------------------------------------------------------------*
  520.  *
  521.  *  8.  Responsive
  522.  *
  523.  *--------------------------------------------------------------*/
  524. @media only screen and (max-width: 992px) {
  525.     #standard {
  526.         width: 100%;
  527.         border-right: none;
  528.     }
  529.  
  530.     #input-bar {
  531.         width: 100%;
  532.         margin-left: 0;
  533.     }
  534.  
  535.     .w3-teal, .w3-hover-teal:hover {
  536.         width: 100%;
  537.     }
  538.  
  539.     .w3-teal h1 {
  540.         margin-left: 60px;
  541.     }
  542. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement