Advertisement
UKTC162

CSS 8upr

Apr 9th, 2020
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.73 KB | None | 0 0
  1. body {
  2.     margin: 0;
  3.     font-size: 1em;
  4.     font-family: Arial, Helvetica, sans-serif;
  5. }
  6.  
  7. * {
  8.     box-sizing: border-box;
  9. }
  10.  
  11. .top {
  12.     position: fixed;
  13.     top: 0;
  14.     left: 0;
  15.     width: 100%;
  16.     padding: 0 10%;
  17.     background-color: rgb(230, 230, 230);
  18.     border-bottom: 2px solid rgb(153, 0, 0);
  19.     overflow: hidden;
  20.     z-index: 100;
  21. }
  22.  
  23. .top a {
  24.     float: left;
  25.     display: block;
  26.     padding: 0 16px;
  27.     text-decoration: none;
  28.     text-align: center;
  29.     line-height: 46px;
  30.     font-size: 1.1em;
  31.     color: black;
  32. }
  33.  
  34. .top a:hover {
  35.     background-color: rgb(204, 204, 204);
  36.     color: black;
  37. }
  38.  
  39. .top a.active {
  40.     background-color: rgb(153, 0, 0);
  41.     color: white;
  42. }
  43.  
  44. .top .search-container {
  45.     float: right;
  46.  
  47. }
  48.  
  49. .top input {
  50.     padding: 6px;
  51.     margin-top: 6px;
  52.     font-size: 1em;
  53.     border: none;
  54.     border-radius: 5px 0 0 5px
  55. }
  56.  
  57. .top .search-container button {
  58.     float: right;
  59.     padding: 6px 10px;
  60.     margin-top: 6px;
  61.     margin-right: 16px;
  62.     background: rgb(221, 221, 221);
  63.     font-size: 1em;
  64.     border-radius: 0 5px 5px 0;
  65.     border: none;
  66.     cursor: pointer;
  67. }
  68.  
  69. .top .search-container button:hover {
  70.     background: rgb(204, 204, 204);
  71. }
  72.  
  73. .main {
  74.     width: 80%;
  75.     margin: 60px auto 0 auto;
  76. }
  77.  
  78. .content {
  79.     float: left;
  80.     width: 77%;
  81.     margin-bottom: 20px;
  82. }
  83.  
  84. .content h1 {
  85.     margin-top: 0;
  86.     font-size: 2em;
  87.     color: rgb(153, 0, 0);
  88. }
  89.  
  90. .content p {
  91.     line-height: 180%;
  92.     text-align: justify;
  93.     text-justify: inter-character;
  94. }
  95.  
  96. a {
  97.     color: rgb(255, 102, 0);
  98.     text-decoration: none;
  99. }
  100.  
  101. a:hover {
  102.     color: rgb(153, 0, 0);
  103. }
  104.  
  105. header .date-time {
  106.     display: block;
  107.     margin-bottom: 5px;
  108.     color: rgb(153, 153, 153);
  109.     font-size: 90%;
  110.     font-style: italic;
  111. }
  112.  
  113. .img-container {
  114.     position: relative;
  115.     float: left;
  116.     width: 50%;
  117.     margin-right: 15px;
  118.     text-align: center;
  119.     color: white;
  120. }
  121.  
  122. .img-container img {
  123.     display: block;
  124.     width: 100%;
  125.     height: auto;
  126.     border-radius: 5px;
  127.     box-shadow: 0 0 7px rgba(0, 0, 0, 0.6);
  128. }
  129.  
  130. .bottom-right {
  131.     position: absolute;
  132.     bottom: 10px;
  133.     right: 20px;
  134.     font-size: 90%
  135. }
  136.  
  137. .bottom-right i{
  138.     margin-right: 5px;
  139. }
  140.  
  141. article footer span, article footer img{
  142.     float: left;
  143.     display: inline-block;
  144. }
  145.  
  146. article footer span{
  147.     margin-left: 10px;
  148.     line-height: 60px;
  149.     color: rgb(102,102,102);
  150. }
  151.  
  152. article footer img{
  153.     border-radius: 50%;
  154. }
  155. #icon-bar {
  156.    position: fixed;
  157.     top: 50%;
  158.     -webkit-transform: translateY(-50%);
  159.     -ms-transform: translateY(-50%);
  160.     transform: translateY(-50%);
  161.     margin-left: -60px;
  162.    
  163. }
  164.  
  165. #icon-bar a{
  166.     display: block;
  167.     width: 40px;
  168.     height: 40px;
  169.     line-height: 40px;
  170.     text-align: center;
  171.     color: white;
  172.     font-size: 20px;
  173.     margin-bottom: 5px;
  174.     border-radius: 5px;
  175. }
  176.  
  177. #icon-bar a:hover{
  178.     background: rgb(51,51,51);
  179. }
  180.  
  181. .facebook {
  182.     background: rgb(59,89,152);
  183. }
  184.  
  185. .twitter {
  186.     background: rgb(85, 172, 238);
  187. }
  188.  
  189. .linkedin {
  190.     background: rgb(0,123,181)
  191. }
  192.  
  193. .youtube {
  194.     background: rgb(187, 0, 0);
  195. }
  196.  
  197. .sidebar {
  198.     float: right;
  199.     width: 20%;
  200. }
  201.  
  202. .sidebar h3{
  203.     padding: 5px 0 5px 10px;
  204.     color: rgb(102, 102, 102);
  205.     text-transform: uppercase;
  206.     border-left: 5px solid rgb(153, 0,0 );
  207.     border-bottom: 1px solid rgb(153,0,0);
  208. }
  209.  
  210. .sidebar a{
  211.     display: block;
  212.     margin-bottom: 10px;
  213.     color: rgb(204,51,0);
  214. }
  215.  
  216. .sidebar a:hover{
  217.     color: rgb(102,102,102);
  218. }
  219.  
  220. .bottom {
  221.     clear: both;
  222.     padding: 10px;
  223.     color: white;
  224.     background-color: rgb(153,0,0);
  225. }
  226.  
  227. .bottom p{
  228.     font-size: 0.85em;
  229.     margin: 0;
  230.     text-align: center;
  231. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement