Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_base.scss « base « styles - github.com/huyb1991/hugo-lamp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 88079891440387080581377c5145ffc1852aa3d4 (plain)
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
body {
  font-size: $base-font-size;
  font-weight: $weight-normal;
  line-height: 1.618;
  font-family: $family-sans-serif;
  color: $text;
  background: $white;
  text-rendering: optimizeLegibility;
  -webkit-overflow-scrolling: touch; // Smoothly on mobile browser
}

a {
  color: $text-link;
  text-decoration: none;
  font-weight: $weight-bold;

  &:focus,
  &:hover {
    opacity: 0.7;
    outline: none;
  }
}

amp-img {
  margin: 0 auto;
  box-shadow: 2px 20px 40px 10px $box-shadow-dark;
}

button:hover {
  cursor: pointer;
}

.main {
  margin-left: 20rem;
  padding: 1rem 2rem;
  max-width: 100%;
  min-height: 100vh;
  box-sizing: border-box;

  @media screen and (max-width: $widescreen) {
    width: calc(100% - 20rem);
  }

  @media (min-width: $tablet) and (max-width: $desktop) {
    margin-left: 15rem;
    width: calc(100% - 15rem);
  }

  @media screen and (max-width: $tablet) {
    margin-left: 0;
    padding: 0 1rem 1rem;
    width: 100%;
    min-height: initial;
    border-left: none;
    border-right: none;
    border-top: 1px solid $border-color;
    border-bottom: 1px solid $border-color;
  }
}

.footer {
  // display: none;

  @media screen and (max-width: $tablet) {
    display: block;
    padding: 1rem;
    font-size: $size-7;
    text-align: center;
    font-family: $family-monospace;
  }
}