Permalink
Browse files

Fix wrong css class usage in picasa and youtube album cover

  • Loading branch information...
1 parent e019dea commit ee995ae5d91f71965075449f70a8b369e3c77e3c @ido-ran committed Jul 23, 2011
@@ -32,7 +32,7 @@ TagNav.adminLoginPage = SC.Page.design({
childViews: 'userLabel userText passLabel passText loginButton'.w(),
userLabel: SC.LabelView.design({
- layout: { left: 0, width: 100, height: 30, top: 50 },
+ layout: { left: 10, width: 100, height: 30, top: 55 },
value: 'Username'
}),
@@ -42,8 +42,8 @@ TagNav.adminLoginPage = SC.Page.design({
}),
passLabel: SC.LabelView.design({
- layout: { left: 0, width: 100, height: 30, top: 100 },
- value: 'Username'
+ layout: { left: 10, width: 100, height: 30, top: 105 },
+ value: 'Password'
}),
passText: SC.TextFieldView.design({
@@ -52,14 +52,14 @@ textarea.field {
line-height:8em;
}
-.sc-view.media-title {
+.media-title {
color: white;
background: rgba(0,0,0, 0.6);
text-overflow:ellipsis;
overflow: hidden;
}
-.selected .sc-view.media-title {
+.selected .media-title {
color: white;
background: rgba(0,0,255, 0.6);
}
@@ -56,6 +56,7 @@ TagNav.PicasaAlbumCoverListItemView = SC.View.extend(SC.ContentDisplay,
var titleView = this.createChildView(
SC.View.extend({
+ classNames: 'media-title'.w(),
layout: { bottom: 0, centerX: 0, width: 200, height: 40 },
childViews: 'lbl'.w(),
lbl: SC.LabelView.design({
@@ -67,9 +68,6 @@ TagNav.PicasaAlbumCoverListItemView = SC.View.extend(SC.ContentDisplay,
})
);
- if (-1 == titleView.classNames.indexOf('media-title')) {
- titleView.classNames.push('media-title');
- }
childViews.push(titleView);
var picasaLogoView = this.createChildView(
@@ -42,6 +42,7 @@ TagNav.YouTubeCoverListItemView = SC.View.extend(SC.ContentDisplay,
var titleView = this.createChildView(
SC.View.extend({
+ classNames: 'media-title'.w(),
layout: { bottom: 0, centerX: 0, width: 200, height: 40 },
childViews: 'lbl'.w(),
lbl: SC.LabelView.design({
@@ -53,9 +54,6 @@ TagNav.YouTubeCoverListItemView = SC.View.extend(SC.ContentDisplay,
})
);
- if (-1 == titleView.classNames.indexOf('media-title')) {
- titleView.classNames.push('media-title');
- }
childViews.push(titleView);
var picasaLogoView = this.createChildView(

0 comments on commit ee995ae

Please sign in to comment.