Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/style/ArchLinux/archnavbar.css
blob: df460b66bba7148a9ebc134a8f434a20f5b7f90e (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
/*
 * ARCH GLOBAL NAVBAR
 *
 * We're forcing all generic selectors with !important
 * to help prevent other stylesheets from interfering.
 *
 */

/* container for the entire bar */
#archnavbar { height: 40px !important; padding: 10px 15px !important; background: #333 !important; border-bottom: 5px #08c solid !important; }

#archnavbarlogo { float: left !important; margin: 0 !important; padding: 0 !important; height: 40px !important; width: 190px !important; }
html > body #archnavbarlogo { background: url('archlogo.svg') no-repeat !important; background-size: 190px 40px !important;}

/* move the heading/paragraph text offscreen */
#archnavbarlogo p { margin: 0 !important; padding: 0 !important; text-indent: -9999px !important; }
#archnavbarlogo h1 { margin: 0 !important; padding: 0 !important; text-indent: -9999px !important; }

/* make the link the same size as the logo */
#archnavbarlogo a { display: block !important; height: 40px !important; width: 190px !important; }

/* display the list inline, float it to the right and style it */
#archnavbar ul { display: inline !important; float: right !important; list-style: none !important; margin: 0 !important; padding: 0 !important; }
#archnavbar ul li { float: left !important; font-size: 14px !important; font-family: sans-serif !important; line-height: 45px !important; padding-right: 15px !important; padding-left: 15px !important; }

/* style the links */
#archnavbar ul#archnavbarlist li a { color: #999; font-weight: bold !important; text-decoration: none !important; }
#archnavbar ul li a:hover { color: white !important; text-decoration: underline !important; }

@media (max-width: 680px) {
    #anb-forum,
    #anb-forums {
        display: none;
    }

    html > body #archnavbarlogo {
        width: 40px !important;
        margin-right: 5px !important;
        background: url('archicon.svg') no-repeat !important;
        background-size: 40px 40px !important;
    }

    #archnavbar ul {
        display: flex !important;
        justify-content: space-between;
        flex-wrap: nowrap;
        overflow: hidden;
        float: none !important;
    }

    #archnavbar ul li {
        padding: 0 !important;
        float: none !important;
    }
}

@media (max-width: 830px) {
    #anb-home,
    #anb-start {
        display: none;
    }

    html > body #archnavbarlogo {
        padding-right: 15px !important;
    }

    #archnavbar {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    #archnavbar ul li {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}