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

search.scss « layout « partials « scss « assets - github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cbf15b784e37dac01ca5b6dd345c3a30dbd48764 (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
.search-form {
    position: relative;
    --button-size: 80px;

    &.widget {
        --button-size: 60px;

        label {
            font-size: 1.3rem;
            top: 10px;
        }

        input {
            font-size: 1.5rem;
            padding: 30px 20px 15px 20px;
        }
    }

    p {
        position: relative;
        margin: 0;
    }

    label {
        position: absolute;
        top: 15px;
        inset-inline-start: 20px;
        font-size: 1.4rem;
        color: var(--card-text-color-tertiary);
    }

    input {
        padding: 40px 20px 20px;
        padding-inline-end: var(--button-size);
        border-radius: var(--card-border-radius);
        background-color: var(--card-background);
        box-shadow: var(--shadow-l1);
        color: var(--card-text-color-main);
        width: 100%;
        border: 0;
        -webkit-appearance: none;

        transition: box-shadow 0.3s ease;

        font-size: 1.8rem;

        &:focus {
            outline: 0;
            box-shadow: var(--shadow-l2);
        }
    }

    button {
        position: absolute;
        inset-inline-end: 0;
        top: 0;
        height: 100%;
        width: var(--button-size);
        cursor: pointer;
        background-color: transparent;
        border: 0;

        padding: 0 10px;

        &:focus {
            outline: 0;

            svg {
                stroke-width: 2;
                color: var(--accent-color);
            }
        }

        svg {
            color: var(--card-text-color-secondary);
            stroke-width: 1.33;
            transition: all 0.3s ease;
            width: 20px;
            height: 20px;
        }
    }
}