Crops

core.css

Aug 29th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.61 KB | None | 0 0
  1. * {
  2.     box-sizing: border-box;
  3. }
  4. body {
  5.     margin: 0;
  6.    
  7.     background: #f1f1f1;
  8.     font-family: sans-serif;
  9.  
  10.     display: flex;
  11.     flex-direction: row;
  12.     flex-wrap: wrap;
  13. }
  14.  
  15. a {
  16.     text-decoration: none;
  17. }
  18.  
  19. header {
  20.     display: flex;
  21.     justify-content: flex-start;
  22.  
  23.     width: 100%;
  24.     height: 50px;
  25.     position: fixed;
  26.     z-index: 200;
  27.     background: #444;
  28. }
  29.  
  30. header a {
  31.     display: block;
  32.     position: relative;
  33.  
  34.     top: 15px;
  35.     right: 10px;
  36.     width: 25px;
  37.     height: 40px;
  38. }
  39.  
  40. main {
  41.     width: 100%;
  42.     padding: 30px;
  43.     padding-top: 80px;
  44.     margin-left: 250px;
  45.     transition: margin-left .5s;
  46. }
  47.  
  48. aside {
  49.     width: 250px;
  50.     height: 100%;
  51.     margin-top: 50px;
  52.     left: 0;
  53.     position: fixed;
  54.     background: #f3f3f3;
  55.     transition: position, left .5s;
  56. }
  57.  
  58. .main-toggle {
  59.     margin-left: 0;
  60.     transition: margin-left .5s;
  61. }
  62. .aside-toggle {
  63.     left: -250px;
  64.     transition: position, left .5s;
  65. }
  66.  
  67. .foto-perfil {
  68.     width: 100%;
  69.     height: 200px;
  70.     position: relative;
  71.     border-bottom: 1px solid #aaa;
  72. }
  73.  
  74. .imagen {
  75.     position: absolute;
  76.     top: 0;
  77.     bottom: 0;
  78.     left: 0;
  79.     right: 0;
  80.     margin: auto;
  81.    
  82.     width: 150px;
  83.     height: 150px;
  84.     border-radius: 50%;
  85.    
  86.     box-shadow: 0 0 3px 3px rgba(0,0,0,.5   );
  87. }
  88.  
  89. .menu-aside a {
  90.     display: block;
  91.     padding: 10px;
  92.     border-bottom: 1px solid #aaa;
  93.     color: #444;
  94. }
  95. .menu-aside a:hover {
  96.     background: rgba(0,0,0,.1);
  97. }
  98. @media only screen and (max-width: 900px) {
  99.   aside{
  100.         position: fixed;
  101.         left:-250px;
  102.         transition:position, left 0.5s;
  103.     }
  104.     .aside-toggle{
  105.         position: fixed;
  106.         left:0px;
  107.         transition:position, left 0.5s;
  108.     }
  109.     main{
  110.         margin-left:0px;
  111.         transition:margin-left 0.5s;
  112.     }
  113. }
Add Comment
Please, Sign In to add comment