Advertisement
nichelium

AO3 Work Skin - Obey Me! chat

Jun 9th, 2020
476
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.23 KB | None | 0 0
  1. /*made by referencing https://archiveofourown.org/works/6434845/chapters/14729722 . The tutorial there roughly applies to this skin, too.*/
  2.  
  3. #workskin .chat {
  4.   max-width: 75vw;
  5.   font-family: Verdana, sans-serif;
  6.   display: table;
  7.   margin: auto;
  8. }
  9.  
  10. #workskin .header {
  11. /* for the header containing contact names. Insert two breaks after for best results.*/
  12.   min-width: 75vw;
  13.   background-color: #1accbc;
  14.   background-image: linear-gradient(to right,#1ACDB7,#19C8CD);
  15.   border-bottom: 1px solid #C1D9D9;
  16.   color: #ffffff;
  17.   font-weight: bold;
  18.   padding-bottom: .2em;
  19.   padding-top: .2em;
  20.   padding-left: 2vw;
  21.   margin-left: -.5em;
  22.   margin-right: -.5em;
  23.   margin-bottom: -2em;
  24.   text-align: left;
  25.   text-transform: capitalize;
  26.   display: table;
  27. }
  28.  
  29. #workskin .messagebody {
  30.   background-color: #CFF0E7;
  31.   display: table;
  32.   padding-left: .5em;
  33.   padding-right: .5em;
  34.   background-image: radial-gradient(rgba(255,0,0,0) 60%, rgba(192,216,216,1));
  35. }
  36.  
  37. #workskin .text {
  38. /*for messages from the left side of the screen.*/
  39.   float: left;
  40.   color: #2C252D;
  41.   margin: 0 0 0.5em;
  42.   border-radius: 1em;
  43.   padding: 0.2em 1.5em 0.2em 1.5em;
  44.   margin-left: 4vw;
  45.   background: #ffffff;
  46.   max-width: 75%;
  47.   box-shadow: 0px 2px 3px 1px #ADBDBA;
  48.   clear: both;
  49.   position: relative;
  50. }
  51.  
  52. #workskin .text::before {
  53.   content: "";
  54.   position: absolute;
  55.   left: -.5em;
  56.   top: 0em;
  57.   width: 0.5em;
  58.   height: 1em;
  59.   border-right: 0.5em solid #ffffff;
  60.   border-top-right-radius: 1em 1em;
  61. }
  62.  
  63. #workskin .reply {
  64. /*for messages from the right side of the screen.*/
  65.  
  66.   float: right;
  67.   color: #FFFFFF;
  68.   margin: 0 0 0.5em;
  69.   border-radius: 1em;
  70.   padding: 0.2em 1.5em 0.2em 1.5em;
  71.   margin-right: 4vw;
  72.   background: #31D7D5;
  73.   max-width: 75%;
  74.   clear: both;
  75.   position: relative;
  76.   box-shadow: 0px 2px 3px 1px #ADBDBA;
  77. }
  78.  
  79. #workskin .reply::before {
  80.   content: "";
  81.   position: absolute;
  82.   right: -0.5em;
  83.   top: 0em;
  84.   width: 0.5em;
  85.   height: 1em;
  86.   border-left: 0.5em solid #31D7D5;
  87.   border-top-left-radius: 1em 1em;
  88. }
  89.  
  90. #workskin .hide {
  91.   display: none;
  92. }
  93.  
  94. #workskin .end {
  95. /*For that little "END" text after chats, or for timestamps.*/
  96.   min-width: 5vw;
  97.   color: #ffffff;
  98.   background-color: rgba(0,0,0,0.3);
  99.   font-size: .75em;
  100.   text-align: center;
  101.   display: table;
  102.   clear: both;
  103.   margin-left: auto;
  104.   margin-right: auto;
  105.   border-radius: .75em;
  106.   padding-left: 0.5em;
  107.   padding-right: 0.5em;
  108. }
  109.  
  110. #workskin .textname {
  111. /*For the name of a sender on the left side of the screen.*/
  112.   min-width: 2vw;
  113.   color: #ffffff;
  114.   background-color: rgba(0,0,0,0.2);
  115.   font-size: .7em;
  116.   text-align: left;
  117.   margin-right: auto;
  118.   margin-bottom: .3em;
  119.   margin-top: .75em;
  120.   border-radius: .75em;
  121.   display: table;
  122.   clear: both;
  123.   margin-left: 4.5vw;
  124.   padding: 0.2em 0.5em 0.2em 0.5em;
  125.   text-transform: capitalize;
  126. }
  127.  
  128. #workskin .replyname {
  129. /*For the name of a sender on the right side of the screen.*/
  130.  
  131.   min-width: 2vw;
  132.   color: #ffffff;
  133.   background-color: rgba(0,0,0,0.2);
  134.   font-size: .7em;
  135.   text-align: right;
  136.   margin-left: auto;
  137.   margin-bottom: .3em;
  138.   margin-top: .75em;
  139.   border-radius: .75em;
  140.   display: table;
  141.   clear: both;
  142.   margin-right: 4.5vw;
  143.   padding: 0.2em 0.5em 0.2em 0.5em;
  144. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement