cus_Menu.css 1.84 KB
Newer Older
Patrick's avatar
Patrick committed
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
/* Css code for Dropdown Menu */
    /* The container <div> - needed to position the dropdown content */ 
    .dropdown {
        position: relative;
        display: inline-block;
    }

    /* The dropdown container <div> - needed to hold the content inside dropdown */ 
    .dropdown-content {
        right: -20px;
        display: none;
        position: absolute;
        min-width: 150px;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        z-index: 1;
    }

    /* Accordion as a button to add expandible and collapsible menu items */
    .accordion {
        border: solid white;
        border-width: thin;
        display: block;  
        background-color:#000000;
        color: white;
        cursor: pointer;
        padding: 11px;
        width: 100%;
        text-align: left;
        outline: none;
        font-size: 15px;
        transition: 0.4s;
    }

    /* Sub menu items inside the accordion */
    .sub-menu {
        line-height: 35px;
        padding: 0px 20px;
        background-color: dimgray;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease-out;
    }

    /* Styling for text of submenu */
    .sub-menu a{
        text-decoration: none;
        color: aliceblue;
        cursor: pointer;
        outline: none;
        font-size: 15px;
    }

    .active, .accordion:hover {
        background-color: darkgray;
    }

    /* Changing of + and - on menu expand and collapse respectively*/
    .accordion:after {
        content: '\002B';
        color:black;
        font-weight: bold;
        float: right;
        margin-left: 5px;
    }

    .active:after {
        content: "\2212";
    }

    /* Show the dropdown menu on hover */
71
    .dropdown:hover .dropdown-content {
Patrick's avatar
Patrick committed
72
73
        display: block;
    }
74

Patrick's avatar
Patrick committed
75
76
    #dropdownMenu{
        cursor: pointer;
77
    }
78
79
80
    .can-touch{
        display: none;
    }