Skip to content

Commit

Permalink
Removes some useless CSS prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasbadia committed Feb 25, 2018
1 parent 5287939 commit 7630c79
Show file tree
Hide file tree
Showing 40 changed files with 121 additions and 336 deletions.
13 changes: 4 additions & 9 deletions apps/welcome/english.lproj/main_page.css
Expand Up @@ -4,12 +4,9 @@

.app-selector {
background-color: #f4f4f4;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border: 1px solid #f4f4f4;
border-bottom-color: #fff;
-webkit-box-shadow: inset rgba(0,0,0,0.3) 0 3px 8px;
-moz-box-shadow: inset rgba(0,0,0,0.3) 0 3px 8px;
box-shadow: inset rgba(0,0,0,0.3) 0 3px 8px;
}

.app-selector .sc-list-item-view {
Expand All @@ -27,8 +24,6 @@
}

.sc-list-view .sc-list-item-view:first-child {
-webkit-border-top-left-radius: 8px;
-webkit-border-top-right-radius: 8px;
-moz-border-radius-topleft: 8px;
-moz-border-radius-topright: 8px;
}
border-top-left-radius: 8px;
border-top-right-radius: 8px;
}
9 changes: 2 additions & 7 deletions frameworks/designer/english.lproj/css/designer.css
Expand Up @@ -6,14 +6,14 @@
*/

body.sc-theme,
body.sc-theme > .sc-pane.sc-main.workspace {
body.sc-theme > .sc-pane.sc-main.workspace {
overflow: hidden;
background: static_url('images/main-bg.png');
}

.workspace {
background: static_url('images/main-bg.png');

}

/* Design Area
Expand All @@ -23,14 +23,10 @@ body.sc-theme > .sc-pane.sc-main.workspace {
background: #fff;
border: 1px solid #1c1c1c;
box-shadow: 0 3px 6px rgba(0,0,0,0.75);
-moz-box-shadow: 0 3px 6px rgba(0,0,0,0.75);
-webkit-box-shadow: 0 3px 6px rgba(0,0,0,0.75);
}

.workspace .rotated-page {
transform: rotate(0.8deg);
-moz-transform: rotate(0.8deg);
-webkit-transform: rotate(0.8deg);
border: 1px solid #111;
background: #ccc;
}
Expand Down Expand Up @@ -93,4 +89,3 @@ body.sc-theme > .sc-pane.sc-main.workspace {
.workspace .dock .sc-collection-item .icon.page {
background: static_url('images/page.png') no-repeat;
}

3 changes: 1 addition & 2 deletions frameworks/designer/english.lproj/high_light.css
Expand Up @@ -5,6 +5,5 @@
.sc-view.high-light .cover{
background-color: #000;
opacity: 0.5;
-moz-opacity:0.5;
position: absolute;
}
}
5 changes: 1 addition & 4 deletions frameworks/designer/english.lproj/selection_handles.css
Expand Up @@ -11,10 +11,8 @@
top: 50%;
left: 50%;
display: block;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: rgba(0,0,0,0.2) 0px 1px 0px;
box-shadow: rgba(0,0,0,0.2) 0px 1px 0px;
opacity: 0.9;
margin-left: -4px;
margin-top: -4px;
Expand Down Expand Up @@ -55,4 +53,3 @@
.sc-view.handles .handle.bottom.left {
cursor: default;
}

5 changes: 1 addition & 4 deletions frameworks/desktop/resources/drag.css
@@ -1,7 +1,4 @@
.sc-ghost-view {
opacity: 0.5;
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50);
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
-moz-opacity:0.5;
z-index: 10000;
}
}
8 changes: 2 additions & 6 deletions frameworks/desktop/resources/list_item.css
Expand Up @@ -69,7 +69,7 @@
&.has-checkbox .icon {
left: 25px;
}

&.has-count {
.right-icon {
right: 32px;
Expand Down Expand Up @@ -97,8 +97,6 @@
top: 50%;
margin-top: -8px;

-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
background-color: #d0d0d0 ;
& .active {
Expand All @@ -123,10 +121,8 @@
border: 1px #888 solid;
letter-spacing: -1px;
border-radius: 7px;
-webkit-border-radius: 7px;
-moz-border-radius: 7px;
}

.branch {
position: absolute;
width: 16px;
Expand Down
20 changes: 8 additions & 12 deletions frameworks/desktop/resources/menu_item_view.css
@@ -1,7 +1,7 @@
.sc-menu-item {
background-color: #ffffff none repeat scroll 0 0;
border: none;

a {
position: absolute;
display: block;
Expand Down Expand Up @@ -30,7 +30,7 @@
span.has-branch {
position: absolute;
right: 10px;
top: 5px;
top: 5px;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
border-left: 5px solid black;
Expand All @@ -47,10 +47,9 @@
color:#A0A0A0;
}
.checkbox{
background-image: url(data:image/gif;base64,R0lGODlhAQABAJAAAP///wAAACH5BAUQAAAALAAAAAABAAEAAAICBAEAOw==) top left no-repeat;
*background-image: sc_static('foundation:blank.gif') top left no-repeat; /* IE < 8 */
background-image: url(data:image/gif;base64,R0lGODlhAQABAJAAAP///wAAACH5BAUQAAAALAAAAAABAAEAAAICBAEAOw==) top left no-repeat;
}

}
span.separator{
display: block;
Expand All @@ -75,14 +74,11 @@
left: 6px;
top: 5px;
border-radius: 2px;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
&.inactive {
background-image: url(data:image/gif;base64,R0lGODlhAQABAJAAAP///wAAACH5BAUQAAAALAAAAAABAAEAAAICBAEAOw==) top left no-repeat;
*background-image: sc_static('foundation:blank.gif') top left no-repeat; /* IE < 8 */
background-image: url(data:image/gif;base64,R0lGODlhAQABAJAAAP///wAAACH5BAUQAAAALAAAAAABAAEAAAICBAEAOw==) top left no-repeat;
}
}

.value {
position: absolute;
top: 0px;
Expand All @@ -93,9 +89,9 @@
text-align:left;
margin-left:25px;
}

&.sc-small-size a {
line-height: 11px;
font-size: 11px;
}
}
}
3 changes: 0 additions & 3 deletions frameworks/desktop/resources/modal.css
Expand Up @@ -11,8 +11,5 @@
&.for-sc-panel {
background: black;
opacity: 0.3;
-moz-opacity: 0.3;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=30);
}
}
5 changes: 2 additions & 3 deletions frameworks/desktop/resources/progress.css
Expand Up @@ -3,7 +3,6 @@
.sc-progress-view {
border: 1px solid #555555;
background-color: #c8c8c8;
-webkit-border-radius: 2px;
border-radius: 2px;

&.disabled {
Expand All @@ -18,8 +17,8 @@
bottom: 0px;
background: #555555;
border-right: 1px solid #555555;
-webkit-transition: all 0.01s linear;
-webkit-transform: translate3d(0,0,0);
transition: all 0.01s linear;
transform: translate3d(0,0,0);
}

&.sc-indeterminate .sc-inner {
Expand Down
1 change: 0 additions & 1 deletion frameworks/desktop/resources/radio.css
Expand Up @@ -6,6 +6,5 @@
}
&.sc-layout-horizontal .sc-radio-button {
display: inline-block;
-moz-display: inline-block;
}
}
4 changes: 0 additions & 4 deletions frameworks/desktop/resources/slider.css
Expand Up @@ -10,8 +10,6 @@
top: 6px;
background: gray;
border-radius: 3px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
.sc-leftcap{
display: none;
}
Expand All @@ -27,7 +25,5 @@
position: absolute;
background: black;
border-radius: 6px;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
}
}
1 change: 0 additions & 1 deletion frameworks/desktop/resources/tab.css
@@ -1,7 +1,6 @@
/* SC.TabView */

.sc-tab-view > .sc-container-view {
-webkit-border-radius: 2px;
border-radius: 2px;
overflow: visible;
}
Expand Up @@ -3,12 +3,7 @@ $theme.sc-multi-select-view {
border: 1px solid #CCC;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
border-radius: 2px;

-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}

Expand All @@ -31,4 +26,4 @@ $theme.sc-multi-select-item-view {
margin-left: 3px;
}
}
}
}
17 changes: 3 additions & 14 deletions frameworks/foundation/resources/benchmark.css
@@ -1,7 +1,7 @@

/* SC.Benchmark */
.sc-benchmark-pane {
-webkit-box-shadow: 0px 0px 5px black;
box-shadow: 0px 0px 5px black;
background: white;
background-color: rgba(255,255,255,.95);
z-index: 10000;
Expand Down Expand Up @@ -39,9 +39,6 @@
border-top: 1px solid #aaa;
border-bottom: 1px solid #aaa;
opacity: 0.4;
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40);
-moz-opacity:0.4;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
}

.sc-benchmark-tick
Expand Down Expand Up @@ -71,12 +68,9 @@
white-space: nowrap;
border: 1px solid #CC6633;
background-color: #FFCC33;
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFCD82), to(#DE9C00));
background: gradient(linear, 0% 0%, 0% 100%, from(#FFCD82), to(#DE9C00));
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
line-height: 14px;
-webkit-box-shadow: 0px 1px 2px rgba(0,0,0,.5);
text-shadow: rgba(255,255,255,.5) 0px 1px 0px;
color: #4F3800;

Expand All @@ -95,9 +89,6 @@
{
background-color: #ddd;
opacity: 0.4;
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40);
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
-moz-opacity:0.4;
}

.sc-benchmark-event {
Expand All @@ -107,9 +98,8 @@
}

.sc-benchmark-event:hover {
-webkit-border-radius: 5px;
border: 2px solid white;
-webkit-box-shadow: 0px 0px 5px black;
box-shadow: 0px 0px 5px black;
background-color: red;
}

Expand Down Expand Up @@ -140,4 +130,3 @@
.sc-benchmark-event.idx6 {
background: #800000;
}

4 changes: 0 additions & 4 deletions frameworks/foundation/tests/mixins/auto_resize_test.js
Expand Up @@ -218,8 +218,6 @@ test("Resize height only for textarea where textarea has padding.", function ()
SC.run(function () {
view.$('textarea').css({
'padding': '10px',
'-webkit-box-sizing': 'border-box',
'-moz-box-sizing': 'border-box',
'box-sizing': 'border-box'
});
});
Expand Down Expand Up @@ -280,8 +278,6 @@ test("Resize text only for input where input has padding.", function () {
SC.run(function () {
view.$('input').css({
'padding': '10px',
'-webkit-box-sizing': 'border-box',
'-moz-box-sizing': 'border-box',
'box-sizing': 'border-box'
});
});
Expand Down
20 changes: 5 additions & 15 deletions frameworks/qunit/qunit/qunit.css
Expand Up @@ -27,11 +27,8 @@
font-size: 1.5em;
line-height: 1em;
font-weight: normal;

border-radius: 15px 15px 0 0;
-moz-border-radius: 15px 15px 0 0;
-webkit-border-top-right-radius: 15px;
-webkit-border-top-left-radius: 15px;
}

#qunit-header a {
Expand Down Expand Up @@ -95,16 +92,12 @@
#qunit-tests ol {
margin-top: 0.5em;
padding: 0.5em;

background-color: #fff;

border-radius: 15px;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;


box-shadow: inset 0px 2px 13px #999;
-moz-box-shadow: inset 0px 2px 13px #999;
-webkit-box-shadow: inset 0px 2px 13px #999;
}

#qunit-tests table {
Expand Down Expand Up @@ -164,7 +157,7 @@

#qunit-tests .pass { color: #528CE0; background-color: #D2E0E6; }
#qunit-tests .pass .test-name { color: #366097; }

#qunit-tests .pass .test-actual,
#qunit-tests .pass .test-expected { color: #999999; }

Expand All @@ -180,9 +173,6 @@

#qunit-tests > li:last-child {
border-radius: 0 0 15px 15px;
-moz-border-radius: 0 0 15px 15px;
-webkit-border-bottom-right-radius: 15px;
-webkit-border-bottom-left-radius: 15px;
}

#qunit-tests .fail { color: #000000; background-color: #EE5757; }
Expand Down

0 comments on commit 7630c79

Please sign in to comment.