Sha256: dffd400e549178c3d052612eaa808f8fd69895d7ec7c9861e3046a33c87b15ea

Contents?: true

Size: 1.57 KB

Versions: 8

Compression:

Stored size: 1.57 KB

Contents

create_file 'public/stylesheets/sass/admin.scss' do
<<-FILE
@import "reset";
@import "common";
@mixin layout_base {
  @include reset;
  @include container;
  @include user_admin_nav;
  @include main_admin_nav;
  //uncomment for a handy layout guide
  @include layout_guide;
}

@mixin container($container_size: 950px) {
    #container {
	  width: $container_size;
	  clear:both;
      padding: 0 20px;
      min-height: 100%;
      height: auto !important;
      height: 100%;
      margin: 0 auto -80px;
    }
	#main_admin_header {
	  width: $container_size;
      height: 60px;
      @include clear_left;
      h1 {
        float: left;
        padding: 20px 0 0 0;
        font-size: 24px;
        font-weight: bold;
      }
    }
	#content {
      width: $container_size;
      @include clear_left;
      padding: 10px 0 20px 0;
    }
    #main_admin_footer, #pusher {
      height: 80px;
      clear:both;
    }
}

@mixin user_admin_nav {
  #user_admin_nav {
    float: right;
    padding: 20px 0 0 0;
  }
}

@mixin main_admin_nav {
  #main_admin_nav {
    width: 950px;
	@include clear_left;
    padding: 10px 0;
    ul {
	  @include clear_left;
      li {
        float: left;
        padding: 0 15px 0 0;
      }
    }
  }
}

@mixin layout_guide {
  #container { background-color: #e8e6e6; }
  #main_admin_header { background-color: #f7dddd; }
  #main_admin_nav { background-color: #f4ddf7; }
  #content { background-color: #f2f7dd; }
  #main_admin_footer .inner { background-color: #ddf7e7; }
}

@include layout_base;
FILE
end

run 'sass public/stylesheets/sass/admin.scss public/stylesheets/admin.css'

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
prologue-0.4.0 templates/admin/sass.rb
prologue-0.3.11 templates/admin/sass.rb
mologue-0.0.1 templates/admin/sass.rb
prologue-0.3.10 templates/admin/sass.rb
prologue-0.3.9 templates/admin/sass.rb
prologue-0.3.7 templates/admin/sass.rb
prologue-0.3.6 templates/admin/sass.rb
prologue-0.3.0 templates/admin/sass.rb