-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove use of xstyle/css! AMD plugin * List: Replace xstyle/hasClass use with inline logic * Ensure that dgrid.css is explicitly loaded in all test pages * Move structural CSS to Stylus and create one central CSS file * Use nib/vendor to reduce cross-browser prefix boilerplate * Add Pagination to skin.html for footer skin testing, and remove skin switching from Pagination's own test pages * Move skin/rtl GET param logic to a separate module for better organization and potential reuse * Add module for unit tests to add dgrid.css when necessary Removing xstyle usage simplifies loading and allows CSS to be optimized with the cssOptimize flag during builds, with no extra configuration required. This change requires all code using dgrid to incorporate dgrid.css directly, as it will no longer be automatically loaded through the module loader. Even loading all structural styles unconditionally still involves slightly less bandwidth than loading xstyle modules. This difference becomes more significant when gzip is taken into consideration. It should also be feasible for developers using stylus to directly incorporate specific components of dgrid's structural styles into their own stylesheets if they don't need everything.
- Loading branch information
1 parent
cb7637b
commit 17b06f5
Showing
77 changed files
with
1,001 additions
and
642 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,43 @@ | ||
/* styles for scrollbars during touch-scroll */ | ||
|
||
.touchscroll-x, .touchscroll-y { | ||
display: none; /* overridden below */ | ||
overflow: hidden; /* cut off ends of scrollbar during rubber-banding */ | ||
position: absolute; | ||
/* establish base style for scrollbar fade-in/out */ | ||
opacity: 0.7; | ||
.touchscroll-x, | ||
.touchscroll-y { | ||
display: none; | ||
overflow: hidden; | ||
position: absolute; | ||
opacity: 0.7; | ||
} | ||
.touchscroll-fadeout .touchscroll-x, .touchscroll-fadeout .touchscroll-y { | ||
opacity: 0; | ||
-webkit-transition: opacity 0.3s ease-out 0.1s; | ||
-moz-transition: opacity 0.3s ease-out 0.1s; | ||
-o-transition: opacity 0.3s ease-out 0.1s; | ||
transition: opacity 0.3s ease-out 0.1s; | ||
.touchscroll-fadeout .touchscroll-x, | ||
.touchscroll-fadeout .touchscroll-y { | ||
opacity: 0; | ||
-webkit-transition: opacity 0.3s ease-out 0.1s; | ||
-moz-transition: opacity 0.3s ease-out 0.1s; | ||
-o-transition: opacity 0.3s ease-out 0.1s; | ||
transition: opacity 0.3s ease-out 0.1s; | ||
} | ||
|
||
.touchscroll-bar { | ||
background-color: rgba(88,88,88,0.97); | ||
border: 1px solid rgba(88,88,88,1); | ||
border-radius: 3px; | ||
|
||
/* the borders aren't anti-aliased on Android, so this smooths it out a bit */ | ||
-webkit-box-shadow: 0 0 1px rgba(88,88,88,0.4); | ||
background-color: rgba(88,88,88,0.97); | ||
border: 1px solid #585858; | ||
border-radius: 3px; | ||
-webkit-box-shadow: 0 0 1px rgba(88,88,88,0.4); | ||
} | ||
|
||
.touchscroll-x { | ||
left: 1px; | ||
right: 3px; | ||
bottom: 1px; | ||
height: 5px; | ||
left: 1px; | ||
right: 3px; | ||
bottom: 1px; | ||
height: 5px; | ||
} | ||
.touchscroll-y { | ||
top: 1px; | ||
bottom: 3px; | ||
right: 1px; | ||
width: 5px; | ||
top: 1px; | ||
bottom: 3px; | ||
right: 1px; | ||
width: 5px; | ||
} | ||
|
||
.touchscroll-scrollable-x .touchscroll-x, .touchscroll-scrollable-y .touchscroll-y { | ||
display: block; /* display scrollbar when appropriate */ | ||
.touchscroll-scrollable-x .touchscroll-x, | ||
.touchscroll-scrollable-y .touchscroll-y { | ||
display: block; | ||
} | ||
|
||
.touchscroll-bar { | ||
/* Establish transition property and timing function for scrollbars */ | ||
-webkit-transition: transform cubic-bezier(0.33, 0.66, 0.66, 1); | ||
-moz-transition: transform cubic-bezier(0.33, 0.66, 0.66, 1); | ||
-o-transition: transform cubic-bezier(0.33, 0.66, 0.66, 1); | ||
transition: transform cubic-bezier(0.33, 0.66, 0.66, 1); | ||
-webkit-transition: transform cubic-bezier(0.33, 0.66, 0.66, 1); | ||
-moz-transition: transform cubic-bezier(0.33, 0.66, 0.66, 1); | ||
-o-transition: transform cubic-bezier(0.33, 0.66, 0.66, 1); | ||
transition: transform cubic-bezier(0.33, 0.66, 0.66, 1); | ||
} | ||
|
||
/* indicator of a successful load */ | ||
#dgrid-css-TouchScroll-loaded { | ||
display: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// styles for scrollbars during touch-scroll | ||
|
||
.touchscroll-x, .touchscroll-y { | ||
display: none; // overridden below | ||
overflow: hidden; // cut off ends of scrollbar during rubber-banding | ||
position: absolute; | ||
// establish base style for scrollbar fade-in/out | ||
opacity: 0.7; | ||
} | ||
.touchscroll-fadeout .touchscroll-x, .touchscroll-fadeout .touchscroll-y { | ||
opacity: 0; | ||
-webkit-transition: opacity 0.3s ease-out 0.1s; | ||
-moz-transition: opacity 0.3s ease-out 0.1s; | ||
-o-transition: opacity 0.3s ease-out 0.1s; | ||
transition: opacity 0.3s ease-out 0.1s; | ||
} | ||
|
||
.touchscroll-bar { | ||
background-color: rgba(88,88,88,0.97); | ||
border: 1px solid rgba(88,88,88,1); | ||
border-radius: 3px; | ||
|
||
// the borders aren't anti-aliased on Android, so this smooths it out a bit | ||
-webkit-box-shadow: 0 0 1px rgba(88,88,88,0.4); | ||
} | ||
|
||
.touchscroll-x { | ||
left: 1px; | ||
right: 3px; | ||
bottom: 1px; | ||
height: 5px; | ||
} | ||
.touchscroll-y { | ||
top: 1px; | ||
bottom: 3px; | ||
right: 1px; | ||
width: 5px; | ||
} | ||
|
||
.touchscroll-scrollable-x .touchscroll-x, .touchscroll-scrollable-y .touchscroll-y { | ||
display: block; // display scrollbar when appropriate | ||
} | ||
|
||
.touchscroll-bar { | ||
// Establish transition property and timing function for scrollbars | ||
-webkit-transition: transform cubic-bezier(0.33, 0.66, 0.66, 1); | ||
-moz-transition: transform cubic-bezier(0.33, 0.66, 0.66, 1); | ||
-o-transition: transform cubic-bezier(0.33, 0.66, 0.66, 1); | ||
transition: transform cubic-bezier(0.33, 0.66, 0.66, 1); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.ui-icon-triangle-1-e { | ||
background-position: -32px -16px; | ||
} | ||
.ui-icon-triangle-1-se { | ||
background-position: -48px -16px; | ||
} | ||
|
||
.dgrid-expando-icon { | ||
width: 16px; | ||
height: 16px; | ||
} | ||
.dgrid-tree-container { | ||
transition-duration: 0.3s; | ||
overflow: hidden; | ||
} | ||
.dgrid-tree-container.dgrid-tree-resetting { | ||
transition-duration: 0; | ||
} |
Oops, something went wrong.