All files / src/components/Header index.module.scss

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115                                                                                                                                                                                                                                     
@import "../../styles/colors";
 
.img-container {
  $height: 500px;
  $width: 1920px;
 
  @media (min-width: 768px) {
    min-height: $height;
  }
 
  @media (max-width: 767.98px) {
    background-size: cover;
  }
 
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 58px 0.8125rem 0.8125rem;
  margin-top: -58px;
  margin-bottom: 10px;
  background-color: #000;
  background-repeat: no-repeat;
  background-position-x: center;
  background-position-y: center;
  background-size: cover;
 
  // For Tablet
  @media (min-width: 768px) {
    justify-content: center;
  }
}
 
.u-title {
  margin: 0 0 0.75rem;
  font-size: 1.7rem;
  line-height: 1.875rem;
  color: white; // TODO: Auto change color by detect background color
  text-shadow:
    1px 1.5px 0 #19a200,
    -1px -0.5px 0 #19a200,
    -1px 0.5px 0 #19a200,
    1px -0.5px 0 #19a200,
    0 0.5px 0 #19a200,
    -1px 0 #19a200,
    -1px 0 0 #19a200,
    1px 0 0 #19a200;
 
  // Medium devices (tablets, less than 992px)
  @media (max-width: 991.98px) {
    padding-top: 1.5rem;
  }
}
 
.u-subtitle {
  color: white;
  text-shadow:
    0.5px 0.5px 0 #19a200,
    -0.5px -0.5px 0 #19a200,
    -0.5px 0.5px 0 #19a200,
    0.5px -0.5px 0 #19a200,
    0 0.5px 0 #19a200,
    -1px 0 #19a200,
    -1px 0 0 #19a200,
    1px 0 0 #19a200;
 
  // Medium devices (tablets, less than 992px)
  @media (max-width: 991.98px) {
    display: flex;
    align-self: flex-end;
    justify-content: center;
    width: 100%;
    height: 1.2rem;
    font-size: 0.75rem;
    line-height: 1.2rem;
  }
}
 
.m-left {
  @media (max-width: 991.98px) {
    margin-right: auto;
  }
}
 
.text {
  @media (max-width: 991.98px) {
    margin-right: 0.5rem;
  }
}
 
.author-image {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  border-radius: 50%;
}
 
.author-name {
  margin-right: 0.5rem;
}
 
// For PC
@media (min-width: 992px) {
  .u-subtitle {
    font-size: 1rem;
  }
}
 
// For Tablet
@media (min-width: 768px) and (max-width: 991.98px) {
  .u-subtitle {
    align-self: center;
    width: auto;
  }
}