Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Reduce the size of a header area on a list web page and display of posts in a discussion web page.
- Copyright (c) 2016 rccharles
- All rights reserved.
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
- 1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- 2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- The views and conclusions contained in the software and documentation are those
- of the authors and should not be interpreted as representing official policies,
- either expressed or implied, of the Custom Styles Project.
- Implement these changes by:
- 1) running stylish
- 2) add the combined user style sheet to stylish
- https://discussions.apple.com/docs/DOC-7501
- 3) create a new style sheet in stylish.
- 4) copy these css rules to the new sheet.
- example web pages:
- https://discussions.apple.com/content?filterID=following~objecttype~objecttype[thread]
- https://discussions.apple.com/people/<userid>?view=discussions
- */
- /* ==================================== */
- @-moz-document
- url-prefix(https://discussions.apple.com/content),
- url-prefix(https://discussions.apple.com/community),
- url-prefix(https://discussions.apple.com/people),
- url-prefix(https://discussionsjapan.apple.com/content),
- url-prefix(https://discussionsjapan.apple.com/community),
- url-prefix(https://discussionsjapan.apple.com/people),
- url-prefix(https://discussionskorea.apple.com/content),
- url-prefix(https://discussionskorea.apple.com/community),
- url-prefix(https://discussionskorea.apple.com/people),
- url-prefix(https://communities.apple.com/es/content),
- url-prefix(https://communities.apple.com/es/community/),
- url-prefix(https://communities.apple.com/es/people),
- url-prefix(https://communities.apple.com/pt/content),
- url-prefix(https://communities.apple.com/pt/community/),
- url-prefix(https://communities.apple.com/pt/people) {
- /* debug:
- background-color: yellow !important;
- */
- /* top line:
- Communities Contact support
- I guess we know by now that we are in the communities. */
- /* Top portion of the header. First two "lines" on the page.
- Second lines is:
- My Subscriptions Content People Search Post */
- div#j-header-wrap {
- margin-bottom: 2px !important;
- /*background-color: antiquewhite !important; /* */ }
- /* Ditch first line across page. */
- div#body-apple header nav#j-globalNav-bg {border-bottom: 0px !important; }
- /* Ditch Communities */
- div#body-apple header div#apple-site-title a { display: none!important; }
- /* Ditch "Content" upper left of window.
- Glad to get rid of this redundant waste of space. */
- div#jive-body header#apple-full-header { display: none!important; }
- /* Ditch "Find helpful content and discussions"
- Total waste of space. */
- header#apple-full-header h4#apple-full-subheader { display: none!important; }
- /* Ditch Box and list view icons
- Who ever uses the box view? No need. */
- div#jive-body ul#j-item-view-toggle { display: none!important; }
- /* Ditch the line under All User(nnn) Announcements User Tips(nnn) Discussions(nnn) */
- ul.j-content-types.js-browse-filter-toggle-set { border-bottom-width: 0 !important;}
- /* [Filter by personal content] check box only appears
- on your content web page. It doesn't seem to work. */
- div.j-browse-filter-row.j-content-filter span.js-browse-filter-toggle{
- display: none!important;
- /* margin: -20px -20px 0 0 !important;
- background-color: teal !important; /* */
- }
- /* User id My subscriptions Content ... */
- header#j-header div#second-row {
- /*background-color: yellow !important;*/
- padding-top: 6px !important;
- }
- /* User id signout */
- div#second-row ul#j-satNav-wrap {
- /*background-color: aqua !important;*/
- margin-left: -40px !important;
- margin-top: -10px !important;
- }
- /* Delete line under "all discussions". This is a band in back of
- "All Discussions" the spans the width of the window. */
- div.j-layout.j-layout-sl form#js-browse-controls div.j-browse-filter-row.j-content-filter {
- border-bottom: 0px !important;
- /*background-color: tan !important; /* */
- }
- /* ==================================== */
- /* ... for small windows such as a smart phone ... */
- @media all and (max-width: 499px) {
- /* "contact support" link upper right corner
- to move, you need to use the ul
- actually, the ul. link is in a li. */
- #contact-support-link {
- margin: -15px -60px 0;
- }
- /* Contact Support */
- div#body-apple header ul#contact-support-link a {
- background-color: antiquewhite !important;
- font-size: 10px !important;
- }
- /* Move breadcrumb to the upper left, thus avoiding the repeating of Communities and content
- For examples:
- Support Communities / Content
- Support Communities / iPad / iPad in Business and Education
- */
- section#j-main nav#jive-breadcrumb { /* add more selectors to overwhele main css */
- position: absolute !important; /* override what in the main css */
- text-align: left !important;
- top: -120px !important;
- left: 5px !important;
- font-weight: 500 !important;
- font-size: 13px !important;
- width: 225px !important; /* override what in the main css */
- /*background-color: tan !important;/**/
- }
- /* my Subscriptions Content People Search Post */
- #body-apple ul#menubar.sub-nav-wrap li {
- font-size: 10px !important;
- /* background-color: blanchedalmond !important; /**/}
- /* All User(nnn) Announcements User Tips(nnn) Discussions(nnn)*/
- div.j-browse-filter-row.j-type-row.apple-custom-line-height{
- height:20px !important;
- width:250px !important;
- background-color: pink!important;
- margin:10px 0 15px !important;/**/
- }
- div#jive-body div.j-layout {
- margin: 5px 0 0 0 !important;
- /* background-color: grey !important; /* */
- }
- /* Set common width for all words.
- Will truncate span width to save space. Biased toward English */
- ul.j-content-types.js-browse-filter-toggle-set li {
- width: 80px !important;
- /*background-color: tomato !important; /**/
- }
- /* for some reason when left out User Tips drifts downward. */
- ul.j-content-types.js-browse-filter-toggle-set li a{
- height: 18px!important;
- font-size: 13px !important;
- padding:0px !important;
- vertical-align: middle !important;
- display:inline-block;
- overflow:hidden !important;
- white-space:nowrap !important;
- background-color: tan !important; }/**/
- ul.j-content-types.js-browse-filter-toggle-set li.filter-All.Content a {
- width: 18px !important;
- background-color: tomato !important; /**/
- }
- ul.j-content-types.js-browse-filter-toggle-set li.filter-Announcements a {
- width: 58px !important;
- background-color: tomato !important; /**/
- }
- ul.j-content-types.js-browse-filter-toggle-set li.filter-User.Tips a {
- width: 58px !important;
- background-color: orchid !important; /**/
- }
- ul.j-content-types.js-browse-filter-toggle-set li.filter-Discussions a span.js-shrinkable{
- display:inline-block; /* No workie without */
- overflow:hidden !important;
- white-space:nowrap !important;
- width: 70px !important;
- background-color: tomato !important; /**/
- }
- /* moves list up */
- div.j-browse-sorts.j-browse-filter-row.last-child {
- margin:0 !important;
- height: 14px !important;
- /*background-color: aqua !important;/**/
- }
- /* Set common width for all words.
- Will truncate span width to save space. Biased toward English */
- ul.j-content-types.js-browse-filter-toggle-set li {
- width: 80px !important;
- background-color: tomato !important; /**/
- }
- /* for some reason when left out User Tips drifts downward. */
- ul.j-content-types.js-browse-filter-toggle-set li a{
- height: 18px!important;
- font-size: 13px !important;
- padding:0px !important;
- vertical-align: middle !important;
- display:inline-block;
- overflow:hidden !important;
- white-space:nowrap !important;
- /*background-color: tan !important;/**/ }
- ul.j-content-types.js-browse-filter-toggle-set li.filter-All.Content a {
- width: 18px !important;
- background-color: tomato !important; /**/
- }
- ul.j-content-types.js-browse-filter-toggle-set li.filter-Announcements a {
- width: 58px !important;
- background-color: tomato !important; /**/
- }
- ul.j-content-types.js-browse-filter-toggle-set li.filter-User.Tips a {
- width: 58px !important;
- /*background-color: orchid !important; /**/
- }
- ul.j-content-types.js-browse-filter-toggle-set li.filter-Discussions a span.js-shrinkable{
- display:inline-block; /* No workie without */
- overflow:hidden !important;
- white-space:nowrap !important;
- width: 70px !important;
- background-color: tomato !important; /**/
- }
- /*
- These are the three pulldowns.
- initally:
- All discussions
- Type to filter by text
- Sort by latest activity: newest first */
- /* Top portion of the header. First two "lines" on the page.
- Second lines is:
- My Subscriptions Content People Search Post */
- div#j-header-wrap {
- margin-bottom: 2px !important;
- /*background-color: antiquewhite !important; /* */ }
- /* even number strips. Lower header. Large box. Starts with All content Annoucements User tips Discussions includes contents listing.
- div.j-layout.j-layout-sl.clearfix.j-contained {
- } */
- /* The second line in the header FYI
- limit selection to just user's content
- div.j-layout.j-layout-sl.clearfix.j-contained.j-contained-tabs.j-browse-content.j-rc5
- form#js-browse-controls div.j-browse-sorts {} */
- /* move up a bit the horizonal nav bar. In the main css, the sidebar was made horizontal */
- div .j-colum-wrap-s nav.j-second-nav ul {
- /* margin-top: -10px !important; /**/
- background-color: orchid !important; /**/ }
- /* Adjust height associated with the band in back of
- "All Discussions" the spans the width of the window. */
- div.j-layout.j-layout-sl form#js-browse-controls div.j-browse-filter-row.j-content-filter {
- height: 20px !important;
- /* background-color: tan !important; /* */
- }
- /* All discussions */
- select.j-browse-filter.js-browse-filter,
- #js-browse-controls #j-browse-filters #j-sort,
- div.j-browse-sorts.j-browse-filter-row span.j-browse-search input {
- padding: 0 !important;
- vertical-align: middle!important;
- font-size: 12px !important;
- height: 20px !important;
- border-color: #9b9b9b !important;
- background-color: #f2f2f2 !important;
- }
- select.j-browse-filter.js-browse-filter{
- text-align: left !important;
- width: 130px !important; }
- /* "Type to filter by text" on list of discussions in a community. */
- div.j-browse-sorts.j-browse-filter-row span.j-browse-search input {
- width: 130px !important;
- text-align: center !important;
- }
- /* Sort by ... */
- #js-browse-controls #j-browse-filters #j-sort {
- margin: 0 !important;
- text-align: left !important;
- width: 230px !important;
- margin-top: -16px !important;
- }
- div.j-pagination {
- margin-top: -32px !important;
- height: 22px !important;
- width: 140px !important;
- /*background-color: yellow !important; /**/
- }
- div.j-pagination span.j-pagination-prevnext {
- padding-left: 0 !important;
- padding-right: 0 !important;}
- } /* media all and (max-width: 499px)
- end of smart phone adjustment */
- /* ==================================== */
- /* ...... For medium and large size windows ...... */
- @media all and (min-width: 500px) {
- /* Space between first and second line of the upper header space. Second line starts
- with Signin / Signout */
- nav#j-globalNav-bg {
- height: 26px !important;
- }
- /* All User(nnn) Announcements User Tips(nnn) Discussions(nnn)*/
- div#jive-body div.j-browse-filter-row.j-type-row.apple-custom-line-height{
- margin: 5px 0 0 0 !important;
- margin-top: 5px !important;
- height:31px !important;
- margin:10px 0 15px !important;/**/
- /*background-color: teal !important; /**/
- }
- div#jive-body div.j-layout {
- margin: 5px 0 0 0 !important;
- /* background-color: grey !important; /* */
- }
- /* for some reason when left out User Tips drifts downward. */
- ul.j-content-types.js-browse-filter-toggle-set li a{
- height: 18px!important;
- font-size: 16px !important;
- padding:0px !important;
- vertical-align: middle !important;
- display:inline-block;
- overflow:hidden !important;
- white-space:nowrap !important;
- /* background-color: tan !important; /**/ }
- /* "Contact6" seen on top right */
- div#body-apple header ul#contact-support-link {
- margin-top: -6px !important;
- margin-right: -40px !important;
- /* background-color: palegoldenrod !important; /**/
- }
- /* Support Communities Content
- Move breadcrumb to the upper left, thus avoiding the repeating of Communities and content */
- section#j-main nav#jive-breadcrumb { /* add more selectors to overwhele main css */
- position: absolute !important; /* override what in the main css */
- text-align: left !important;
- top: -73px !important; /* === if you want to run this with out the main css,
- change from -120 to -80px === */
- left: 0px !important;
- font-size: 20px !important;
- width: inherit !important; /* override what in the main css */
- /* background-color: tan !important;/**/
- }
- /* Adjust height associated with the band in back of
- "All Discussions" the spans the width of the window. */
- div.j-layout.j-layout-sl form#js-browse-controls div.j-browse-filter-row.j-content-filter {
- height: 30px !important;
- /* background-color: tan !important; /* */
- }
- /* Pagination info */
- div span.j-pagination-prevnext.full-pagination{
- margin:0 !important;
- /*background-color: pink !important; /* */ }
- /* All discussions */
- select.j-browse-filter.js-browse-filter {
- padding: 5px 6px 5px 8px !important;
- font-size: 14px !important;
- width: 160px !important;
- text-align: left !important;
- border-color: #9b9b9b !important;
- background-color: #f2f2f2 !important;
- }
- /* "Type to filter by text" on list of discussions in a community. */
- div.j-browse-sorts.j-browse-filter-row span.j-browse-search input {
- padding: 5px 6px 5px 8px !important;
- font-size: 14px !important;
- width: 160px !important; /* Was 220px */
- text-align: center !important;
- border-color: #9b9b9b !important;
- background-color: #f2f2f2 !important;
- }
- /* Sort by ... */
- #js-browse-controls #j-browse-filters #j-sort {
- border-color: #9b9b9b !important; /* grey, Apple's color */
- padding: 6px 6px 8px 28px !important;
- font-size: 14px !important;
- background-color: #f2f2f2 !important;
- text-align: left !important;
- height: 30px !important;
- padding: 2px !important;
- width: 260px !important;
- }
- /* Hover over */
- /* All discussions */
- select.j-browse-filter.js-browse-filter:hover,
- /* text */
- div.j-browse-sorts.j-browse-filter-row span.j-browse-search input:hover,
- /* sort by ... */
- #js-browse-controls #j-browse-filters #j-sort:hover {
- border-color: #42aaff !important; /* light blue */
- }
- } /* media all and (min-width: 500px) */
- } /* end of moz-document */
- /* ==================================== */
- /* Disply of all posts in a discussion.
- examples:
- https://discussions.apple.com/message/30492563#message30492563
- https://discussions.apple.com/thread/7628966
- ==================================== */
- @-moz-document
- url-prefix(https://discussions.apple.com/message/),
- url-prefix(https://discussions.apple.com/thread/){
- /* incomplete title on top left of page. So use breadcrumb trail. */
- nav div#apple-site-title {display: none !important;} /* */
- /* Contact support */
- nav ul#contact-support-link {margin-top: 2px !important;}
- /* for small windows such as a smart phone. */
- @media all and (max-width: 499px) {
- }
- /* ==================================== */
- /* For medium and large size windows... */
- @media all and (min-width: 500px) {
- /* Log in My Subscriptions Content People Search Post Lounge */
- div#second-row {
- padding-top: 2px !important;
- /* background-color: blue !important; */ }
- /* My Subscriptions Content People Search Post Lounge */
- div ul#menubar.sub-nav-wrap {margin-top: 9px !important;}
- /* Breadcrumb trail
- Example:
- Support Communities / Content
- Move breadcrumb to the upper left, thus avoiding the repeating of Communities */
- section#j-main nav#jive-breadcrumb ul { /* add more selectors to overwhele main css */
- position: absolute !important; /* override what in the main css */
- text-align: left !important;
- top: -25px !important; /* === if you want to run this with out the main css,
- change from -85 to ?? px === */
- left: 0px !important;
- font-size: 20px !important;
- width: inherit !important; /* override what in the main css */
- height: 30px !important;
- /* background-color: yellow !important; /* */
- }
- /* First two lines of the header */
- div#j-header-wrap {
- margin-bottom: 10px !important;
- /* background-color: tan !important; /* */ }
- /* ASC displays the message when original poster posts from a message
- Sometime appearing article name from where the poster made the original post
- example:
- HT203995: Mail settings you might need from your email provider
- Learn about Mail settings you might need from your email provider
- */
- div div#jive-body-intro-content {
- padding-bottom: 0px !important;
- /* There is a margin tag in larger user css. To override, you need to use the margin
- tag. The margin-bottom will not work.
- To see the effect, you need to reload the page. */
- margin: -20px 40px 0px 40px !important;
- /* background-color: pink !important; /* */}
- /* Seems to be some filler area between messaage and following [pulldown].
- Seem to have to use the exact name to override.
- When in stylish editor, efects page after save, but to see chanage in debug window you need to reload. */
- .j-thread #body-apple .thread-container-wrapper {
- padding-bottom: 0px !important;
- margin: 0px 40px !important;
- /* background-color: grey !important; */}
- /* following [pulldown]. This is the encompassing area. It's the width of the window [mostly].*/
- header.js-original-header.apple-overflow-hidden {
- padding-top: 0px !important;
- margin-top: 0px !important;
- }
- /* Follow [pulldown]
- just the area of Follow [pulldown].
- reduces the space between these items.Follow [pulldown], and first post. */
- div ul.apple-social-actions-toolbar {
- margin-top: -20px !important;
- } /* */
- } /* media all and (min-width: 500px) */
- } /* end of moz-document */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement