Skip to content

Commit

Permalink
started css prep
Browse files Browse the repository at this point in the history
  • Loading branch information
atruskie committed Jan 30, 2014
1 parent 7bc18fe commit 1edee93
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/sass/application.tpl.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,20 @@ $IMAGE_ASSET_PATH: '<%= build_configs.current.siteDir %>';
* First, we include jlong's Twitter Bootstrap SCSS files. Only the ones used in the
* project should be imported as the rest are just wasting space.
*/

@import '../../vendor/sass-bootstrap/lib/bootstrap.scss';



@import "base.scss";


@import "layout";


@import "time_formats";

@import "touch/touch";

// TODO: create someway to automatically import files
//@import "partials/*";

/*
C:\Work\GitHub\baw-client\src\sass [master +0 ~1 -0]> ls ../app/ -Recurse -Include "*.scss" | Resolve-Path -Relative | %{ '@import "' + $_ + '";' } | % {$_ -replace '\\', '/'} | % {$_ -replace '/_(.*).scss', '/$1'} | Out-Clipboard
*/

@import "../app/audioControl/_volumeControl.scss";
@import "../app/annotationViewer/annotation_viewer";
@import "../app/audioEvents/audio_events";
Expand Down
86 changes: 86 additions & 0 deletions src/sass/touch/_touch.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@

$btn-default-color: #333;
$handle-default-bg: #fff;
$handle-border-color: darken($handle-default-bg, 5%);

@mixin size($size) {
width: $size;
height: $size;
@include rounded-corners($size / 2.0);
}

.touch-handle-default {
@include size(6px);
}

.touch-handle-large {
@include size(6px);
}

.touch-handle-largest {
@include size(6px);
}


.touch-handle {
background-color: $handle-default-bg;
border: solid 1px $handle-border-color;

@extend .touch-handle-default;

position: relative;
}

@mixin curved-tail {
content: "";
position: absolute;
border: 0 solid transparent;
border-top: 3px solid red;
border-radius: 20px 0 0 0;
top: -12px;
left: -9px;
width: 12px;
height: 12px;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-o-transform: rotate(45deg);
}

.touch-handle-tail {

}

.touch-handle-double-tail {

}



.grab-top-left {
@extend .touch-handle;

top:0;
left:0;
}

.grab-top-right {
@extend .touch-handle;

top:0;
right:0;
}

.grab-bottom-left {
@extend .touch-handle;

bottom:0;
left:0;
}

.grab-bottom-right {
@extend .touch-handle;

bottom:0;
right:0;
}

0 comments on commit 1edee93

Please sign in to comment.