Skip to content

Commit

Permalink
Rewrite scss files according to scss-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonTenko committed Apr 11, 2017
1 parent 930abd0 commit 2080673
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 40 deletions.
42 changes: 20 additions & 22 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
/*
* 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, vendor/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.
*
// 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, vendor/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.
//

*= require tether
*= require font-awesome
*= require_tree .
*= require_self
*/
//= require tether
//= require font-awesome
//= require_tree .
//= require_self

@import "bootstrap";
@import "font-awesome";
@import "session-access";
@import "user-bar";
@import "bets/display-bet";
@import 'bootstrap';
@import 'font-awesome';
@import 'session-access';
@import 'user-bar';
@import 'bets/display-bet';
17 changes: 11 additions & 6 deletions app/assets/stylesheets/bets/display-bet.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
.display-bet{
.card-header{
background-color: #292b2c;
$white-colour: #fff;
$display-bet-colour: #292b2c;

.display-bet {
.card-header {
background-color: $display-bet-colour;
}
.card-header-text{
color: white;

.card-header-text {
color: $white-colour;
}
.btn-full-width{

.btn-full-width {
width: 100%;
}
}
3 changes: 3 additions & 0 deletions app/assets/stylesheets/bets/resolve-bet.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.resolve-bet-btn {
width: 100%;
}
6 changes: 3 additions & 3 deletions app/assets/stylesheets/bets/view-all-bets.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.view-all-bets{
.view-button-text{
font-size: 0.8em;
.view-all-bets {
.view-button-text {
font-size: .8em;
}
}
16 changes: 9 additions & 7 deletions app/assets/stylesheets/session-access.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
.sess-label{
width: 35%;
.sess-label {
float: left;
width: 35%;
}
.sess-input-field{
width: 65%;
height: 35px;

.sess-input-field {
float: left;
}
.sess-button{
height: 35px;
width: 65%;
}

.sess-button {
margin: auto 0 auto 35%;
width: 65%;
}
4 changes: 2 additions & 2 deletions app/assets/stylesheets/user-bar.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.user-bar{
img{
.user-bar {
img {
width: 50px;
}
}

0 comments on commit 2080673

Please sign in to comment.