~vallode/vallode-com

ref: 54881a1978d2bcac2ecc25e998131544c926eb44 vallode-com/sass/templates/_header.scss -rw-r--r-- 989 bytes
54881a19vallode Restyle a bit 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
header {
  align-self: flex-start;
  border: 2px solid $highlight;
  display: flex;
  flex-direction: column;
  flex: 0 0 16rem;
  margin: 1.2rem;
  position: relative;

  &::before {
    background-color: $background;
    background-size: 1.8rem 1.8rem;
    content: '';
    display: block;
    height: calc(100% + 1.8rem);
    left: -1rem;
    position: absolute;
    top: -0.6rem;
    transform: rotate(3deg);
    width: calc(100% + 1.8rem);
    z-index: -1;
  }
  
  
  .header__title {
    border-bottom: 2px solid $highlight;
    margin: 0;
    padding: 0.6rem 1rem 0.6rem 0.6rem;
  }
  
  nav {
    display: flex;
    flex-direction: column;
    padding: 0.5em 1em;
    
    a {
      color: inherit;
    }
    
    h3 {
      margin-bottom: 0.8rem;
    }
    
    .bottom {
      margin: auto 0 0;
    }
  }
  
  @media screen and (max-width: 700px) {
    background: $background;
    border: none;
    margin: 0;
    width: 100%;

    &::before {
      display: none;
    }
  }
}