Slippry example thumbnails (graphics carousel) - css

http://slippry.com/examples/thumbnails/
I'm trying to recreate the thumbnails example.
The css quoted is in sass format.
I've not used sass before.
Is anyone able to convert this to sass (from example page)?
I had a quick attempt at http://www.sassmeister.com and failed.
* Thumbnails */
.thumb-box {
padding: 1.4em 0 1em;
margin-left: -1%;
width: 102%;
.thumbs {
#include clearfix;
li {
float: left;
width: 25%;
text-align: center;
padding: 0 1%;
img {
width: 100%;
opacity: .8;
#include transition(opacity .32s);
border-bottom: 4px solid transparent;
&.active {
border-color: $bc-rk-blue;
opacity: 1;
}
}
&:hover {
img {
opacity: 1;
#include transition(opacity .2s);
}
}
}
}
}

used http://www.sassmeister.com/
found the 2 #mixins.
I could not find $bc-rk-blue; so just changed it to blue
This is the output:
/* Thumbnails */
#import "compass";
#mixin grouped-trans($list, $time, $ease) {
#include transition-property($list);
#include transition-duration($time);
#include transition-timing-function($ease);
}
#mixin clearfix() {
&:before,
&:after {
content: "";
display: table;
}
&:after {
clear: both;
}
}
.thumb-box {
padding: 1.4em 0 1em;
margin-left: -1%;
width: 102%;
.thumbs {
#include clearfix;
li {
float: left;
width: 25%;
text-align: center;
padding: 0 1%;
img {
width: 100%;
opacity: .8;
#include transition(opacity .32s);
border-bottom: 4px solid transparent;
&.active {
border-color: blue;
opacity: 1;
}
}
&:hover {
img {
opacity: 1;
#include transition(opacity .2s);
}
}
}
}
}

Related

React and Bulma CSS - Not being able to animate modal

I am trying to implement fade-in scale effect in a Bulma CSS modal component with react and scss. It opens (gets active) when I click on a button which turns a state variable this.state.open to true as shown in the code below.
<div
className={
this.state.open
? (this.props.modalClass || 'login-modal') + ' modal is-mobile is-active'
: ' modal is-mobile'
}
id={this.props.modalId || 'login-modal'}
>
<div className={`modal-background ${this.state.open && 'modal-bg-active' }`}></div>
<div className={`modal-content ${this.state.open && 'modal-content-active'}`}>
<div ref={node => (this.wrapperRef = node)} className='modal-content-inner columns is-multiline'>
<div className='column left-content'></div>
<div className='column right-content'>
<div className='text-container'>
<div className='text-inner-container'>
.
.
.
.
I didn't add the entire markup here as in most websites I have seen the classes used for animating are modal,modal-background, and modal-content
The sass code I have written for the modal is:
.modal.login-modal {
z-index: 1000;
.modal-background {
transition: all 3s;
opacity: 0;
}
.modal-content {
background: #fff;
max-width: 840px;
width: 100%;
transform: scale(0.7);
opacity: 0;
transition: all 3s;
}
&.is-active {
visibility: visible;
.modal-background {
opacity: 1;
#include box_shadow_dark();
background-color: rgba(0, 0, 0, 0.85);
}
.modal-content {
transform: scale(1);
opacity: 1;
}
}
// .modal-background.modal-bg-active {
// visibility: visible;
// opacity: 1;
// #include box_shadow_dark();
// background-color: rgba(0, 0, 0, 0.85);
// }
// .modal-content {
// background: #fff;
// max-width: 840px;
// width: 100%;
// transform: scale(0.7);
// opacity: 0;
// transition: all 0.3s;
// }
// .modal-content.modal-content-active {
// transform: scale(1);
// opacity: 1;
// }
//==================================================> EXTRA CODE FOR CONTENT INSIDE MODAL
.left-content {
background-color: #fff;
background-image: url('https:some_url');
#include tablet_only {
display: none;
background-image: none;
}
#include mobile_only {
display: none;
background-image: none;
}
}
.right-content {
background: #fff;
.text-container {
text-align: center;
box-sizing: border-box;
#include mobile_only {
padding: 0;
}
}
.text-inner-container {
padding: 40px;
#include mobile_only {
padding: 30px;
height: auto;
}
}
}
// ==================================== Prompt
.prompt-text {
margin: 15px auto 25px;
font-size: 18px;
text-align: left;
}
// ===================================== Email OTP Fields
.user-input-field {
input {
font-size: 14px;
padding: 12px 15px;
width: 100%;
height: auto;
border-width: 2px;
}
label {
font-size: 13px;
text-align: left;
margin-bottom: 10px;
font-weight: $fontWeightBold;
}
.error-message {
font-size: 13px;
color: red;
text-align: left;
margin: 8px 0px 5px;
font-weight: $fontWeightBold;
}
}
.otp-button {
margin: 15px auto 20px;
padding: 11px 15px;
}
// ====================================== Login Buttons
.login-button {
border-radius: 4px;
padding: 13px 15px;
width: 100%;
font-size: 15px;
cursor: pointer;
height: auto;
font-weight: $fontWeightExtraBold;
#include box_shadow_dark();
}
.facebook-login-js {
display: inline-block;
color: white;
margin: 20px auto 15px;
background-color: $fbBlue;
border: none;
&:hover {
background-color: $fbBlueDark;
}
}
// google login
.google-login-js {
display: inline-block;
color: white;
margin: 0px auto 15px;
background-color: $gplusRed;
border: none;
&:hover {
background-color: $gplusRedDark;
}
}
// ========================================== Seperator
.seperator-text-container {
.seperator-text {
font-weight: $fontWeightBold;
color: #555555;
}
}
.terms-line {
font-size: 10px;
}
//=========================================================> EXTRA CODE FOR CONTENT INSIDE MODAL
}
}
What am I getting wrong here? How should I change the code for it to work? I will surely provide more details if required to understand it. Thank you!
I believe the issue is that bulma modal class has display: none property which can not be animated. Try overwriting it to display: block.
Or you could possibly use something like this https://github.com/postare/bulma-modal-fx

Need to put in media query in one section of a page to get it to work in another? SCSS/SASS

I'm using a standard webpack build with SCSS variables and mixins. For some reason, I cannot get styles to override in a media query on one section on this site unless I put the same media query in a previous section where the breakpoints were used. Here's my code:
_variables.scss
$sm-screen: 576px;
$md-screen: 768px;
$lg-screen: 992px;
$xl-screen: 1200px;
_mixins.scss
#mixin sm-screen {
#media screen and (min-width: #{$sm-screen}) {
#content;
}
}
#mixin md-screen {
#media screen and (min-width: #{$md-screen}) {
#content;
}
}
#mixin lg-screen {
#media screen and (min-width: #{$lg-screen}) {
#content;
}
}
#mixin xl-screen {
#media screen and (min-width: #{$xl-screen}) {
#content;
}
}
#mixin screen-size($screen) {
#media screen and (min-width: $screen) {
#content;
}
}
main.scss (where files are being imported)
#import "/base/variables";
#import "/base/mixins";
#import "home";
_home.scss (here's where the problems are)
// ————————————————————————————————————————————————————————————
// HERO SECTION
// ————————————————————————————————————————————————————————————
#hero-section {
.hero-heading {
font-size: 2rem;
}
#include sm-screen {
.hero-heading {
font-size: 5rem;
}
}
#include lg-screen {
.hero-heading {
font-size: 6.5rem;
}
}
#include xl-screen {
.hero-heading {
font-size: 6.5rem;
}
}
}
...and as you would expect, the font size overrides correctly:
// ————————————————————————————————————————————————————————————
// INTRO SECTION (where things get buggy)
// ————————————————————————————————————————————————————————————
#intro-section {
.icon-group {
list-style: none;
padding: 0;
margin-bottom: 50px;
}
#include md-screen {
.icon-group {
display: grid;
grid-template-columns: repeat(2, 1fr);
max-width: 600px;
margin-left: auto;
margin-right: auto;
position: relative;
}
}
#include xl-screen {
.icon-group {
display: flex;
max-width: none;
justify-content: center;
}
}
}
When I use the same mixins in this section, the medium breakpoint overrides the xl breakpoint:
Here's the kicker:
When I add a medium breakpoint to the HERO SECTION code, then the breakpoints work as expected in the INTRO SECTION:
// ————————————————————————————————————————————————————————————
// HERO SECTION
// ————————————————————————————————————————————————————————————
#hero-section {
.hero-heading {
font-size: 2rem;
}
#include sm-screen {
.hero-heading {
font-size: 5rem;
}
}
#include md-screen {
.hero-heading {
font-size: 5rem;
}
}
#include lg-screen {
.hero-heading {
font-size: 6.5rem;
}
}
#include xl-screen {
.hero-heading {
font-size: 6.5rem;
}
}
}
// ————————————————————————————————————————————————————————————
// INTRO SECTION
// ————————————————————————————————————————————————————————————
#intro-section {
.icon-group {
list-style: none;
padding: 0;
margin-bottom: 50px;
}
#include md-screen {
.icon-group {
display: grid;
grid-template-columns: repeat(2, 1fr);
max-width: 600px;
margin-left: auto;
margin-right: auto;
position: relative;
}
}
#include xl-screen {
.icon-group {
display: flex;
max-width: none;
justify-content: center;
}
}
}
Why is this?!
EDIT:
Here's my whole _home.scss and _variables.scss files. When I comment out all of HERO SECTION, everything else works fine. There has to be a bug in the HERO SECTION, but I'm just not catching it.
_variables.scss
// ————————————————————————————————————————————————————————————
// COLORS
// ————————————————————————————————————————————————————————————
$grey-01: #181F2C;
$grey-02: #70849f;
$grey-03: #E0E5EE;
$blue-01: #A0AFC3;
$green-01: #0C7C25;
$green-01-hover: darken($green-01, 8%);
// ————————————————————————————————————————————————————————————
// GENERAL
// ————————————————————————————————————————————————————————————
$dur: 0.25s;
$skew: 32;
// ————————————————————————————————————————————————————————————
// BREAKPOINTS
// ————————————————————————————————————————————————————————————
$sm-screen: 576px;
$md-screen: 768px;
$lg-screen: 992px;
$xl-screen: 1200px;
_home.scss
body.home {
// ————————————————————————————————————————————————————————————
// HERO SECTION
// ————————————————————————————————————————————————————————————
#hero-section {
min-height: 100vh;
overflow: hidden;
display: flex;
justify-content: stretch;
.left-side,
.right-side {
width: 50%;
overflow: hidden;
position: relative;
background: $grey-01;
flex-grow: 1;
will-change: width;
transition: width $dur ease;
&.tap-active {
width: 150%;
.hero-content {
visibility: visible;
opacity: 1;
margin: 0 #{$skew}vh;
}
.hero-img {
opacity: 0.12;
background-color: $grey-01;
}
}
}
.hero-content {
opacity: 0;
visibility: hidden;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
color: white;
z-index: 1;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
transform: skew(#{$skew}deg);
transition: all $dur ease;
margin: 0 #{$skew}vh;
width: calc(100vw - 10%);
}
.hero-heading {
font-size: 22vw;
text-align: center;
line-height: 0.9;
.h-underline {
background: none;
}
}
.hero-btn {
margin-top: 30px;
#media screen and (max-width: $lg-screen - 1px) {
&.btn-disabled {
pointer-events: none;
}
}
}
.hero-img {
background: transparent center center/cover no-repeat;
background-blend-mode: luminosity;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
transform: skew(#{$skew}deg);
transition: all $dur ease;
}
.left-side {
transform: skew(-#{$skew}deg);
margin-left: -#{$skew}vh;
margin-right: 1px;
.hero-content {
right: -#{$skew}vh;
margin: 0 #{$skew}vh 0 0;
}
.hero-btn {
margin-bottom: 20vh;
}
.hero-img {
right: -#{$skew}vh;
}
}
.right-side {
transform: skew(-#{$skew}deg);
margin-right: -#{$skew}vh;
margin-left: 1px;
.hero-content {
left: -#{$skew}vh;
}
.hero-heading {
margin-top: 20vh;
}
.hero-img {
left: -#{$skew}vh;
}
}
#include sm-screen {
.hero-heading {
font-size: 5rem;
}
}
#include lg-screen {
.left-side,
.right-side {
.hero-content {
margin: 0;
}
&:hover {
width: 70%;
.hero-content {
visibility: visible;
opacity: 1;
margin: 0 #{$skew}vh;
width: 50vw;
}
.hero-img {
opacity: 0.12;
background-color: $grey-01;
}
}
}
.left-side {
.hero-content {
margin-left: -#{$skew}vh;
}
.hero-btn {
margin-bottom: 0;
}
}
.right-side {
.hero-heading {
margin-top: 0;
}
}
}
#include xl-screen {
.hero-heading {
font-size: 6.5rem;
}
}
}
// ————————————————————————————————————————————————————————————
// CLIENT LOGOS
// ————————————————————————————————————————————————————————————
#client-logos {
padding: 15px 0;
position: relative;
&:before,
&:after {
content: '';
display: block;
position: absolute;
height: 100%;
width: 25%;
max-width: 100px;
top: 0;
z-index: 1;
pointer-events: none;
}
&:before {
left: 0;
background: linear-gradient(to right, white, white 15%, rgba(white, 0));
}
&:after {
right: 0;
background: linear-gradient(to left, white, white 15%, rgba(white, 0));
}
.glide__slides {
align-items: center;
}
.glide__slide {
display: flex;
align-items: center;
justify-content: center;
}
.client-logo {
display: block;
max-width: 100%;
max-height: 15vw;
}
#include screen-size(800px) {
padding: 25px 0;
.client-logo {
max-height: 70px;
max-width: 125px;
}
}
}
// ————————————————————————————————————————————————————————————
// INTRO SECTION
// ————————————————————————————————————————————————————————————
#intro-section {
background: $grey-01 center center/cover no-repeat;
padding: 60px 0;
color: white;
text-align: center;
.intro-heading {
margin-bottom: 30px;
}
.intro-text {
margin-bottom: 40px;
}
.icon-group {
list-style: none;
padding: 0;
margin-bottom: 50px;
}
.icon-wrapper {
display: block;
padding-top: 75px;
background: center top/65px no-repeat;
margin-bottom: 25px;
position: relative;
&:not(:last-of-type):after {
content: '';
display: block;
background: $blue-01;
opacity: 0.6;
width: 45px;
height: 1px;
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 0;
}
&:last-of-type {
margin-bottom: 0;
.icon-heading {
padding-bottom: 0;
}
}
.icon-heading {
padding-bottom: 25px;
}
}
#include md-screen {
.icon-group {
display: grid;
grid-template-columns: repeat(2, 1fr);
max-width: 600px;
margin-left: auto;
margin-right: auto;
position: relative;
&:before,
&:after {
content: '';
display: block;
background: $blue-01;
opacity: 0.6;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
&:before {
width: 1px;
height: 80%;
}
&:after {
width: 80%;
height: 1px;
}
}
.icon-wrapper {
margin: 30px;
&:not(:last-of-type):after {
display: none;
}
.icon-heading {
padding: 0;
}
}
}
#include xl-screen {
.icon-group {
display: flex;
max-width: none;
justify-content: center;
&:before,
&:after {
display: none;
}
}
.icon-wrapper {
margin: 0;
padding-right: 60px;
padding-left: 60px;
&:not(:last-of-type):after {
display: block;
height: 45px;
width: 1px;
left: 100%;
bottom: 50%;
transform: translate(0, 50%);
}
}
}
}
// ————————————————————————————————————————————————————————————
// FEATURED VIDEO
// ————————————————————————————————————————————————————————————
#featured-video {
position: relative;
.video-poster {
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
z-index: 4;
#include flex-center;
text-align: center;
// background: url(../assets/images/video-poster.jpg) center bottom/cover no-repeat $orange-01;
}
.fancy-title {
display: none;
}
h2 {
display: none;
}
.play-video-btn {
// #extend .btn-text;
cursor: pointer;
position: relative;
display: inline-flex;
flex-direction: column;
align-items: center;
font-size: 1rem;
margin-top: 26px;
&:before {
content: "";
width: 0px;
height: 0px;
border-top: 14px solid transparent;
border-bottom: 14px solid transparent;
border-left: 26px solid white;
margin-bottom: 32px;
margin-right: -9px;
}
&:after {
content: "";
position: absolute;
width: 75px;
height: 75px;
border-radius: 50%;
border: 2px solid white;
transition: all 0.2s ease;
top: -27px;
left: 50%;
transform: translateX(-50%);
}
&:hover,
&:focus {
&:after {
transform: translateX(-50%) scale(1.1);
}
}
}
#include sm-screen {
h2 {
display: block;
color: white;
font-size: 10vw;
margin-bottom: 5%;
}
}
#include md-screen {
.fancy-title {
display: inline-block;
}
}
#include xl-screen {
h2 {
font-size: 8rem;
}
}
}
}
I was able to get this working using a single class name with all the #includes contained therein. This renders each #media query block in the linear order in which you are declaring it.
#hero-section {
.hero-heading {
font-size: 2rem;
#include sm-screen {
font-size: 5rem;
}
#include lg-screen {
font-size: 6.5rem;
}
#include xl-screen {
font-size: 6.5rem;
}
}
}
#intro-section {
.icon-group {
list-style: none;
padding: 0;
margin-bottom: 50px;
#include md-screen {
display: grid;
grid-template-columns: repeat(2, 1fr);
max-width: 600px;
margin-left: auto;
margin-right: auto;
position: relative;
}
#include xl-screen {
display: flex;
max-width: none;
justify-content: center;
}
}
}
jsFiddle

Search on mobile is driving me insane. Mag glass on click search box

I have some code below that i feel like should work just well but it appears to be breaking when i deploy.
All the code here: https://jsfiddle.net/82pmjqgn/
The search blob box just appearing over the content and not hidden. It should be hidden until it's clicked and then appear underneath. Here are some images for more reference. Any help would be greatly appreciated.
// Search
.block-search .amsearch-close,
.block-search .amsearch-loupe {
top: 43px;
}
#media (min-width: 768px) {
.block-search .form .search-autocomplete {
top: 43px;
}
.block-search .amsearch-close,
.block-search .amsearch-loupe {
top: 30%;
}
}
.form .search-autocomplete {
top: 88px;
margin-left: 0;
margin-right: 0;
}
.block-search {
.label {
display: inline-block;
float: none;
}
input {
border-radius: 50px;
height: 40px;
padding-left: 20px;
padding-right: 44px;
}
.control {
border-top: 0;
clear:none;
margin: 0;
padding: 0;
}
.action.search {
background: #5a5a5a;
border-radius: 50px;
height: 34px;
right: 4px;
top: 3px;
width: 34px;
}
.search-autocomplete ul:not(:empty) {
border-color: #c2c2c2;
border-top: 1px solid #c2c2c2;
}
.search-autocomplete ul {
li {
border-color: #c2c2c2;
&:hover {
background-color: #e5e5e5;
}
.amount {
color: #444;
}
}
.selected {
background-color: #e5e5e5;
}
}
}
This is how it currently looks.
How it should look.

