Advertisement
Guest User

CSS

a guest
Jan 22nd, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.83 KB | None | 0 0
  1. .toolbar {
  2.     position: fixed;
  3.     height: 56px;
  4.     width: 100%;
  5.     top: 0;
  6.     left: 0;
  7.     background: #000000;
  8.     z-index: 1;
  9. }
  10.  
  11. .toolbar_logo {
  12.     margin-left: 1rem;
  13. }
  14.  
  15. .toolbar_logo a {
  16.     color: white;
  17.     text-decoration: none;
  18.     font-size: 1.8rem;
  19.     font-family: serif;
  20. }
  21.  
  22. .toolbar_logo center {
  23.     color: white;
  24.     text-decoration: none;
  25.     font: .5rem;
  26.     margin-bottom: 10px;
  27.     font-family: sans-serif;
  28.     font-style: italic;
  29. }
  30.  
  31. .toolbar_navigation {
  32.     display: flex;
  33.     height:100%;
  34.     align-items: center;
  35.     padding: 0 1rem;
  36.     font-family: serif;
  37. }
  38.  
  39. .toolbar_navigation-items ul {
  40.     list-style: none;
  41.     margin: 0;
  42.     padding: 0;
  43.     display: flex;
  44. }
  45.  
  46. .toolbar_navigation-items li {
  47.     padding: 0 0.5rem;
  48. }
  49.  
  50. .toolbar_navigation-items a {
  51.     color:white;
  52.     text-decoration: none;
  53.     font-family: sans-serif;
  54. }
  55.  
  56. .spacer { /* accounts for free space when the screen size changes */
  57.     flex: 1;
  58. }
  59.  
  60. .toolbar_navigation-items a:hover,
  61. .toolbar_navigation-items a:active {
  62.     color: orange;
  63. }
  64.  
  65. /* colored bar */
  66. table {
  67.     border-collapse: collapse;
  68.     z-index: -1;
  69. }
  70. td {
  71.     width: 100px;
  72.     height: 20px;
  73.     padding: 0px;
  74. }
  75. .colorbar_color1 {
  76.     background-color: rgb(255, 217, 0);
  77. }
  78. .colorbar_color2 {
  79.     background-color: red;
  80. }
  81. .colorbar_color3 {
  82.     background-color: rgb(0, 140, 255);
  83. }
  84. .colorbar_color4 {
  85.     background-color: gray;
  86. }
  87.  
  88. /* mobile view */
  89. @media (max-width: 768px) {
  90.     .toolbar_navigation-items {
  91.         display: none;
  92.     }
  93.  
  94.     .toolbar_logo a {
  95.         font-size: 1.2rem;
  96.     }
  97. }
  98.  
  99. /* desktop view */
  100. @media (min-width: 769px) {
  101.     .toolbar {
  102.         /* might use */
  103.     }
  104.    
  105.     .toolbar-toggle-button {
  106.         display:none;
  107.     }
  108.  
  109.     .toolbar_logo {
  110.         margin-left: 0;
  111.     }
  112. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement