From ccd3df1c8dc98d954c2aec285d667ae8e81f14cc Mon Sep 17 00:00:00 2001 From: jlukic Date: Tue, 8 Oct 2013 14:53:57 -0400 Subject: [PATCH] Adds proper folder cleaning to grunt to avoid issues with changing branches causing orphaned files, adds examples to rtl Former-commit-id: e53a090692b8ad9af030d0f59ce9ed527b30f4de Former-commit-id: 38bbcf2bb929ec82b2aeba0fc732b87752bdb55a --- .../packaged/css/semantic.css.REMOVED.git-id | 2 +- node/Gruntfile.js | 26 +-- .../packaged/css/semantic.css.REMOVED.git-id | 2 +- .../files/build/semantic.zip.REMOVED.git-id | 2 +- rtl/examples/feed.css | 96 +++++++++++ rtl/examples/feed.html | 149 ++++++++++++++++++ rtl/examples/feed.js | 23 +++ 7 files changed, 287 insertions(+), 13 deletions(-) create mode 100644 rtl/examples/feed.css create mode 100644 rtl/examples/feed.html create mode 100644 rtl/examples/feed.js diff --git a/build/packaged/css/semantic.css.REMOVED.git-id b/build/packaged/css/semantic.css.REMOVED.git-id index cfdd3b9f8..8a6d5acc5 100644 --- a/build/packaged/css/semantic.css.REMOVED.git-id +++ b/build/packaged/css/semantic.css.REMOVED.git-id @@ -1 +1 @@ -1cb4539f1f96648b123cf436085c3a44b4486a7f \ No newline at end of file +9339b3637e6efad6f25f375cf0416beb660e411d \ No newline at end of file diff --git a/node/Gruntfile.js b/node/Gruntfile.js index d148941b4..67d997868 100755 --- a/node/Gruntfile.js +++ b/node/Gruntfile.js @@ -69,15 +69,15 @@ module.exports = function(grunt) { // creates release zip 'compress:everything', + // cleans previous generated release + 'clean:release', + // copies assets to rtl 'copy:buildToRTL', // create rtl release 'cssjanus:rtl', - // cleans docs build folder - 'clean:docs', - // copies spec files over to docs 'copy:specToDocs', @@ -115,14 +115,20 @@ module.exports = function(grunt) { *******************************/ clean: { - build : { - cwd: '../build', - src: '*' + options: { + force: true }, - docs : { - cwd: 'src/files/build/', - src: '*' - } + build : [ + 'src/files/build', + '../build/less', + '../build/minified', + '../build/packaged', + '../build/uncompressed' + ], + release : [ + '../docs', + '../rtl' + ] }, docco: { diff --git a/node/src/files/build/packaged/css/semantic.css.REMOVED.git-id b/node/src/files/build/packaged/css/semantic.css.REMOVED.git-id index cfdd3b9f8..8a6d5acc5 100644 --- a/node/src/files/build/packaged/css/semantic.css.REMOVED.git-id +++ b/node/src/files/build/packaged/css/semantic.css.REMOVED.git-id @@ -1 +1 @@ -1cb4539f1f96648b123cf436085c3a44b4486a7f \ No newline at end of file +9339b3637e6efad6f25f375cf0416beb660e411d \ No newline at end of file diff --git a/node/src/files/build/semantic.zip.REMOVED.git-id b/node/src/files/build/semantic.zip.REMOVED.git-id index eff50e3bd..e0e680f63 100644 --- a/node/src/files/build/semantic.zip.REMOVED.git-id +++ b/node/src/files/build/semantic.zip.REMOVED.git-id @@ -1 +1 @@ -aac083232ad6f4d504880051540f7d2031896dd3 \ No newline at end of file +cdac0b535ef921e673d4f3df50efafb688355fe1 \ No newline at end of file diff --git a/rtl/examples/feed.css b/rtl/examples/feed.css new file mode 100644 index 000000000..f0d1859d4 --- /dev/null +++ b/rtl/examples/feed.css @@ -0,0 +1,96 @@ +/******************************* + Global +*******************************/ + +html, +body { + font-size: 15px; + height: 100%; +} + +body { + font-family: "Open Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif; + background: #FFFFFF; + margin: 0px; + padding: 0px; + color: #555555; + text-rendering: optimizeLegibility; + min-width: 320px; +} + +.ui.header { + font-family: 'Source Sans Pro', "Helvetica Neue", "Helvetica", "Arial", sans-serif; +} + +/******************************* + Global +*******************************/ + +/*------------------- + Sidebar +--------------------*/ + +#feed .sidebar { + overflow: visible; +} + +/*------------------- + Grid +--------------------*/ + +#feed .grid { + height: 100%; +} +#feed > .grid > .column { + height: 100%; +} + + +/*------------------- + Inbox +--------------------*/ + +#feed .inbox.tab { + background-color: #FFFFFF; +} +#feed .inbox.tab .item { + padding-top: 1rem; + padding-bottom: 1rem; +} +#feed .inbox.tab .item .rating { + margin-top: 0.2rem; +} +#feed .inbox.tab .item .description { + margin-right: 2em; +} +#feed .page { + float: left; + margin-top: 0.9em; +} + +#feed .middle.column { + padding: 1em 2em; +} +#feed .right.column { + padding: 1em 2em; + background-color: #FFFFFF; +} + + +/******************************* + Responsive +*******************************/ + + +@media only screen and (max-width : 1000px) { + #feed .inbox .date { + float: none; + margin-bottom: 0.5em; + } +} + +@media only screen and (max-width : 1250px) { + #feed .left.column > .menu .item { + font-size: 1rem; + } +} \ No newline at end of file diff --git a/rtl/examples/feed.html b/rtl/examples/feed.html new file mode 100644 index 000000000..98b12c4bc --- /dev/null +++ b/rtl/examples/feed.html @@ -0,0 +1,149 @@ + + + + + + + + + Feed Example - Semantic + + + + + + + + + + + + + +
+ +
+

Weekly Webcomic Wrapup fought the law, and the law won

+ Tags: Unread Comics +

So there's this video game coming out Tuesday called Grand Theft Auto 5. Don't know if you've heard of it. Anyways, it's all about crime and gangs and some roughneck ne'er-do-wells, so I thought this would be the perfect time to talk about times when we've been... well, less than perfect.

+

When I was a young'un, I was a frequent visitor to the local swimming pool. I was also a frequent lover of AirHeads candy, which the pool happened to sell. Waiting, watching, stalking the counter like a big cat in the savannah, I waited for the perfect opportunity to strike. While the lifeguards were busy, I snuck through the gate, reached up and took both cherry and "mystery white" AirHeads. I quickly ran out to the sidewalk and reveled in my sweet, delicious victory... for all of ten seconds, before I felt guilty enough to sneak back in and return the .20 worth of candy I had stolen.

+

While you confess your crimes - hopefully minor, and nothing you can be persecuted for - take a moment to enjoy this week's webcomics, and vote for your favorite after the jump.

+
+
Save
+
Delete
+
+
+ + + \ No newline at end of file diff --git a/rtl/examples/feed.js b/rtl/examples/feed.js new file mode 100644 index 000000000..891d1e37a --- /dev/null +++ b/rtl/examples/feed.js @@ -0,0 +1,23 @@ +$(document) + .ready(function() { + + $('.filter.menu .item') + .tab() + ; + + $('.ui.rating') + .rating({ + clearable: true + }) + ; + + $('.ui.sidebar') + .sidebar('attach events', '.launch.button') + ; + + $('.ui.dropdown') + .dropdown() + ; + + }) +; \ No newline at end of file