Ionic 2 overriding sass items

I have an Ionic 2 app, that has an ion-searchbar.
<div id="search" class="search-input-keyword">
<ion-searchbar class="ion-searchtext" id="ion-searchtext" [(ngModel)]="searchQueryText" (ionFocus)="focusSearch($event)"
(change)="onChangeText($event)" (ionClear)="onCancelText($event)" (ionInput)="onInputText($event)" placeholder="{{jobType === 0 ? favourite ? 'Market Favourites' : 'Market' : favourite ? 'Postings Favourites' : 'Postings'}}"
debounce="1"></ion-searchbar>
</div>
I would like to change the input text color, and the magnifying glass icon color to #fff.
I have read here, that in order to do so, you need to change the sass variables.
I have tried the following in variables.scss:
$colors: (
primary: #009196,
secondary: #32db64,
danger: #f53d3d,
light: #f4f4f4,
dark: #222
);
$searchbar-ios-input-text-color: #fff;
$searchbar-ios-input-search-icon-color: #fff;
But there is no effect.
However, the following line does have an effect:
$text-color: #000099;
So I guess that the $searchbar-ios-input-text-color: #fff; and $searchbar-ios-input-search-icon-color: #fff; are the issue.
Question
Can anyone please advise how to change the font and icon colours?
Thanks
UPDATE
Here is some more code samples:
css
.toolbar-background-md {
background: linear-gradient(to bottom right, #00a7ad, #004547);
}
.bar-button-default-md {
color: #fff;
}
.searchbar-md .searchbar-input {
background: linear-gradient(to bottom right, #009da3, #018287);
//background-color: #009196;
}
input::-webkit-input-placeholder {
color: red ;
}
input:-moz-placeholder {
color: red ;
}
input:-ms-input-placeholder { /* IE10+ */
color: red ;
}
.toolbar-title-md {
padding: 0 12px;
font-size: 2rem;
font-weight: 500;
color: #fff;
}
.close-filters {
color: #fff;
width: 52px;
font-size: 22px;
background-color: transparent;
box-shadow: none !important;
}
.slide-fade-hide {
transition: 1s all linear;
opacity: 0;
height: 0;
position: absolute;
top: 0;
z-index: -10;
}
.slide-fade-show {
transition: all 1.2s ease-in;
opacity: 1;
height: 2em;
z-index: 1;
}
.list-md {
margin: 0px 0px 0px 0;
}
.scroll-up {
margin-top: 20px;
}
.menu-title {
padding: 1px 95px 1px 10px;
}
.menu-toolbar {
padding: 35px;
}
.menu-content {
position: relative !important;
}
.item-search-wanted {
padding-left: 1px;
}
.item-search-offered {
padding-left: 1px;
}
.job-content-offered {
background-color: white !important;
}
.job-content-wanted {
background-color: white !important;
}
.search-button-star {
background-color: #009196;
}
.search-input-keyword {
width: 125%;
display: flex;
}
.search-input {
width: 125%;
}
.toolbar-content {
display: flex;
}
.extra-search-col {
padding: 0px;
}
ion-col {
padding: 2px;
}
ion-title {
z-index: 11;
}
ion-avatar img {
border-radius: 2.8rem;
max-height: 5.6rem;
max-width: 5.6rem;
}
.small-text-search {
font-size: 75% !important;
color: grey !important;
padding-top: 4px;
}
.small-text-search-desc {
font-size: 85%;
}
.small-text-search-rating {
padding-top: inherit;
padding-left: inherit;
}
.small-text-search-starrating {
padding-top: 2px;
font-size: 100% ! important;
}
.search-category {
float: right;
}
.job-tite {
width: 250px;
}
.job-timestamp {
white-space: nowrap;
}
.search-rating {
float: left;
}
.search-popover-button {
width: 75px;
height: 75px;
}
.button-icon-only ion-icon.search-popover-icon {
font-size: 2.8em;
}
.filter-image {
-webkit-filter : hue-rotate(-30deg) opacity(100%);
filter : hue-rotate(-30deg) opacity(100%);
}
.icon-text {
padding-left: 5px;
padding-bottom: 3px;
}
.icon-text-no {
padding-left: 5px;
}

Getting CSS error when testing Rails app with Capybara

I'm getting an error I can't correct when testing with Rspec and Capybara in my rails app.
Failure/Error: visit('/')
ActionView::Template::Error:
Invalid CSS after " text-indent:": expected expression (e.g. 1px, bold), was "}"
It says the error is occurring in app/assets/stylesheets/application.css. I have nothing in there as of yet and cannot locate the issue. I think the error(based on what I've read) may have something to do with my css or scss file extensions. I've tinkered with them a bit with no change so here I am asking for help.
My registration_spec.rb
require 'spec_helper'
describe "Signing Up" do
it "allows a user to sign up for the site and creates the object in the database" do
expect(User.count).to eq(0)
visit('/')
expect(page).to have_content("Sign Up")
click_link "Sign Up"
fill_in "First Name", with: "John"
fill_in "Last Name", with: "Smith"
fill_in "Password", with: "password123"
fill_in "Password Confirmation", with: "password123"
click_button "Sign Up"
expect(User.count).to eq(1)
end
end
Here's my style.css
#about {
background: #efeddf;
padding: 20px;
border: 2px solid #57645d;
}
#about-content {
text-align: left;
}
#article-image {
float: left;
}
#article-links {
list-style-type: none;
}
#article-links a {
font-weight: bold;
color: #3f4944;
text-decoration: none;
}
#article-links img {
margin-right: 20px;
}
#article-show {
background: #efeddf;
padding: 20px;
border: 2px solid #57645d;
}
.bit-5 {
background: white;
padding: 20px;
text-align: center;
border: 2px solid #57645d;
color: #606e67;
float: right;
display: block;
}
.bit-75 {
background: white;
padding: 20px;
text-align: left;
border: 5px solid #57645d;
color: #606e67;
text-indent:
}
.clearfooter {
height: 330px;
clear: both;
}
#contact {
background: #efeddf;
padding: 20px;
border: 2px solid #57645d;
}
#contact-content {
text-align: left;
}
footer {
position: relative;
width: 100%;
height: 330px;
background: #3f4944;
}
html,body {
background: #efeddf;
height: 100%;
}
#title a {
color: #555;
text-decoration: none !important;
}
#main-header {
height: 180px;
background: #57645d;
position: fixed;
top: 0px;
margin: auto;
z-index: 100000;
width: 100%;
}
#main-nav ul {
text-align: center;
margin-top: 120px;
}
#main-nav ul li {
padding-left: 10px;
display: inline-block;
margin-right: 20px;
}
#main-nav ul li a {
text-decoration: none;
color: #efeddf;
font-size: x-large;
}
#new-article-path a {
font-weight: bold;
color: #3f4944;
}
#recent-article li {
list-style: none;
}
#recent-article li a {
color: #57645d;
text-decoration: none;
}
My grid(lemonade.css)
*,
*:after,
*:before {
margin: 0;
padding: 0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box
}
/* Set the width of the grid */
.frame {
margin: auto;
width: 1100px;
margin-top: 200px;
min-height: 100%;
margin-bottom: -330px;
position: relative;
}
/* Attribute selector */
[class*='bit-'] {
float: left;
padding: 0.3em;
}
/* Floats last ".bit-" to the right */
[class*='bit-']:last-of-type {
float: right
}
/* Clearfix */
.frame:after {
content: "";
display: table;
clear: both
}
/* Main Widths */
.bit-1 { width: 100% }
.bit-2 { width: 50% }
.bit-3 { width: 33.33% }
.bit-4 { width: 25% }
.bit-5 { width: 20% }
.bit-6 { width: 16.6666666667% }
.bit-7 { width: 14.2857142857% }
.bit-8 { width: 12.5% }
.bit-9 { width: 11.1111111111% }
.bit-10 { width: 10% }
.bit-11 { width: 9.09090909091% }
.bit-12 { width: 8.33% }
.bit-75 { width:75%}
.bit-25 { width:25%}
/* Landscape mobile & down */
#media (max-width: 30em) {
.bit-1,
.bit-2,
.bit-3,
.bit-4,
.bit-5,
.bit-6,
.bit-7,
.bit-8,
.bit-9,
.bit-10,
.bit-11,
.bit-12 {
width: 100%;
}
}
/* Portrait tablet to landscape */
#media (min-width: 30em) and (max-width: 50em) {
.bit-4,
.bit-6,
.bit-8,
.bit-10,
.bit-12 {
width: 50%
}
.bit-1,
.bit-2,
.bit-3,
.bit-5,
.bit-7,
.bit-9,
.bit-11 {
width: 100%
}
}
/* Landscape to small desktop */
#media (min-width: 50em) and (max-width: 68.750em) {
.bit-2,
.bit-7 {
width: 100%
}
.bit-4,
.bit-8,
.bit-10,
.bit-12 {
width: 50%
}
}
Im still pretty new at all this so any help/and or criticisms would be appreciated. Thanks.
Your style.css is invalid which is causing following error:
Failure/Error: visit('/') ActionView::Template::Error: Invalid CSS
after " text-indent:": expected expression (e.g. 1px, bold), was "}"
In your style.css, for class .bit-75, you forgot to set value of text-indent property
.bit-75 {
background: white;
padding: 20px;
text-align: left;
border: 5px solid #57645d;
color: #606e67;
text-indent: // <-- set a value here for eg : 10px;
}

Resources