//colors $color_alto_approx: #ddd; $color_mine_shaft_approx: #333; $white: white; $web_orange: orange; $color_viking_approx: #57bcdb; $color_geraldine_approx: #ff8080; $color_fuscous_gray_approx: #555; //fonts $font_0: Verdana; $font_1: Geneva; $font_2: sans-serif; //@extend-elements //original selectors //html, body %extend_1 { width: 100%; min-height: 100%; margin: 0; padding: 0; color: $color_alto_approx; font-size: 14px; font-family: $font_0, $font_1, $font_2; background-color: $color_mine_shaft_approx; } .flex-container { border: 1px solid $color_fuscous_gray_approx; display: flex; padding: 20px; width: 80%; &.row { -webkit-flex-direction: row; -ms-flex-direction: row; flex-direction: row; } &.row-reverse { -webkit-flex-direction: row-reverse; -ms-flex-direction: row-reverse; flex-direction: row-reverse; } &.column { -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; } &.column-reverse { -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column-reverse; } &.nowrap { -webkit-flex-wrap: nowrap; -ms-flex-wrap: nowrap; flex-wrap: nowrap; } &.wrap { -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap; } &.wrap-reverse { -webkit-flex-wrap: wrap-reverse; -ms-flex-wrap: wrap-reverse; flex-wrap: wrap-reverse; } &.align-items-start { -webkit-align-items: flex-start; -ms-flex-align: start; align-items: flex-start; } &.align-items-end { -webkit-align-items: flex-end; -ms-flex-align: end; align-items: flex-end; } &.align-items-center { -webkit-align-items: center; -ms-flex-align: center; align-items: center; } &.align-items-baseline { webkit-align-items: baseline; -ms-flex-align: baseline; align-items: baseline; } &.align-items-stretch { webkit-align-items: stretch; -ms-flex-align: stretch; align-items: stretch; } &.justify-start { -webkit-justify-content: flex-start; -ms-flex-pack: start; justify-content: flex-start; } &.justify-end { -webkit-justify-content: flex-end; -ms-flex-pack: end; justify-content: flex-end; } &.justify-center { -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; } &.justify-space-between { -webkit-justify-content: space-between; -ms-flex-pack: justify; justify-content: space-between; } &.justify-space-around { -webkit-justify-content: space-around; -ms-flex-pack: justify; justify-content: space-around; } &.align-content-start { -webkit-align-content: flex-start; -ms-flex-line-pack: start; align-content: flex-start; } &.align-content-end { -webkit-align-content: flex-end; -ms-flex-line-pack: end; align-content: flex-end; } &.align-content-center { -webkit-align-content: center; -ms-flex-line-pack: center; align-content: center; } &.align-content-space-between { -webkit-align-content: space-between; -ms-flex-line-pack: justify; align-content: space-between; } &.align-content-space-around { -webkit-align-content: space-around; -ms-flex-line-pack: justify; align-content: space-around; } &.align-content-stretch { -webkit-align-content: stretch; -ms-flex-line-pack: stretch; align-content: stretch; } } .item { margin: 0; display: inherit; padding: 10px; width: 100px; height: 100px; -webkit-align-items: center; -ms-flex-align: center; align-items: center; &.align-self-auto { -webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto; } &.align-self-start { -webkit-align-self: flex-start; -ms-flex-item-align: start; align-self: flex-start; } &.align-self-end { -webkit-align-self: flex-end; -ms-flex-item-align: end; align-self: flex-end; } &.align-self-center { -webkit-align-self: center; -ms-flex-item-align: center; align-self: center; } &.align-self-baseline { -webkit-align-self: baseline; -ms-flex-item-align: baseline; align-self: baseline; } &.align-self-stretch { -webkit-align-self: stretch; -ms-flex-item-align: stretch; align-self: stretch; } &.flex-grow1 { flex-grow: 1; } &.flex-grow2 { flex-grow: 2; } &.flex-grow3 { flex-grow: 3; } &.flex-grow4 { flex-grow: 4; } p { width: 100%; text-align: center; color: $white; } } html { @extend %extend_1; } body { @extend %extend_1; } * { //Instead of the line below you could use @include box-sizing($bs) box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .principal { width: calc(50% - 40px); min-width: 525px; margin: 0 20px 20px; float: left; &:last-of-type h4 small { color: $color_geraldine_approx; } } .radio { margin-bottom: 20px; } label { line-height: 200%; } input[type=radio] { color: $white; &:checked + label { color: $web_orange; } } input[type=number] { width: 40px; margin-right: .5em; } h1 { font-size: 200%; margin: 20px; } h2 { font-size: 180%; margin: 0; } h4 { a { font-variant: small-caps; font-size: 120%; color: $color_alto_approx; text-decoration: none; } small { font-variant: normal; font-size: 80%; font-weight: normal; color: $color_viking_approx; } } table { width: 100%; margin-bottom: 1em; td { width: 50%; padding: 3px; } } #wrap { width: 400px; } #align { height: 300px; .item { height: auto; flex-wrap: wrap; } } #justify { margin: 20px 0; padding: 20px 0; } #alignContent { flex-wrap: wrap; height: 600px; .item { height: auto; } } #FCI1 { height: 300px; .item { height: auto; } } .nbsp { white-space: nowrap; } @media only screen and(max-width:1100px) { .principal { width: calc(100% - 40px); } } @media only screen and(max-width:580px) { .item { width: 50px; height: 50px; } .principal { width: calc(100% - 40px); min-width: initial; } .flex-container { width: 100%; min-width: initial; } #wrap { width: 200px; } } #direction .item { flex-wrap: wrap; } #FCI3 .item { width: 25%; } #FCI4 .item { width: 50%; } #FCI5 .item { width: 20%; }