Advertisement
adwas33

Untitled

Nov 19th, 2021
992
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.75 KB | None | 0 0
  1. nav {
  2.     display: flex;
  3.     background-color: cornflowerblue;
  4.     min-height: min-content;
  5.     max-height: fit-content;
  6.     position: absolute;
  7.     overflow: hidden;
  8.     text-align: center;
  9.     top: 0%;
  10.     left: 0%;
  11.     right: 0%;
  12.     align-items: center;
  13.     justify-content: space-between;
  14. }
  15.  
  16. .navButton {
  17.     background-color: yellowgreen;
  18. }
  19.  
  20. nav>div>a {
  21.     text-decoration: none;
  22. }
  23.  
  24. .navBar {
  25.     display: inline-table;
  26.     min-width: fit-content;
  27.     width: 70%;
  28. }
  29.  
  30.  
  31. /* .logInOrRegister {
  32.     display: inline-table;
  33.     min-width: fit-content;
  34.    
  35. } */
  36.  
  37.  
  38. /*
  39. */
  40.  
  41. .categories>ul {
  42.     list-style: none;
  43.     margin: 0;
  44.     padding: 0;
  45.     display: flex;
  46.     justify-content: space-evenly;
  47. }
  48.  
  49. .categories>ul>li {
  50.     flex-grow: 1;
  51.     padding: 0.5rem;
  52.     font-weight: 500;
  53.     border: 2px solid;
  54.     color: white;
  55.     opacity: 0.8;
  56. }
  57.  
  58. .categories>ul>li>a {
  59.     color: inherit;
  60.     display: block;
  61.     text-align: center;
  62. }
  63.  
  64.  
  65. /* kolor kafelków */
  66.  
  67. .categories>ul>li:nth-child(3n) {
  68.     background-color: green;
  69. }
  70.  
  71. .categories>ul>li:nth-child(3n+1) {
  72.     background-color: black;
  73. }
  74.  
  75. .categories>ul>li:nth-child(3n+2) {
  76.     background-color: orange;
  77. }
  78.  
  79. .categories>ul>li:hover {
  80.     background-color: darkblue;
  81. }
  82.  
  83. .logInOrRegister {
  84.     background-color: red;
  85.     text-transform: uppercase;
  86.     border-width: 3px;
  87.     border-style: solid;
  88.     width: 15%;
  89.     display: flex;
  90. }
  91.  
  92. .logInOrRegister>a {
  93.     background-color: blue;
  94.     display: inline-block;
  95.     text-align: center;
  96.     margin: 0;
  97.     justify-content: space-evenly;
  98.     border: 2px solid;
  99.     color: white;
  100.     flex-grow: 1;
  101.     padding: 0.5rem;
  102.     font-weight: 500;
  103. }
  104.  
  105. .logInOrRegister>a:hover {
  106.     opacity: 70%;
  107. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement