Advertisement
Guest User

Gandlaf 403 Page Styling

a guest
Jan 20th, 2020
1,342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 5.63 KB | None | 0 0
  1. $black: #000;
  2. $semi-black: #1a2130;
  3. $white: #fff;
  4. $dress: #ededed;
  5. $dress-dark: darken($dress, 10%);
  6. $sword: #e6e6e6;
  7. $staff: #bf5507;
  8. $skin: #ffd8ad;
  9. $hair: #c2beb5;
  10. $hair-dark: darken($hair, 10%);
  11. $lips: pink;
  12. $fire: black, #6C1305, #DE8531, #EFAC41;
  13. $fire-reverse:#EFAC41, #DE8531, #6C1305, black;
  14.  
  15. @keyframes floating {
  16.   to {
  17.     top: 1.5rem;
  18.   }
  19. }
  20.  
  21. .container {
  22.   background-color: $white;
  23.   color: $black;
  24.   text-align: center;
  25.   font-family: "Open Sans";
  26.   font-size: 1.3rem;
  27.   h1 {
  28.     font-size: 2.5rem;
  29.   }
  30. }
  31.  
  32. .message {
  33.   max-width: 700px;
  34.   margin: 5rem auto 0 auto;
  35. }
  36.  
  37. .gandalf {
  38.   position: relative;
  39.   width: 400px;
  40.   height: 400px;
  41.   margin: 0 auto;
  42.   top: 1rem;
  43.   animation: floating 1s infinite alternate ease-in-out;
  44.   div {
  45.     position: absolute;
  46.   }
  47.  
  48.   &::before {
  49.     content: "";
  50.     position: absolute;
  51.     top: 0;
  52.     left: 0;
  53.     width: 400px;
  54.     height: 400px;
  55.     background-color: $semi-black;
  56.     border-radius: 50%;
  57.   }
  58.   .fireball {
  59.     bottom: -10px;
  60.     left: 50px;
  61.     width: 300px;
  62.     height: 100px;
  63.     border-radius: 50%;
  64.     background: radial-gradient($fire-reverse);
  65.     border: 5px solid $black;
  66.   }
  67.   .skirt {
  68.     bottom: 50px;
  69.     left: 100px;
  70.     border-bottom: 230px solid $dress;
  71.     border-left: 100px solid transparent;
  72.     border-right: 100px solid transparent;
  73.     filter: drop-shadow(0 0 6px $dress-dark);
  74.  
  75.     &::before {
  76.       content: "";
  77.       position: absolute;
  78.       background-color: $dress;
  79.       width: 100px;
  80.       height: 21px;
  81.       top: 230px;
  82.       left: 0px;
  83.       border-bottom-right-radius: 180%;
  84.       border-bottom-left-radius: 100%;
  85.     }
  86.     &::after {
  87.       content: "";
  88.       position: absolute;
  89.       background-color: $dress;
  90.       width: 100px;
  91.       height: 28px;
  92.       top: 230px;
  93.       left: -100px;
  94.       border-bottom-right-radius: 80%;
  95.       border-bottom-left-radius: 180%;
  96.     }
  97.   }
  98.   .sleeves {
  99.     &::before,
  100.     &::after {
  101.       // sleeves
  102.       content: "";
  103.       position: absolute;
  104.       border-bottom: 70px solid $dress;
  105.       filter: drop-shadow(0 0 6px $dress-dark);
  106.     }
  107.     &::before {
  108.       // sleeve left
  109.       top: 130px;
  110.       left: 191px;
  111.       border-left: 100px solid transparent;
  112.       border-right: 40px solid transparent;
  113.       transform: rotate(-34deg);
  114.     }
  115.     &::after {
  116.       // sleeve right
  117.       top: 127px;
  118.       left: 70px;
  119.       border-left: 40px solid transparent;
  120.       border-right: 100px solid transparent;
  121.       transform: rotate(41deg);
  122.     }
  123.   }
  124.   .shoulders {
  125.     background-color: $dress;
  126.     border-radius: 50%;
  127.     width: 100px;
  128.     height: 130px;
  129.     left: 150px;
  130.     top: 120px;
  131.     .hand {
  132.       width: 33px;
  133.       height: 26px;
  134.       border-radius: 50%;
  135.       background-color: $skin;
  136.       top: -6px;
  137.     }
  138.     .left {
  139.       left: -70px;
  140.       transform: rotate(-20deg);
  141.       &::after {
  142.         // sword
  143.         content: "";
  144.     position: absolute;
  145.     background-color: #e6e6e6;
  146.     width: 126px;
  147.     height: 8px;
  148.     border-radius: 4px;
  149.     transform: rotate(-105deg);
  150.     transform-origin: bottom;
  151.     top: -48px;
  152.     left: -56px;
  153.       }
  154.     }
  155.     .right {
  156.       right: -70px;
  157.       transform: rotate(20deg);
  158.       &::after {
  159.         // staff
  160.         content: "";
  161.         position: absolute;
  162.         background-color: $staff;
  163.         width: 250px;
  164.         height: 5px;
  165.         border-radius: 2.5px;
  166.         transform: rotate(-78deg);
  167.         transform-origin: left;
  168.         bottom: -100px;
  169.         left: 0;
  170.       }
  171.     }
  172.   }
  173.   .head {
  174.     width: 80px;
  175.     height: 90px;
  176.     top: 80px;
  177.     left: 160px;
  178.     background-color: #ffd8ad;
  179.     border-radius: 50%;
  180.    
  181.     &::before, &::after {
  182.       // eyes
  183.       content: "";
  184.       position: absolute;
  185.       background-color: $black;
  186.     }
  187.    
  188.     &::before {
  189.       width: 13px;
  190.     height: 5px;
  191.     border-radius: 3px;
  192.     top: 42px;
  193.     left: 22px;
  194.     transform: rotate(19deg);
  195.     }
  196.     &::after {
  197.       width: 13px;
  198.     height: 5px;
  199.     border-radius: 3px;
  200.     top: 42px;
  201.     right: 22px;
  202.     transform: rotate(-19deg);
  203.     }
  204.    
  205.  
  206.     .hair {
  207.       width: 70px;
  208.       height: 30px;
  209.       background-color: $hair;
  210.       border-radius: 50%;
  211.       top: 0px;
  212.       left: 5px;
  213.  
  214.       &::before,
  215.       &::after {
  216.         // hair sides
  217.         content: "";
  218.         position: absolute;
  219.         background-color: $hair;
  220.         filter: drop-shadow(2px 5px 0 $hair-dark);
  221.       }
  222.  
  223.       &::before {
  224.         // hair left
  225.         top: 13px;
  226.         left: -16px;
  227.         width: 25px;
  228.         height: 100px;
  229.         border-top-left-radius: 34px;
  230.         border-top-right-radius: 15px;
  231.         border-bottom-left-radius: 100px;
  232.         border-bottom-right-radius: 20px;
  233.         transform: rotate(8deg);
  234.       }
  235.       &::after {
  236.         // hair right
  237.         top: 13px;
  238.         right: -16px;
  239.         width: 25px;
  240.         height: 100px;
  241.         border-top-left-radius: 15px;
  242.         border-top-right-radius: 34px;
  243.         border-bottom-left-radius: 20px;
  244.         border-bottom-right-radius: 100px;
  245.         transform: rotate(-10deg);
  246.       }
  247.     }
  248.     .beard {
  249.       top: 64px;
  250.       left: 5px;
  251.       border-top: 80px solid $hair;
  252.       border-left: 35px solid transparent;
  253.       border-right: 35px solid transparent;
  254.       border-radius: 30px;
  255.       filter: drop-shadow(2px 5px 0 $hair-dark);
  256.      
  257.       &::before {
  258.         // mouth
  259.         content: "";
  260.     position: absolute;
  261.     background-color: $lips;
  262.     width: 20px;
  263.     height: 5px;
  264.     border-radius: 40%;
  265.     top: -70px;
  266.     left: -9px;
  267.       }
  268.     }
  269.   }
  270. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement