Advertisement
Guest User

PasteToBin (Sun Oct 01 2017)

a guest
Oct 1st, 2017
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
4CS 1.70 KB | None | 0 0
  1.               html, body {
  2.     margin: 0;
  3.     padding: 0;
  4. }
  5.  
  6. main {
  7.     display: flex;
  8.     background-image: url(iran.png);
  9.     background-size: cover;
  10.     background-repeat: no-repeat;
  11.     background-position: center;
  12.     height: 100%;
  13.     width: 100%;
  14.     max-height: 100%;
  15.     max-width: 100%;
  16.     opacity: 0.5;
  17.     align-items: center;
  18.     margin: 5px solid #000;
  19. }
  20.  
  21. nav::before {
  22.     content: '';
  23.     display: block;
  24.     width: 100%;
  25.     background-image: url(iran_640.png);
  26.     background-position: top;
  27.     background-size: 300px 150px;
  28.     height: 150px;  
  29.     background-repeat: repeat-x;
  30. }
  31.  
  32. nav {
  33.     display: flex;
  34.     margin-top: 0px;
  35.     flex-wrap: wrap;
  36.     justify-content: space-around;
  37.     width: 100%;
  38.     font-family: 'Nosifer', cursive;
  39.     font-size: 25px;
  40. }
  41.  
  42.  
  43. .sticky {
  44.     position: fixed;
  45.     height: 150px;
  46.     display: flex;
  47.     text-decoration: none;
  48.     list-style: none;
  49.     font-family: 'Nosifer', cursive;
  50.     font-size: 25px;
  51.     justify-content: space-around;
  52.     border: 1px solid #000;
  53.     flex-wrap: wrap;
  54.     z-index: 99;
  55.     margin-top: -150px;
  56. }
  57.  
  58. nav > a {
  59.     display: flex;
  60.     flex-direction: column;
  61.     justify-content: space-around;
  62.     box-sizing: border-box;
  63.     height: 120px;
  64.     width: 300px;
  65.     background-image: radial-gradient(white 5%, rgb(62, 199, 20));
  66.     box-shadow: 5px 5px 5px 5px rgba(209, 50, 50, 0.76);
  67.     border-bottom-left-radius: 20px;
  68.     border-top-left-radius: 20px;
  69.     border-top-right-radius: 20px;
  70.     border-bottom-right-radius: 20px;
  71.     margin: 20px;
  72.     text-decoration: none;
  73.     color: #000;
  74.     transition: 0.35s cubic-bezier(1, 0, 1, .94);
  75.     text-align: center;
  76. }
  77.  
  78. nav > a:hover {
  79.     transform: scale(1.2) rotate(5deg) translateY(-5px);
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement