application.scss 4.64 KB
Newer Older
Zac Wood's avatar
Zac Wood committed
1 2 3 4 5 6 7 8 9 10 11 12
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
Zac Wood's avatar
Zac Wood committed
13
 *= require_tree .
Zac Wood's avatar
Zac Wood committed
14 15
 *= require_self
 */
Zac Wood's avatar
Zac Wood committed
16

Zac Wood's avatar
Zac Wood committed
17 18 19 20
$gray: #4a4a4a;
$gold: #febf10;
$green: #01693f;
$blue: #297dc5;
Zac Wood's avatar
Zac Wood committed
21

Zac Wood's avatar
Zac Wood committed
22 23
* {
    font-family: 'Roboto', sans-serif;
Zac Wood's avatar
Zac Wood committed
24 25
}

Zac Wood's avatar
Zac Wood committed
26 27 28 29 30 31 32 33
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Open Sans', sans-serif;
}
Zac Wood's avatar
Zac Wood committed
34

Zac Wood's avatar
Zac Wood committed
35 36 37 38 39
.hero {
    margin-top: 30%;
    h1 {
        margin-top: 1em;
        margin-bottom: 1em;
40
    }
Zac Wood's avatar
Zac Wood committed
41
}
Zac Wood's avatar
Zac Wood committed
42

Zac Wood's avatar
Zac Wood committed
43 44 45 46 47 48 49 50 51
#search-container {
    margin: 0 auto;
    border-radius: 5px;
    box-shadow: 0 0 4px $gray;
    width: 75%;
    border: none;
    height: 2em;
    outline: none;

Zac Wood's avatar
Zac Wood committed
52
    display: flex;
Zac Wood's avatar
Zac Wood committed
53 54 55 56 57 58 59 60 61

    & input {
        flex-grow: 1;
        outline: none;
        border: none;
        height: 100%;
        margin-left: 1em;
        margin-right: 1em;
        font-family: 'Roboto', sans-serif;
62
    }
63

Zac Wood's avatar
Zac Wood committed
64 65 66 67 68 69
    & i {
        width: 2em;
        margin-right: 1em;
        margin: auto;
        color: $blue;
    }
70

Zac Wood's avatar
Zac Wood committed
71 72 73 74
    & button {
        background-color: transparent;
        border: none;
    }
75 76
}

Zac Wood's avatar
Zac Wood committed
77
nav {
78
    display: flex;
Zac Wood's avatar
Zac Wood committed
79 80 81 82 83 84 85 86 87 88 89 90 91 92
    padding-top: 1em;
    font-family: 'Open Sans', sans-serif;

    margin-bottom: 2em;

    // schedules logo
    > span:first-child {
        white-space: nowrap;
        font-size: 1.5em;

        a {
            color: black;
        }
    }
93 94
}

Zac Wood's avatar
Zac Wood committed
95 96 97 98 99 100 101 102 103 104 105 106 107
@media only screen and (max-width: 600px) {
    nav {
        text-align: center;
        flex-direction: column;

        > span:first-child {
            margin-bottom: 0.5em;
        }
    }

    #search-container {
        width: 90%;
    }
108
}
Zac Wood's avatar
Zac Wood committed
109 110 111 112 113 114
.instructor {
    box-shadow: 0 3px 5px -2px $gray;
    border-radius: 5px;
    padding: 1em 0 0.5em 1em;
    margin-bottom: 1em;
    border-top: 5px solid $blue;
115

Zac Wood's avatar
Zac Wood committed
116 117 118
    a {
        text-decoration: underline;
    }
119
}
Zac Wood's avatar
Zac Wood committed
120 121 122 123 124 125
.course {
    box-shadow: 0 3px 5px -2px $gray;
    border-radius: 5px;
    padding: 1em;
    margin-bottom: 1em;
    border-top: 5px solid $gold;
126

Zac Wood's avatar
Zac Wood committed
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
    h4 {
        margin-bottom: 0.3em;
        a {
            color: $green;
            font-weight: bolder;
            font-family: 'Open Sans', sans-serif;
        }
    }
    h5 {
        color: $gray;
        font-weight: 400;
    }

    .description {
        display: block;
        margin-top: 1em;
        line-height: 1.7em;
        font-family: 'Roboto', sans-serif;
        color: $gray;
        font-size: 0.9em;
        max-height: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .see-more {
        display: block;
        text-align: center;
        color: $green;
        font-weight: bold;
        margin-top: 1em;
        text-decoration: underline;
    }
161 162
}

Zac Wood's avatar
Zac Wood committed
163 164
.card {
    border-radius: 5px;
165 166
}

Zac Wood's avatar
Zac Wood committed
167 168
a {
    color: $green;
169
}
Zac Wood's avatar
Zac Wood committed
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185

%flex-display {
    display: inline-flex;
}
.star-rating {
    @extend %flex-display;
    align-items: center;
    font-size: 1em;
    justify-content: flex-start;
}
.back-stars {
    @extend %flex-display;
    position: relative;
}
.front-stars {
    @extend %flex-display;
Zac Wood's avatar
Zac Wood committed
186
    color: $gold;
Zac Wood's avatar
Zac Wood committed
187 188 189 190 191
    overflow: hidden;
    position: absolute;
    top: 0;
}

Zac Wood's avatar
Zac Wood committed
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250
.details {
    margin-top: 1em;
    p {
        margin-bottom: 0.2em;
    }
}

.semester-select {
    margin-bottom: 1em;
}

.section-type-label {
    margin-top: 1em;
}

.section-list {
    list-style: none;
    margin: 0;
    padding: 0;
    > * {
        margin-bottom: 0.5em;
    }
}

.underline {
    text-decoration: underline !important;
}

.cart {
    position: fixed;
    right: 5%;
    bottom: 3%;
    background-color: $green;
    width: 3.5em;
    height: 3.5em;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    i {
        font-size: 1.5em;
        margin: auto;
        color: white;
    }
}

.stats {
    margin-bottom: 0.5em;
}

.ratings {
    margin-bottom: 0.5em;
}

footer {
    margin: 4em auto 1em;
    text-align: center;
Zac Wood's avatar
Zac Wood committed
251 252
}

Zac Wood's avatar
Zac Wood committed
253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269
#count {
    position: absolute;
    top: 0;
    left: -0.5em;
    color: white;
    background-color: $blue;
    width: 1.5em;
    height: 1.5em;
    text-align: center;
    border-radius: 100%;
}
.btn-variant {
    background-color: transparent;
    text-align: left;
    border: none;
    padding: 0px;
}