aboutsummaryrefslogtreecommitdiff
path: root/htmx/static/pico-1.5.11/docs/scss/layout/_documentation.scss
blob: 7bc48661d57cc3ed30de16a3199f38d58862961d (plain) (blame)
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
/**
 * Docs: Documentation
 */

// Docs: Themes
#themes {
  button.theme-switcher {
    &:first-of-type {
      --font-weight: bold;
    }
    
    i {
      font-style: normal;
    }
  }
}

// Docs: Customization
#customization {
  figure {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(9, 1fr);
    margin-bottom: 0;
    overflow: hidden;

    @media (min-width: map-get($breakpoints, "sm")) {
      grid-template-rows: 1fr;
      grid-template-columns: repeat(18, 1fr);
      border-top-right-radius: var(--border-radius);
      border-top-left-radius: var(--border-radius);
    }

    ~ article {
      margin-top: 0;
      border-top-right-radius: 0;
      border-top-left-radius: 0;
    }

    button {
      margin-bottom: 0;
      padding: 0;
      padding-top: 100%;
      border: none;
      border-radius: 0;

      &:focus {
        box-shadow: none;
      }

      &.picked {
        background-image: var(--icon-check);
        background-position: center;
        background-size: 0.66rem auto;
        background-repeat: no-repeat;
        box-shadow: inset 0 0 1rem 0 rgba(0, 0, 0, 0.25);
      }
      &[data-color="lime"],
      &[data-color="yellow"],
      &[data-color="amber"] {
        &.picked {
          background-image: var(--icon-check-dark);
        }
      }
    }
  }

  h4 {
    transition: color var(--transition);
  }

  pre[data-theme="generated"] {
    border-color: var(--primary);
  }
}

// Docs: Grid
#grid {
  --grid-spacing-vertical: 1rem;

  button {
    display: block;
    width: 100%;
    margin-bottom: var(--spacing);

    @media (min-width: map-get($breakpoints, "sm")) {
      display: inline-block;
      width: auto;
      margin-right: 0.5rem;
    }

    svg {
      stroke: var(--secondary);
      margin-right: 0.5rem;
      border: 2px solid currentColor;
      border-radius: 1rem;
      background: currentColor;
    }
  }

  .grid {
    > * {
      padding: calc(var(--spacing) / 2) 0;
      border-radius: var(--border-radius);
      background: var(--code-background-color);
      font-size: 87.5%;
      text-align: center;
    }
  }

  details {
    margin-top: calc(var(--typography-spacing-vertical) * 2);

    svg {
      vertical-align: bottom;
    }
  }
}

// Docs: Buttons
#buttons {
  a[role="button"] {
    margin-right: calc(var(--spacing) * 0.5);
  }
}

// Docs: Forms
#forms div.grid {
  grid-row-gap: 0;
}

// Docs: Modal
#modal {
  button {
    --font-weight: bold;
  }
}