meedan-bootstrap 0.0.3
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.
- data/README.mkdn +7 -0
- data/lib/meedan-bootstrap.rb +3 -0
- data/stylesheets/_autorefresh.scss +3 -0
- data/stylesheets/_base.scss +29 -0
- data/stylesheets/_bevels.scss +17 -0
- data/stylesheets/_bundles.scss +46 -0
- data/stylesheets/_buttons.scss +34 -0
- data/stylesheets/_cab.scss +91 -0
- data/stylesheets/_calendar.scss +69 -0
- data/stylesheets/_colors.scss +93 -0
- data/stylesheets/_desk.scss +333 -0
- data/stylesheets/_forms.scss +109 -0
- data/stylesheets/_icons.scss +304 -0
- data/stylesheets/_labels.scss +64 -0
- data/stylesheets/_media_object.scss +141 -0
- data/stylesheets/_messages.scss +19 -0
- data/stylesheets/_navigation.scss +30 -0
- data/stylesheets/_pagination.scss +20 -0
- data/stylesheets/_pointer.scss +14 -0
- data/stylesheets/_profile.scss +25 -0
- data/stylesheets/_reset.scss +12 -0
- data/stylesheets/_respond_to.scss +24 -0
- data/stylesheets/_syntax.scss +205 -0
- data/stylesheets/_tables.scss +18 -0
- data/stylesheets/_tabs.scss +29 -0
- data/stylesheets/_tooltips.scss +180 -0
- data/stylesheets/_typography.scss +163 -0
- data/stylesheets/meedan_bootstrap.scss +51 -0
- data/templates/project/foo_theme/starter-theme.scss +85 -0
- data/templates/project/foo_theme/style-ar.scss +2 -0
- data/templates/project/foo_theme/style-en.scss +2 -0
- data/templates/project/manifest.rb +15 -0
- metadata +109 -0
@@ -0,0 +1,141 @@
|
|
1
|
+
|
2
|
+
/* =================================================================== */
|
3
|
+
/* = Mixin: Media Object */
|
4
|
+
/* =================================================================== */
|
5
|
+
|
6
|
+
@mixin media-object($media-object-width: $primary-cols, $context: $primary-cols) {
|
7
|
+
position: relative;
|
8
|
+
@include clearfix;
|
9
|
+
@include columns($media-object-width, $context);
|
10
|
+
@include trailer(0.5, $medium-font-size);
|
11
|
+
@include trailer(0.5, $medium-font-size, padding);
|
12
|
+
|
13
|
+
// Width hacks to be revised
|
14
|
+
// need to update the media objects to get widths right — CGB may 30
|
15
|
+
img, embed, iframe {
|
16
|
+
max-width: 100%;
|
17
|
+
clear: both;
|
18
|
+
float: $from-direction;
|
19
|
+
|
20
|
+
}
|
21
|
+
iframe {
|
22
|
+
width: 100%;
|
23
|
+
}
|
24
|
+
&.video iframe {
|
25
|
+
height: auto;
|
26
|
+
}
|
27
|
+
|
28
|
+
// non grid padding
|
29
|
+
.description p, .report-stats {
|
30
|
+
padding: 2%;
|
31
|
+
list-style-type: none;
|
32
|
+
}
|
33
|
+
|
34
|
+
/* ================================The row across the top of the report */
|
35
|
+
.byline {
|
36
|
+
width: 100%;
|
37
|
+
|
38
|
+
&>.shortlink, &>img, &>span, &>time {
|
39
|
+
float: $from-direction;
|
40
|
+
display: inline-block;
|
41
|
+
margin-#{opposite-position($from-direction)}: 1%;
|
42
|
+
}
|
43
|
+
|
44
|
+
img.avatar-image {
|
45
|
+
width: rhythm(1);
|
46
|
+
height: rhythm(1);
|
47
|
+
margin-#{$from-direction}: 1%;
|
48
|
+
}
|
49
|
+
|
50
|
+
time {
|
51
|
+
a {
|
52
|
+
text-decoration: none;
|
53
|
+
&:hover {
|
54
|
+
text-decoration: underline;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
.shortlink {
|
60
|
+
width: auto;
|
61
|
+
background: $bright-blue;
|
62
|
+
@include border-radius(10px);
|
63
|
+
padding-#{opposite-position($from-direction)}: 3%;
|
64
|
+
padding-#{$from-direction}: 1%;
|
65
|
+
height: 22px;
|
66
|
+
.icon {
|
67
|
+
width: 20px;
|
68
|
+
height: 20px;
|
69
|
+
background: url("/images/iconic-icons/white/link_12x12.png") center center no-repeat;
|
70
|
+
display: inline-block;
|
71
|
+
float: $from-direction;
|
72
|
+
}
|
73
|
+
a {
|
74
|
+
color: white;
|
75
|
+
padding: 0;
|
76
|
+
@include adjust-font-size-to($xsmall-font-size);
|
77
|
+
@include en-sans-font-stack;
|
78
|
+
float: $from-direction;
|
79
|
+
text-decoration: none;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
$description-color: white;
|
85
|
+
.description {
|
86
|
+
@include columns($media-object-width, $media-object-width);
|
87
|
+
background: $description-color;
|
88
|
+
@include leader-and-trailer(1, $large-font-size);
|
89
|
+
position: relative;
|
90
|
+
@include pointer-content($description-color);
|
91
|
+
}
|
92
|
+
|
93
|
+
.inner {
|
94
|
+
|
95
|
+
// label
|
96
|
+
.label-wrapper {
|
97
|
+
float: opposite-position($from-direction);
|
98
|
+
background: white;
|
99
|
+
margin: 0;
|
100
|
+
@include border-top-radius;
|
101
|
+
@include border-bottom-radius(0);
|
102
|
+
.custom-label {
|
103
|
+
}
|
104
|
+
.text {
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
// buttons
|
109
|
+
.contextual-action-buttons {
|
110
|
+
padding-#{$from-direction}: 2%;
|
111
|
+
float: $from-direction;
|
112
|
+
&:last-of-type {
|
113
|
+
float: opposite-position($from-direction);
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
// media content
|
118
|
+
.content {
|
119
|
+
background: white;
|
120
|
+
display: inline-block;
|
121
|
+
padding: 2%;
|
122
|
+
width: 96%;
|
123
|
+
position: relative;
|
124
|
+
}
|
125
|
+
|
126
|
+
//tweet media content
|
127
|
+
.tweet {
|
128
|
+
color: $twitter-blue;
|
129
|
+
@include en-sans-font-stack;
|
130
|
+
@include adjust-font-size-to($medium-large-font-size);
|
131
|
+
@include leader-and-trailer(1, $medium-large-font-size, 1);
|
132
|
+
}
|
133
|
+
}
|
134
|
+
.metadata {
|
135
|
+
@include columns($media-object-width, $media-object-width);
|
136
|
+
@include leader-and-trailer(0.5, $medium-font-size);
|
137
|
+
@include en-sans-font-stack;
|
138
|
+
color: $darker-gray;
|
139
|
+
@include adjust-font-size-to($small-font-size);
|
140
|
+
}
|
141
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
@mixin messages($color: $light-gray, $adjustment: "lighten", $font-size: $medium-font-size) {
|
2
|
+
margin: 0;
|
3
|
+
padding-left: rhythm(1/2, $font-size);
|
4
|
+
padding-right: rhythm(1/2, $font-size);
|
5
|
+
margin-top: rhythm(1, $font-size);
|
6
|
+
margin-bottom: rhythm(1, $font-size);
|
7
|
+
color: adjust_hue(darken($color, 50%), -5%);
|
8
|
+
@include adjust-font-size-to($font-size);
|
9
|
+
@include leading-border(1px, 1, $font-size);
|
10
|
+
@include trailing-border(1px, 1, $font-size);
|
11
|
+
border-color: adjust_hue(darken($color, 20%), -5%);
|
12
|
+
|
13
|
+
@if $adjustment == "lighten" {
|
14
|
+
background: adjust_hue(lighten($color, 20%), -5%);
|
15
|
+
}
|
16
|
+
@else if $adjustment == "darken" {
|
17
|
+
background: adjust_hue(darken($color, 20%), -5%);
|
18
|
+
}
|
19
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
// simple grid list of actions
|
2
|
+
@mixin checkdesk-navigation {
|
3
|
+
@include columns(2, $secondary-cols);
|
4
|
+
@include omega;
|
5
|
+
@include opacity(0.5);
|
6
|
+
&:hover { @include opacity(1); }
|
7
|
+
@include adjust-font-size-to($small-font-size);
|
8
|
+
@include en-sans-font-stack;
|
9
|
+
margin: 0;
|
10
|
+
background: $gray;
|
11
|
+
li {
|
12
|
+
list-style-type: none;
|
13
|
+
float: $from-direction;
|
14
|
+
margin-#{$from-direction}: 2%;
|
15
|
+
a {
|
16
|
+
background: $light-gray;
|
17
|
+
padding-left: 4px;
|
18
|
+
padding-right: 4px;
|
19
|
+
}
|
20
|
+
&:hover {
|
21
|
+
a {
|
22
|
+
color: black;
|
23
|
+
text-decoration: none;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
.selected {
|
28
|
+
font-weight: bold;
|
29
|
+
}
|
30
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
|
2
|
+
@mixin pagination($font-size: 19px) {
|
3
|
+
@include full;
|
4
|
+
@include adjust-font-size-to($font-size);
|
5
|
+
@include leader(1, $font-size);
|
6
|
+
@include trailer(1, $font-size);
|
7
|
+
background: $light-gray;
|
8
|
+
text-align: center;
|
9
|
+
li {
|
10
|
+
margin: 0;
|
11
|
+
padding: 0;
|
12
|
+
display: inline;
|
13
|
+
a {
|
14
|
+
font-weight: bold;
|
15
|
+
text-decoration: none;
|
16
|
+
background: $light-gray;
|
17
|
+
padding: 0 rhythm(1, $font-size);
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
// generate a CSS3 pointer using borders to draw triangles
|
2
|
+
@mixin pointer-content($color: $buttermilk-yellow, $size: 15px, $shape: transparent transparent $color transparent, $top: -$size * 2, $side: 2%) {
|
3
|
+
&:before {
|
4
|
+
content: ' ';
|
5
|
+
position: absolute;
|
6
|
+
width: 0;
|
7
|
+
height: 0;
|
8
|
+
#{$from-direction}: $side;
|
9
|
+
top: $top;
|
10
|
+
border: $size solid;
|
11
|
+
border-color: $shape;
|
12
|
+
z-index: 100;
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/* ================ */
|
2
|
+
/* = user profile = */
|
3
|
+
/* ================ */
|
4
|
+
@mixin profile() {
|
5
|
+
float: $from-direction;
|
6
|
+
padding: $gutter;
|
7
|
+
|
8
|
+
// membership history
|
9
|
+
.user-member {
|
10
|
+
|
11
|
+
}
|
12
|
+
|
13
|
+
// twitter integration
|
14
|
+
div.twitter-info {
|
15
|
+
}
|
16
|
+
|
17
|
+
// user stats
|
18
|
+
.user-stats {
|
19
|
+
}
|
20
|
+
|
21
|
+
// user picture
|
22
|
+
.picture {
|
23
|
+
padding: $gutter $gutter*2 0 0;
|
24
|
+
}
|
25
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
// Media query breakpoints
|
2
|
+
// See http://thesassway.com/intermediate/responsive-web-design-in-sass-using-media-queries-in-sass-32
|
3
|
+
$break-small: 350px;
|
4
|
+
$break-large: 1180px;
|
5
|
+
|
6
|
+
@mixin respond-to($media) {
|
7
|
+
@if $media == "small-screens" {
|
8
|
+
@media only screen and (max-width: $break-small) { @content; }
|
9
|
+
}
|
10
|
+
@else if $media == "medium-screens" {
|
11
|
+
@media only screen and (min-width: $break-small + 1) and (max-width: $break-large - 1) { @content; }
|
12
|
+
}
|
13
|
+
@else if $media == "large-screens" {
|
14
|
+
@media only screen and (min-width: $break-large) { @content; }
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
|
19
|
+
// Now we can use three customizations on any element:
|
20
|
+
// element {
|
21
|
+
// @include respond-to(handhelds) { width: 100% ;}
|
22
|
+
// @include respond-to(medium-screens) { width: 125px; }
|
23
|
+
// @include respond-to(wide-screens) { float: none; }
|
24
|
+
// }
|
@@ -0,0 +1,205 @@
|
|
1
|
+
|
2
|
+
// syntax overrides to add a scss style.
|
3
|
+
// In the markup use the <pre>:::css syntax.
|
4
|
+
// We just tweak it slightly to better show sass.
|
5
|
+
// This is included at the end of the mixin and overrides the coderay theme
|
6
|
+
@mixin scss {
|
7
|
+
color: aqua;
|
8
|
+
position: relative;
|
9
|
+
|
10
|
+
.constant { font-weight: normal; }
|
11
|
+
.predefined {color: yellow;}
|
12
|
+
.directive { color:pink; }
|
13
|
+
.error { color:#9df393;}
|
14
|
+
|
15
|
+
.value { color: #9df393; }
|
16
|
+
.type { color: white; }
|
17
|
+
.key {
|
18
|
+
color: $key;
|
19
|
+
.char { color: $key }
|
20
|
+
.delimiter { color: $key }
|
21
|
+
}
|
22
|
+
|
23
|
+
.string {
|
24
|
+
color: aqua!important;
|
25
|
+
.delimiter {
|
26
|
+
color: aqua;
|
27
|
+
}
|
28
|
+
.content {
|
29
|
+
color: aqua;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
.tag {
|
33
|
+
color: aqua;
|
34
|
+
}
|
35
|
+
.attribute-name {
|
36
|
+
color: aqua;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
// This coderay theme is based on https://gist.github.com/1250944
|
41
|
+
@mixin syntax() {
|
42
|
+
|
43
|
+
overflow-x: auto;
|
44
|
+
|
45
|
+
&.bad {
|
46
|
+
background-color: darken(red, 30%)!important;
|
47
|
+
}
|
48
|
+
|
49
|
+
direction: ltr!important; // code is always ltr in our examples
|
50
|
+
background-color: $syntax-background;
|
51
|
+
color: $syntax-foreground;
|
52
|
+
font-weight: normal;
|
53
|
+
letter-spacing: 0.0em;
|
54
|
+
font-family: monospace, Helvetica, sans-serif;
|
55
|
+
@include adjust-font-size-to($small-font-size);
|
56
|
+
|
57
|
+
@include full;
|
58
|
+
@include pad(1/2, 1/2);
|
59
|
+
@include leader-and-trailer(1, $small-font-size);
|
60
|
+
@include leader-and-trailer(1, $small-font-size, 1);
|
61
|
+
|
62
|
+
* {
|
63
|
+
text-indent: 0!important;
|
64
|
+
text-align: $from-direction!important;
|
65
|
+
padding: 0!important;
|
66
|
+
margin: 0!important;
|
67
|
+
letter-spacing: 0!important;
|
68
|
+
}
|
69
|
+
|
70
|
+
.line-numbers {
|
71
|
+
background-color: $line-no-background;
|
72
|
+
a {
|
73
|
+
color: $line-no-foreground;
|
74
|
+
text-decoration: none;
|
75
|
+
&:target { color: blue !important; }
|
76
|
+
}
|
77
|
+
|
78
|
+
.highlighted {
|
79
|
+
color: red !important;
|
80
|
+
a { color: red !important; }
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
span.line-numbers { padding: 0px 4px; }
|
85
|
+
|
86
|
+
.line { display: block; float: $from-direction; width: 100%; }
|
87
|
+
|
88
|
+
.debug { color: white !important; background: blue !important; }
|
89
|
+
|
90
|
+
.annotation { color:#007 }
|
91
|
+
.attribute-name { color: white }
|
92
|
+
.attribute-value { color:#700 }
|
93
|
+
.binary { color:#509 }
|
94
|
+
|
95
|
+
.char {
|
96
|
+
color:#D20;
|
97
|
+
.content { color:#D20 }
|
98
|
+
.delimiter { color:#710 }
|
99
|
+
}
|
100
|
+
|
101
|
+
.class { color:$entity-clr; }
|
102
|
+
|
103
|
+
.class-variable { color:#369 }
|
104
|
+
.color { color: white }
|
105
|
+
|
106
|
+
.comment {
|
107
|
+
color:$comment-clr;
|
108
|
+
.char { color:#444 }
|
109
|
+
.delimiter { color:#444 }
|
110
|
+
}
|
111
|
+
|
112
|
+
.complex { color:#A08 }
|
113
|
+
.constant { color:$constant-clr; font-weight:bold }
|
114
|
+
.decorator { color:#B0B }
|
115
|
+
.definition { color:#099; font-weight:bold }
|
116
|
+
.delimiter { color:black }
|
117
|
+
|
118
|
+
.doc { color:#970 }
|
119
|
+
.doc-string { color:#D42; font-weight:bold }
|
120
|
+
.doctype { color:#34b }
|
121
|
+
.entity { color:#800; font-weight:bold }
|
122
|
+
|
123
|
+
.escape { color:#666 }
|
124
|
+
.exception { color:#C00; font-weight:bold }
|
125
|
+
.float { color:$constant-clr }
|
126
|
+
|
127
|
+
.function { color:$entity-clr; }
|
128
|
+
|
129
|
+
.global-variable { color:#d70 }
|
130
|
+
.hex { color:#02b }
|
131
|
+
.imaginary { color:#f00 }
|
132
|
+
.include { color:#B44; font-weight:bold }
|
133
|
+
.inline { background-color: hsla(0,0%,0%,0.07); color: black }
|
134
|
+
.inline-delimiter { font-weight: bold; color: #666 }
|
135
|
+
.instance-variable { color:#33B }
|
136
|
+
.integer { color:$constant-clr }
|
137
|
+
|
138
|
+
.keyword { color:$keyword-clr; font-weight:bold }
|
139
|
+
|
140
|
+
.label { color:#970; font-weight:bold }
|
141
|
+
.local-variable { color:$variable-clr }
|
142
|
+
.namespace { color:#707; font-weight:bold }
|
143
|
+
.octal { color:#40E }
|
144
|
+
.operator { }
|
145
|
+
.predefined { color:yellow;}
|
146
|
+
.predefined-constant { color:#069 }
|
147
|
+
.predefined-type { color:#0a5; font-weight:bold }
|
148
|
+
.preprocessor { color:#579 }
|
149
|
+
.pseudo-class { color:#00C; font-weight:bold }
|
150
|
+
|
151
|
+
.regexp {
|
152
|
+
.content, .delimiter { color:$regex-clr }
|
153
|
+
.modifier { color:#C2C }
|
154
|
+
}
|
155
|
+
|
156
|
+
.reserved { color:#080; font-weight:bold }
|
157
|
+
|
158
|
+
.shell {
|
159
|
+
background-color:hsla(120,100%,50%,0.06);
|
160
|
+
.content { color:#2B2 }
|
161
|
+
.delimiter { color:#161 }
|
162
|
+
}
|
163
|
+
|
164
|
+
.string {
|
165
|
+
background-color:hsla(0,100%,50%,0.05);
|
166
|
+
.char { color: #b0b }
|
167
|
+
.content, .delimiter { color: $string-clr; }
|
168
|
+
.modifier { color: #E40 }
|
169
|
+
}
|
170
|
+
|
171
|
+
.symbol {
|
172
|
+
color:#A60;
|
173
|
+
.content { color:#A60 }
|
174
|
+
.delimiter { color:#630 }
|
175
|
+
}
|
176
|
+
|
177
|
+
.tag { color:#070 }
|
178
|
+
|
179
|
+
.variable { color:#037 }
|
180
|
+
|
181
|
+
.insert {
|
182
|
+
background: hsla(120,100%,50%,0.12);
|
183
|
+
.eyecatcher { background-color: hsla(120,100%,50%,0.2); border: 1px solid hsla(120,100%,25%,0.5); margin: -1px; border-top: none; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; }
|
184
|
+
.insert { color: #0c0; background:transparent; font-weight:bold }
|
185
|
+
}
|
186
|
+
|
187
|
+
.delete {
|
188
|
+
background: hsla(0,100%,50%,0.12);
|
189
|
+
.eyecatcher { background-color: hsla(0,100%,50%,0.2); border: 1px solid hsla(0,100%,45%,0.5); margin: -1px; border-bottom: none; border-top-left-radius: 5px; border-top-right-radius: 5px; }
|
190
|
+
.delete { color: #c00; background:transparent; font-weight:bold }
|
191
|
+
}
|
192
|
+
|
193
|
+
.change {
|
194
|
+
color: #bbf; background: #007;
|
195
|
+
.change { color: #88f }
|
196
|
+
}
|
197
|
+
|
198
|
+
.head {
|
199
|
+
color: #f8f; background: #505;
|
200
|
+
.filename { color: white; }
|
201
|
+
.head { color: #f4f }
|
202
|
+
}
|
203
|
+
|
204
|
+
@include scss;
|
205
|
+
}
|