changed service icons; icons for template picker [ci skip]

This commit is contained in:
danielgrippi 2012-05-23 15:09:48 -07:00
parent c21bc14c78
commit 2a37491be0
9 changed files with 52 additions and 13 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

View file

@ -16,7 +16,9 @@ app.pages.Composer = app.views.Base.extend({
initialize : function(){ initialize : function(){
app.frame = this.model = this.model || new app.models.StatusMessage(); app.frame = this.model = this.model || new app.models.StatusMessage();
this.postForm = new app.forms.Post({model : this.model});
/* add class to make this smaller than the default framer */
this.postForm = new app.forms.Post({model : this.model, className : "span4 offset1"});
this.composerControls = new app.views.ComposerControls({model : this.model}); this.composerControls = new app.views.ComposerControls({model : this.model});
}, },

View file

@ -2,6 +2,8 @@
@import '_mixins.css.scss'; @import '_mixins.css.scss';
.mentions-input-box { .mentions-input-box {
@include border-radius(3px);
background: #fff; background: #fff;
position: relative; position: relative;

View file

@ -14,7 +14,8 @@ body {
} }
/* new link color */ /* new link color */
a { color : rgb(42,156,235) } $link-blue : rgb(42,156,235);
a { color : $link-blue }
/* bootstrap extentions */ /* bootstrap extentions */
.icon-red { background-image: image_url("img/glyphicons-halflings-red.png"); } .icon-red { background-image: image_url("img/glyphicons-halflings-red.png"); }

View file

@ -44,7 +44,8 @@
} }
.template-picker { .template-picker {
margin-bottom : 1em; float : left;
margin-left : 20px;
input { input {
display : none; display : none;
@ -54,6 +55,8 @@
@include transition(background-color); @include transition(background-color);
@include border-radius(); @include border-radius();
display : inline-block;
cursor : pointer; cursor : pointer;
margin-right: 11px; margin-right: 11px;
@ -63,13 +66,37 @@
line-height: 2em; line-height: 2em;
&:hover { &:hover {
background-color: #222; img {
text-decoration: none; border : 4px solid rgba(255,255,255,1);
} }
} }
.template-name {
text-align : center;
text-transform : uppercase;
}
img {
@include border-radius(5px);
@include transition(border);
border : 4px solid transparent;
background-color : #ddd;
height : 54px;
width : 54px;
}
}
input:checked + label { input:checked + label {
background-color: #222; .template-name {
color : $link-blue;
}
img {
border : 4px solid $link-blue;
}
} }
} }
@ -133,10 +160,11 @@
img { img {
@include transition(opacity); @include transition(opacity);
@include box-shadow(0,0,0,0);
cursor : pointer; cursor : pointer;
height : 28px; height : 70px;
width : 28px; width : 54px;
} }
input:not(:checked) + label { input:not(:checked) + label {
@ -174,8 +202,8 @@ input[type="image"] {
.new_photo .photo{ .new_photo .photo{
display: inline; display: inline;
max-width: 200px; max-width: 240px;
max-height: 75px; max-height: 240px;
padding: 2px; padding: 2px;
} }

View file

@ -3,6 +3,12 @@
<div class='template-picker'> <div class='template-picker'>
{{#each templates}} {{#each templates}}
<input id='frame_name_{{name}}' name="frame_name" type="radio" class="mood" value={{name}} {{#if checked}}checked=checked{{/if}} /> <input id='frame_name_{{name}}' name="frame_name" type="radio" class="mood" value={{name}} {{#if checked}}checked=checked{{/if}} />
<label for='frame_name_{{name}}'>{{name}}</label> <label for='frame_name_{{name}}'>
<img src="/assets/branding/asterisk.png" />
<div class="template-name">
{{name}}
</div>
</label>
<br />
{{/each}} {{/each}}
</div> </div>

View file

@ -3,7 +3,7 @@
{{#each services}} {{#each services}}
<input id="services[{{name}}]" type="checkbox" name="services[{{name}}]" class="services" value="{{name}}" {{#if checked}}checked="checked"{{/if}}/> <input id="services[{{name}}]" type="checkbox" name="services[{{name}}]" class="services" value="{{name}}" {{#if checked}}checked="checked"{{/if}}/>
<label for="services[{{name}}]"> <label for="services[{{name}}]">
<img class="legacy-provider-image" src="/assets/social_media_logos/{{name}}-32x32.png" data-provider="{{name}}" data-url="/auth/{{name}}" title="Share on {{name}}" /> <img class="legacy-provider-image" src="/assets/buttons/{{name}}_hov@2x.png" data-provider="{{name}}" data-url="/auth/{{name}}" title="Share on {{name}}" />
</label> </label>
{{/each}} {{/each}}
</form> </form>