octopusUI 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,11 @@
1
+ require "octopusUI/version"
2
+
3
+ module OctopusUI
4
+
5
+ stylesheets_path = File.expand_path(File.join(File.dirname(__FILE__), '..', 'stylesheets'))
6
+
7
+ ENV['SASS_PATH'] ||= ''
8
+
9
+ ENV['SASS_PATH'] += File::PATH_SEPARATOR + stylesheets_path
10
+
11
+ end
@@ -0,0 +1,3 @@
1
+ module OctopusUI
2
+ VERSION = "0.1.1"
3
+ end
@@ -0,0 +1,2 @@
1
+ @import "octopus/setting";
2
+ @import "octopus/core";
@@ -0,0 +1 @@
1
+ @import "core/reset";
@@ -0,0 +1,15 @@
1
+ // setting font
2
+
3
+ $op-ft-yahei : Microsoft YaHei;
4
+ $op-ft-songti : SimSun;
5
+ $op-ft-heiti : SimHei;
6
+
7
+ // setting color
8
+
9
+ $op-c-gray : #666666 !default;
10
+ $op-c-gray-dark : #333333 !default;
11
+ $op-c-gray-light : #999999 !default;
12
+
13
+ $op-c-blue : #0C6AD4 !default;
14
+
15
+ $op-c-hover : #ff3300 !default;
@@ -0,0 +1,65 @@
1
+ @mixin op-reset($option:null){
2
+
3
+ $_op-option-reset : (
4
+ body-font : "12px/1.5 #{$op-ft-songti},Arial,sans-serif",
5
+ body-background-color : #ffffff,
6
+ body-color : $op-c-gray,
7
+ a-color : $op-c-gray-dark,
8
+ a-color-hover : $op-c-hover
9
+ );
10
+
11
+ @if type-of($option) == map{
12
+ $_op-option-reset : map-merge($_op-option-reset,$option);
13
+ }
14
+
15
+ /*reset*/
16
+ html,body,p,dl,dt,dd,table,td,th,input,img,form,div,span,ul,ol,li,h1,h2,h3,h4,h5,h6,select,fieldset,button,sub,sup,textarea{
17
+ margin:0;
18
+ padding:0;
19
+ }
20
+ body{
21
+ font:unquote(map-get($_op-option-reset,body-font));
22
+ background-color:map-get($_op-option-reset,body-background-color);
23
+ color:map-get($_op-option-reset,body-color);
24
+ }
25
+ table{
26
+ border-collapse:collapse;
27
+ border-spacing:0;
28
+ }
29
+ h1,h2,h3,h4,h5,h6{
30
+ font-size:100%;
31
+ }
32
+ img,iframe{
33
+ vertical-align:top;
34
+ border:0 none;
35
+ }
36
+ ul,ol{
37
+ list-style:none outside none;
38
+ }
39
+ .clearfix:after{
40
+ content:"";
41
+ display:block;
42
+ clear:both;
43
+ }
44
+ .clearfix{
45
+ *zoom:1;
46
+ }
47
+ a{
48
+ color:map-get($_op-option-reset,a-color);
49
+ text-decoration:none;
50
+ }
51
+ a:hover{
52
+ color:map-get($_op-option-reset,a-color-hover);
53
+ text-decoration:underline;
54
+ }
55
+ :focus{
56
+ outline:0;
57
+ }
58
+ .clear{
59
+ clear:both;
60
+ overflow:hidden;
61
+ font-size:0;
62
+ height:0;
63
+ line-height:0;
64
+ }
65
+ }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopusUI
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - octopusUI
@@ -27,8 +27,13 @@ extensions: []
27
27
 
28
28
  extra_rdoc_files: []
29
29
 
30
- files: []
31
-
30
+ files:
31
+ - lib/octopusUI.rb
32
+ - lib/octopusUI/version.rb
33
+ - stylesheets/_octopus.scss
34
+ - stylesheets/octopus/_core.scss
35
+ - stylesheets/octopus/_setting.scss
36
+ - stylesheets/octopus/core/_reset.scss
32
37
  homepage: ""
33
38
  licenses:
34
39
  - MIT