summaryrefslogtreecommitdiff
path: root/style/man.css
blob: b804d45cc4e934d9a2b46a6571500fab2b5880c5 (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
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
138
139
140
141
142
143
144
145
146
147
148
149
/*
 * Copyright (C) 2024 dwlr <dweller@cabin.digital>
 *
 * BSD 3-Clause License (BSD-3-Clause)
 * See LICENSE for details
 */

#results
{
    margin-top:    3em;
    margin-bottom: 1em;

    width: min(100% - 3rem, 10in);
}

#lmmtfy
{
    display:         flex;
    flex-direction:  column;
    justify-content: center;
    align-items:     center;
}

#lmmtfy > div
{
    display:         flex;
    flex-direction:  row;
    justify-content: center;
    align-items:     center;

    margin: 0.1in 0.25in;
    padding: 0.1in 0.25in;

    border: 1px solid var(--border);
    border-radius: 1em;
}

#lmmtfy > div > div
{
    position: relative;
    top:  -50px;
    left: 0;

}

#lmmtfy > div > div> label
{
    position: absolute;
    width: 65pt;
    padding: 0 8pt;

    background-color: var(--bg);
}

#lmmtfy textarea
{
    height: 3rem;
    width:  250px;

    margin:  1rem 0.5rem;
    padding: 0    0.5rem;

    text-align:  center;
    line-height: 2.75em;

    overflow: auto;
    outline:  none;
    resize:   none;

    background-color: var(--qbg);
    color: var(--qfg);

    border: 1px solid var(--qborder);
    border-radius: 0.5em;

    box-shadow: 0.5pt 0.75pt 0.5rem var(--qshadow);
}


#lmmtfy textarea:hover
{
    background-color: var(--qbgh);
    border: 1px solid var(--qborderh);
    box-shadow: 0.5pt 0.75pt 0.5rem var(--qshadowh);
}

.manpage
{
    font-size: small;

    margin:  0.25in;
    padding: 0.25in;

    border: 1px solid var(--border);
    border-radius: 1em;
}

.head
{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}


@media (prefers-color-scheme: dark)
{
    #lmmtfy textarea
    {
        background-color: var(--qbgh);
        border: 1px solid var(--qborderh);
    }

    #lmmtfy textarea:hover { box-shadow: 0.5pt 0.75pt 0.5rem var(--qshadowh); }
}

@media (width <= 800px)
{
    .manpage
    {
        width:   unset;
        border:  none;
        margin:  0;
        padding: 0;
        padding-right: 1%;
    }

    #lmmtfy { margin-bottom: 3em; }

    #lmmtfy > div
    {
        padding: 0;
        border: none;
    }
}


/* TODO: give copyright */

table.head, table.foot { width: 100%; }
td.head-rtitle, td.foot-os { text-align: right; }
td.head-vol { text-align: center; }
.Nd, .Bf, .Op { display: inline; }
.Pa, .Ad { font-style: italic; }
.Ms { font-weight: bold; }
.Bl-diag > dt { font-weight: bold; }
code.Nm, .Fl, .Cm, .Ic, code.In, .Fd, .Fn, .Cd { font-weight: bold; font-family: inherit; }