Six Neighborhood Display

/**************************
  Six Neighborhodd Display
***************************/

// Custom Widget Properties
.customwidget {
    width: 100%;
    float: left;
}

// Neighborhood Widget (the entire container)
#neighborhoodwidget {
    float: left;
    width: 100%;
    background-color: white;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

// Neighborhood Widget (the main text header)
#neighborhoodwidgettitle {
    padding: 15px 0;
    border-bottom: 3px solid #aaa;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    background-color: $brand-primary;
    color: $brand-second;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 11px;
}

// Neighborhood Widget (the img)
#neighborhoodwidget img {
    width: 100%;
    height: 265px;
    margin-top: 10px;
}

// Neighborhood Widget Caption (the container)
.neighborhoodcaption {
    width: 70%;
    position: absolute;
    top: 200px;
    background-color: rgba(0, 0, 0, 0.7);
    height: 55px;
    text-align: center;
    
}

// Neighborhood Widget Text (h3)
.neighborhoodcaption h3 {
    margin-top: 13px;
    color: #FFFFFF;
	font-weight: bold;
}

// Neighborhood Widget Width (responsive width - row of three)
.neighborhoodwidth {
    width:33.33333%;
    float: left;
    position: relative;
    min-height: 1px;
    padding-left: 15px;
    padding-right: 15px;
}

// Media Queries
@media (max-width: 1199px) {
    // Adjusting font size and margining to center in container
    .neighborhoodcaption h3 {
        font-size: 17px;
        margin-top: 17px;
    }
    
    // Neighborhood Widget Width (responsive width - row of two)
    .neighborhoodwidth {
        width:50%;
    }
}

@media (max-width: 766px) {
    // Adjusting font size
    #neighborhoodwidgettitle {
        font-size: 16px;
    }
    
    // Neighborhood Widget Width (responsive width - row of one)
    .neighborhoodwidth {
        width:100%;
    }
    
    // Centering the entire div and changing width
    #neighborhoodwidget {
        float: none;
        width: 70%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 521px) {
    // Changing width of entire container
    #neighborhoodwidget {
        width: 100%;
    }
}
This entry was posted in   .
Bookmark the   permalink.

Matt Barrett has written 1 article