Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c96f4cf95c
Fetching contributors…

Cannot retrieve contributors at this time

file 202 lines (199 sloc) 5.232 kb
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 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
@mixin box-shadow($shadow) {
    -webkit-box-shadow: $shadow;
    -moz-box-shadow: $shadow;
    box-shadow: $shadow;
}

@media screen and (max-width: 720px) {
    .container-fluid {
        /* Overview. */
        #overview {
            left: 0;
            margin-top: 0;
            bottom: 0;
            position: fixed;
            padding: 0;
            width: 100%;
            z-index: 1;
            ul {
                margin: 0;
                li {
                    margin: 0;
                    padding: 10px 0;
                    width: 50%;
                }
            }
        }
        #logo, .sidebar h2 {
            display: block;
            position: fixed;
            margin-left: auto;
            margin-right: auto;
            width: 100%;
            z-index: 1;
        }
        .sidebar h2 {
            margin-top: 120px;
        }
        .sidebar {
            margin-top: 2%;
        }
        form.form-inline {
            padding: 0 10px;
        }
        #home {
            margin: 10px 17px 0;
        }
        p#settings-soon {
            text-align: center;
        }

        /* Convert channel sidebar to browser-like tabs. */
        .sidebar {
            width: 0;
        }
        #user-window {
            @include box-shadow(0 0 4px 2px #333);
            display: none;
            position: fixed;
            top: 0;
            right: 0;
            width: 75%;
            z-index: 3;
        }
        .content {
            margin-left: 0;
            margin-right: 0;
            width: 100%;
            &.user-window-toggled {
                right: 75%;
            }
        }
        #chat-window {
            width: 100%;
            div {
                z-index: 2;
            }
        }
        #channels {
            display: inline-block;
            height: 34px;
            left: 34px;
            position: fixed;
            overflow: visible;
            top: 0;
            white-space: nowrap;
            z-index: 2;
            div.channel {
                border: 1px solid rgba(10, 10, 10, .5);
                border-radius: 25px 0 0;
                display: inline-block;
                height: 34px;
                left: 0;
                padding: 7px 0;
                position: relative;
                text-align: left;
                width: 120px;
                span.channel-name {
                    display: inline-block;
                    margin-left: 8px;
                    overflow: none;
                    text-overflow: ellipsis;
                    width: 45%;
                }
                span.unread, span.unread-mentions {
                    float: none;
                    vertical-align: 6px;
                }
                div.close-button {
                    position: absolute;
                    right: 0;
                    top: 7px;
                    visibility: visible;
                }
            }
            .slide {
                background: rgba(67, 73, 80, .75);
                color: white;
                font-size: 24px;
                display: none;
                height: 34px;
                padding-top: 4px;
                position: fixed;
                text-align: center;
                width: 34px;
                z-index: 2;
                &:hover {
                    background: rgba(67, 73, 80, .95);
                    cursor: pointer;
                }
            }
            #slide-prev {
                left: 0;
                &:after {
                    content: "<";
                }
            }
            #slide-next {
                right: 0;
                &:after {
                    content: ">";
                }
            }
        }
        #chat-bar {
            position: fixed;
            left: 0;
            top: 34px;
            &.user-window-toggled {
                left: -75%;
            }
        }
        #chat-contents {
            margin-top: 34px;
        }

        /* Toggleable sliding sidebar replacement for user window. */
        #user-window-toggle {
            background: rgba(67, 73, 80, .1);
            border: 1px solid rgba(67, 73, 80, .3);
            border-radius: 50px 0 0;
            bottom: 56px;
            display: block;
            height: 55px;
            position: fixed;
            right: 0;
            width: 55px;
            z-index: 3;
            img {
                position: absolute;
                top: 18px;
                left: 18px;
                height: 30px;
                width: 30px;
            }
            &:hover {
                background: rgba(67, 73, 80, .5);
                cursor: pointer;
            }
            &.user-window-toggled {
                right: 75%;
            }
        }
        #input-container {
            text-align: center;
            .input {
                padding-top: 12px;
            }
        }
        input#chat-input {
            float: none;
            width: 65%;
        }
        #chat-button {
            width: 20%;
            padding-left: 0;
            padding-right: 0;
        }
    }
    .channel {
        background: darken(#F5F5F5, 5%);
    }
}
Something went wrong with that request. Please try again.