Advertisement
rccharles

ASC CSS 0.64 version

Jun 17th, 2016
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 48.08 KB | None | 0 0
  1.     /*    
  2.         Custom Cascading Style Sheet for Apple Support Communities board system introduced    
  3.         in 2014-06    
  4.        
  5.             Copyright 2014, 2016 Hiroto,  et. al.    
  6.        
  7.         GNU General Public License    
  8.        
  9.         This program is free software: you can redistribute it and/or modify    
  10.         it under the terms of the GNU General Public License as published by    
  11.         the Free Software Foundation,  version 3    
  12.        
  13.         This program is distributed in the hope that it will be useful,    
  14.         but WITHOUT ANY WARRANTY; without even the implied warranty of    
  15.         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    
  16.         GNU General Public License for more details.    
  17.        
  18.         For a copy of the GNU General Public License    
  19.         see <http://www.gnu.org/licenses/>.      
  20.        
  21.         For more information on what the css does, see:    
  22.         https://discussions.apple.com/docs/DOC-7501    
  23.        
  24.         Change Log    
  25.         Version 0.6:    
  26.         -- Fold versions 0.43 and 0.50 into this version.    
  27.         -- Add GNU General Public License    
  28.         -- Add media tag to select on screen size.    
  29.         -- Scroll large code listings    
  30.         -- Change color highlights unread posts    
  31.         -- Fix size of thread content display.    
  32.         Version 0.61:    
  33.         -- Narrow text for printing listing of this file    
  34.         -- Delete "added in" comments about versioning.  Seems obvious to me without.    
  35.         -- More fixing of width of content display size of large window.    
  36.         -- Delete @-moz-document special case adjustment for max-width    
  37.         -- Size adjust for thread content and reply for large screens    
  38.         -- Reduce the amount of duplicate code    
  39.         Version 0.62    
  40.         -- avoid userstyles.org/ error messages    
  41.         -- pacify ASC badges for those who want to enable the code  
  42.            [ Note: Some badges are turned off in 0.63 ]  
  43.            https://discussions.apple.com/message/30002950#30002950    
  44.            ------> How to get rid of discussion list Badges Lines 115 to 146 <----    
  45.            Go down find this line of code    
  46.              .j-status-level.expertise-tile { display: none !important; }    
  47.            You need to eliminate the slash / star * before the line of code and    
  48.            the star * slash / after the line of code.    
  49.        
  50.            To get rid of all badges everywhere, uncomment the next three lines of code.    
  51.         Version 0.63  
  52.         -- Decided on a minimalist philosophy to focus on reading the posts.  
  53.         -- Don't display badges on list of discussion posts  
  54.         -- Footers should be short not take up a half a page.  
  55.              Uncomment the three lines of code to accomplish this after the  
  56.              "Rambling footer stuff will strink". Note some bombblast  
  57.              will remain, see adjustment at the end of the sheet.  
  58.                #globaldisclaimer.sosumi {display: none !important; }        
  59.                #j-footer #breadcrumbs {display: none !important; }  
  60.                p.gf-buy {display: none !important; }  
  61.         -- Show points on the profile popup!  
  62.         Version 0.64
  63.         -- Align left with right side header info
  64.         -- Delete excessive white space in header
  65.         -- Delete redundant wording in header
  66.         -- Change two vertical nav bars to horizontal
  67.         -- Purge footer bombblast
  68.         -- Support Spanish and Portuguese forums  
  69.         -- Support decorator option on the url
  70.     */    
  71.         /*  
  72.           Spanish  
  73.             https://communities.apple.com/es/docs/DOC-1004  
  74.           Português
  75.             https://communities.apple.com/pt/welcome
  76.         */      
  77.     @-moz-document    
  78.         domain(discussions.apple.com),    
  79.         domain(communities.apple.com),    
  80.         domain(discussionsjapan.apple.com),    
  81.         domain(discussionskorea.apple.com)    
  82.     {    
  83.         /* Common css for small and large windows */    
  84.        
  85.         /* Scroll code listings.  set max-height of syntax highlighted code in thread    
  86.            content browser   v0.6 */    
  87.         .jive-rendered-content .dp-highlighter {    
  88.            max-height: 500px !important;    
  89.            overflow: auto !important;    
  90.         }                                                                                  
  91.         /* Scroll code listings. set max-heiht of pre code (visible when javascript is disabled)    
  92.         v0.6 */    
  93.         .jive-rendered-content pre {    
  94.            max-height: 500px !important;    
  95.            overflow: auto !important;    
  96.         }        
  97.                                                                                  
  98.         /* highlights in dark blue unread posts when logged in.  v0.6    
  99.        
  100.         All your posts    
  101.         https://discussions.apple.com/content?filterID=participated~objecttype~objecttype[thread]      
  102.        
  103.         Discussions you authored    
  104.         https://discussions.apple.com/content?filterID=contentstatus[published]~objecttype~objecttype[thread]      
  105.        
  106.         To see the discussions you have read and not read in a community    
  107.         The suffix to use for any ASC forum, placed after the basic link to any forum, it's    
  108.         /content?filterID=contentstatus[published]~objecttype~objecttype[thread]    
  109.        
  110.         for iPhone community this would be:    
  111.         https://discussions.apple.com/community/iphone/using_iphone/content?filterID=contentstatus[published]~objecttype~objecttype[thread]      
  112.        
  113.        
  114.        
  115.         */    
  116.         .j-td-title strong {color:#191970 !important; font-weight: normal !important;}    
  117.        
  118.                    
  119.             /* added or changed in 0.63 'til 0.64 insertion point */    
  120.              
  121.         /* Avoid double scrolling in posts which happened here:    
  122.            https://discussions.apple.com/docs/DOC-9254    
  123.            #globalfooter and #globaldisclaimer elements which originally define the width    
  124.            to fixed value as 980px   0.62    
  125.         */    
  126.        
  127.         #globalfooter, #globaldisclaimer { width: 80% !important; }    
  128.        
  129.         /* Get more vertical space.  This line gets rid of the global Apple navigation bar at the top.    
  130.            The black bar with Apple-Logo Mac iPad iPhone Watcsh Tv Music Support    
  131.         */    
  132.         #global-nav-wrapper {display: none !important; }    
  133.        
  134.             /* Pacify badges    
  135.                These four lines, when uncommented, eliminate the display of badges. Some or all of the  
  136.                lines are commend out.  Each comment starts all the way to the left.    
  137.         */    
  138.        
  139.         /* -------------------------------------------------------------------------------    
  140.             THREAD CONTENT BROWSER    
  141.             status level expertise badge    
  142.             To avoid formatting problems of badges overlapping next post, enable this line.    
  143.         */    
  144.              .j-status-level.expertise-tile { display: none !important; }      
  145.        
  146.         /* ---------------------------------------------------------------------------------    
  147.            THREAD LIST BROWSER    
  148.            leader board    
  149.         */    
  150.              .jive-widget-leaderboardwidget {display: none !important; }      
  151.        
  152.           /* ---------------------------------------------------------------------------------    
  153.               PROFILE    
  154.               profile status container for specialties and awards    
  155.           */    
  156.     /*    .profile-status-container { display: none !important; } */    
  157.        
  158.         /* profile modal note status row for specialties and awardds */    
  159.     /*    .status-row { display: none !important; } */    
  160.        
  161.             /* Rambling footer stuff will sink */          
  162.             /* no more legalistic bomblast */    
  163.             #globaldisclaimer.sosumi {display: none !important; }        
  164.             /* Not a complete path to here, so why be mislead */    
  165.             #j-footer #breadcrumbs {display: none !important; }        
  166.             /* Guess by now folks know how to buy an apple product */    
  167.             p.gf-buy {display: none !important; }      
  168.                
  169.             /* Reveal points in popup when you click on an ASC id or aviator.  
  170.                thanks to turingtest2.  
  171.                  https://discussions.apple.com/message/30179703#30179703 */    
  172.             .level-points > span {display: inherit !important;}     /* Display point information */    
  173.            
  174.             /* 0.64 insertion point */    
  175.              
  176.         /* Use less space on the top of the page. We see this every day.  I don't use any  
  177.            of the links here anyway.  Ok, to make them smaller.  
  178.            The goal is not to have to do a "manditory" page down to get to posts. 0.64 */  
  179.          
  180.         /* Move up the "New  My Subscriptions ..."  nav bar.  Looks  better aligned with
  181.            "Apple Support Communities" */  
  182.         #j-globalNav { margin-top: -12px !important;}  
  183.         /* need less height for "Apple Support Communities   New My Subscriptions ... "
  184.            after moving up the nav bar*/  
  185.         #j-globalNav-bg {  
  186.             height: 20px !important;  
  187.             border-bottom: none !important;  
  188.         }  
  189.         /* Less space below avator ... */  
  190.         #j-header-wrap { margin-bottom: 0px !important;}  
  191.         /* move up "Apple Support Communities  /  Content"  
  192.            When windows size is contracted, these words will
  193.            overlay words to the left. "... | logout"  
  194.            First nav bar doesn't overlay "Apple Support Community". ,,,*/  
  195.         #jive-breadcrumb {  
  196.             margin-top: -10px !important;  
  197.             margin-bottom: 0px !important;  
  198.             right: 40px !important;    
  199.         }  
  200.          
  201.          
  202.         /* Less space above "All Content User Tips Discussions" nav bar */  
  203.         .j-layout { margin-top: 10px !important;}  
  204.          
  205.         /* Purge the words "Find helpful content and discussions." Redundant.  
  206.            Why are we here? Pro users will know. */  
  207.         #apple-full-subheader {display: none !important;}  
  208.                
  209.         /* Adjust the h2 header to take up less room on the page.  
  210.            Let's focus on the posts. */  
  211.         h1, h2 {  
  212.           font-size: 24px !important;;  
  213.           line-height: 28px !important;;  
  214.         }  
  215.         .j-page-header {  
  216.           margin-top: 0px !important;  
  217.           margin-bottom: 0px !important;  
  218.         }  
  219.          
  220.            
  221.         /* Combine duplicate code here.  v 0.61 */    
  222.        
  223.         /* ---------------------------------------------------------------------------------    
  224.             BODY    
  225.         */    
  226.         body.j-body-welome,             /* Welcome */    
  227.         body.j-body-place,              /* Community */    
  228.         body.j-body-yourwork,           /* Content */    
  229.         body.j-body-home,               /* Activity */    
  230.         body.j-body-yourconnections,    /* People */    
  231.         body.j-body-preferences,        /* Preferences */    
  232.         body.jive-body-content,         /* Thread */    
  233.         body.jive-body-search,          /* Search */    
  234.         body.jive-view-profile          /* Profile */    
  235.         {                                                                       /* v0.43 */    
  236.             background: white !important;   /* Effectively overrides most of the body color.    
  237.                                               These are more specific.  */    
  238.         }    
  239.        
  240.        
  241.         /* ---------------------------------------------------------------------------------    
  242.             TEXT    
  243.         */    
  244.         /* line spacing */    
  245.         .jive-content { line-height: 1.25 !important; }    
  246.        
  247.        
  248.         /* ---------------------------------------------------------------------------------    
  249.             ASC HEADER AREA    
  250.         */    
  251.         #j-header,    
  252.         #j-compact-header,    
  253.         #j-footer { width: 100% !important; }    
  254.        
  255.         /* navigation header (Apple Support Communities ...) */    
  256.         #j-header-wrap {    
  257.             padding: 0px 40px !important;    
  258.             margin: 0px 0px 15px !important;    
  259.         }    
  260.         #j-globalNav-bg {    
  261.             padding: 0pX !important;    
  262.             margin: 0px !important;    
  263.         }    
  264.         #j-satNav { overflow: visible !important; }    
  265.          
  266.        
  267.        
  268.         /* ---------------------------------------------------------------------------------    
  269.             THREAD LIST BROWSER - list of discussions in a Community    
  270.         */    
  271.        
  272.         /* show author name in 'Latest activity' column in detailed list view of threads */    
  273.         td.j-td-date > span { display : inherit !important; }    
  274.        
  275.         /* main section */    
  276.         #j-main { padding: 0px !important; }    
  277.        
  278.         /* table cell title */    
  279.         .jive-table td.jive-table-cell-title { padding: 5px !important; }    
  280.              
  281.         /* thread list view column widths */                                        /* v0.43 */    
  282.         .j-browse-details .j-td-title { max-width: none !important; }    
  283.         .j-browse-details .j-td-date {    
  284.             width: auto !important;    
  285.             max-width: 20% !important;    
  286.         }    
  287.         /* threads list view table tr td  */    
  288.         .j-browse-details-tbody tr td { padding: 5px !important; }    
  289.        
  290.         /* communities list view table tr td */    
  291.         .jive-communities-listing table tr td { padding: 5px !important; }    
  292.        
  293.         /* thumbnails view width */    
  294.         .j-browse-content .j-thumb-view,    
  295.         .j-browse-places .j-browse-thumbnails,    
  296.         .j-browse-people .j-browse-thumbnails { width: 100% !important; }    
  297.        
  298.         /* thumbnail view list item margin */                                        /* v0.43 */    
  299.         .j-browse-content .j-thumb-view > li,    
  300.         .j-browse-places .j-browse-thumbnails > li { margin-right: 20px !important; }    
  301.        
  302.         /* social actions row */    
  303.         .apple-social-actions-wrapper { margin-right: 0px !important; }    
  304.         .j-thread .j-social-actions { margin-right: 40px !important; }    
  305.        
  306.         /* apple header, subheader row ("Find helpful contents..." etc )    fixed in v0.43 */    
  307.         #apple-full-subheader,    
  308.         #apple-activity-subheader {    
  309.             padding: 0px 40px 15px !important;    
  310.             margin-bottom: 15px !important;    
  311.         }    
  312.         #apple-full-header h2,    
  313.         #apple-activity-header h2 { padding: 0px 40px !important; }    
  314.        
  315.         /* page header */    
  316.         .j-body-place #jive-body > header.j-page-header {    
  317.             margin-left: 40px !important;    
  318.             margin-right: 40px !important;    
  319.             width: auto !important;    
  320.         }    
  321.        
  322.         /* browser filter row */    
  323.         #j-browse-filters { margin-bottom: 5px !important; }    
  324.        
  325.         /* browser controls row */    
  326.         .j-type-row { margin-bottom: 0px !important; }    
  327.        
  328.         /* browser controls content types (All Contents|User Tips|Discussions) width */    
  329.         #js-browse-controls .j-type-row .j-content-types { width: 90% !important; }    
  330.        
  331.         /* browser controls view toggle (Thumbnails|Details) width */    
  332.         #js-browse-controls #j-item-view-toggle {    
  333.             width: 10% !important;    
  334.             display: table !important;    
  335.         }    
  336.        
  337.         /* content filter row (All|Open|Answered|Threads) */    
  338.         .j-content-filter {    
  339.             background: white !important;    
  340.             margin-bottom: 10px !important;    
  341.         }      
  342.        
  343.         /* container canvas */    
  344.         .j-contained {    
  345.             margin-left: 40px !important;    
  346.             margin-right: 40px !important;    
  347.         }    
  348.        
  349.         /* category filter bar */    
  350.         .jive-content-filter {    
  351.             left: 0px !important;    
  352.             width: 80% !important;    
  353.         }    
  354.         .touchcarousel-wrapper { width: 100% !important; }    
  355.         .touchcarousel .tc-paging-container { width: 90% !important; }                /* v0.41 */    
  356.        
  357.         /* more search results available */    
  358.         #j-more-search-results-available { padding: 10px !important; }    
  359.        
  360.         /* misc */    
  361.         .jive-widget { margin-bottom: 10px !important; }    
  362.         .j-column { margin-bottom: 10px !important; }    
  363.        
  364.        
  365.         /* ---------------------------------------------------------------------------------    
  366.             THREAD CONTENT BROWSER - Displays the contents of the posts.    
  367.         */    
  368.         /* thread header */    
  369.         .apple-thread-header {    
  370.             width: auto !important;  /* v0.6 no more*/    
  371.             margin-bottom: 10px !important;    
  372.             margin-left: 40px !important;    
  373.         }    
  374.        
  375.         /* thread original post */    
  376.         .j-thread .jive-content { margin: 0px 40px 0px 140px !important; }    
  377.        
  378.         /* thread replies ul */    
  379.         ul.jive-discussion-replies.jive-discussion-indent-0 { margin: 0px !important; }    
  380.        
  381.         /* thread reply li */    
  382.         .jive-discussion-replies li.reply { margin-top: 15px !important; }    
  383.        
  384.         /* thread view indent */    
  385.         .jive-discussion-indent-1 li.reply { padding-left: 15px !important; }    
  386.        
  387.         /* thread info */    
  388.         .jive-thread-info {    
  389.             padding: 10px 40px !important;    
  390.             margin: 0px !important;    
  391.         }    
  392.        
  393.         /* thread answer rollup */    
  394.         .j-answer-rollup { margin: 30px 0px !important; }    
  395.        
  396.         /* thread post header (poster, date, response to) */    
  397.         .j-thread-post > header {    
  398.             padding: 10px 20px 0px 20px !important;    
  399.             margin-bottom: 12px !important;    
  400.         }    
  401.        
  402.         /* thread post section (message body) */    
  403.         .j-thread-post section {    
  404.             padding: 0px 20px !important;    
  405.             margin-bottom: 6px !important;    
  406.         }    
  407.        
  408.         /* thread post footer (Like|Reply etc) */    
  409.         .j-thread-post footer { padding: 0px 15px !important; }    
  410.         .j-thread-post footer > ul { padding: 2px !important; }    
  411.         .j-thread-post footer > .acclaim-container { margin: 5px 0px !important; }    
  412.        
  413.         /* thread rendered content. The text in the orginal post and replies.  */    
  414.         .jive-rendered-content {    
  415.             padding-bottom: 4px !important;    
  416.         }    
  417.        
  418.         /* thread rendered content quote & pre */    
  419.         .jive-rendered-content .jive-quote,    
  420.         .jive-rendered-content .jive-pre {    
  421.             margin: 5px 15px !important;    
  422.         }    
  423.        
  424.         /* thread reply footer (Return to Community|Go to original post) */    
  425.         #jive-thread-reply-footer {    margin-top: 10px !important; }    
  426.        
  427.         /* more like this links, incoming links */    
  428.         #apple-related-threads { margin: 0px 40px !important; }    
  429.         #apple-related-threads .j-box { margin-bottom: 0px !important; }    
  430.         .j-icon-list li { padding: 3px 0px 3px 22px !important; }    
  431.        
  432.        
  433.         /* ---------------------------------------------------------------------------------    
  434.             INLINE EDITOR    
  435.         */    
  436.         /* editor */    
  437.         .jive-discussion-replies li.addReply { margin: 50px 40px 0px !important; }    
  438.        
  439.        
  440.         /* ---------------------------------------------------------------------------------    
  441.             ADVANCED EDITOR    
  442.         */    
  443.         /* content area */    
  444.         .j-thread .jive-content.jive-create-thread,    
  445.         .jive-body-formpage-document .jive-content.doc-page {    
  446.             margin: 0px 40px !important;    
  447.             padding: 0px !important;    
  448.         }    
  449.        
  450.         /* header */    
  451.         .j-thread .jive-content.jive-create-thread h2,    
  452.         .jive-body-formpage-document .jive-content.doc-page h2 { padding: 0px !important; }    
  453.        
  454.         /* editor panel */    
  455.         .j-thread .jive-content.jive-create-thread #jive-compose-title,    
  456.         .j-thread .jive-content.jive-create-thread .jive-editor-panel.jive-large-editor-panel,    
  457.         .jive-body-formpage-document .jive-content.doc-page #jive-compose-title,    
  458.         .jive-body-formpage-document .jive-content.doc-page .jive-editor-panel.jive-large-editor-panel { margin: 0px !important; }    
  459.        
  460.         /* line height in editor */    
  461.         body.tiny_mce_content { line-height: inherit !important; }    
  462.        
  463.         /* replying to */    
  464.         .jive-body-formpage-comment .jive-thread-message { margin: 0px !important; }      
  465.        
  466.         /* buttons (Reply|Cancel) */    
  467.         .j-publishbar,    
  468.         .jive-body-formpage .jive-composebuttons { margin: 20px 40px 0px !important; }    
  469.        
  470.        
  471.         /* ---------------------------------------------------------------------------------    
  472.             SEARCH RESULTS    
  473.         */    
  474.         /* search result entry */    
  475.         .j-search-results-main-container .j-search-result    
  476.             { padding: 10px !important; }    /* v0.43 */    
  477.        
  478.        
  479.         /* ---------------------------------------------------------------------------------    
  480.             DOC (USER TIP)    
  481.         */                                                                            /* v0.43 */    
  482.         /* user tip canvas */    
  483.         .jive-body-content.j-doc .j-column-wrap-l { margin: 0px 40px !important; }    
  484.        
  485.        
  486.         /* ---------------------------------------------------------------------------------    
  487.             PROFILE    
  488.         */                                                                            /* v0.43 */    
  489.         /* header & navigation bar (Bio|Activity|Content|Communities) */    
  490.         .j-view-profile .j-page-header { padding: 10px 40px !important; }    
  491.         .j-bigtab-nav { margin: 10px 40px !important; }    
  492.        
  493.         /* Bio */    
  494.         .j-layout-l .j-column-wrap-l { width: 100% !important; }    
  495.        
  496.         /* Communities (places) sidebar ui blue marker adjustment    
  497.             (according to the sidebar width changed to 166px from 180px for selector:    
  498.             .j-layout-sl.j-browse-places .j-column-s in PLACES section)  */    
  499.         .j-view-profile .j-second-nav ul > li.active  { width: 156px !important; }    
  500.        
  501.        
  502.        
  503.        
  504.       /* Wide screen browser    
  505.          ===================    
  506.        
  507.         This rule set will be fine for normal to wide window whose width is ca. 1265px or greater.    
  508.         However, it will not be beneficial to very narrow window of 700-900px in width.    
  509.       */    
  510.        
  511.       @media all and (min-width: 1265px)  
  512.       {                                               /* v0.6 */    
  513.         /* ---------------------------------------------------------------------------------    
  514.             BODY    
  515.         */    
  516.        
  517.         body {    
  518.             background: white;    
  519.             min-width: 0px !important;    
  520.         }    
  521.         #body-apple {    
  522.             width: 100% !important;    
  523.             min-width: 0px !important;    
  524.         }    
  525.        
  526.        
  527.         /* ---------------------------------------------------------------------------------    
  528.             ASC TOP PAGE    
  529.         */    
  530.         #jive-widgetframe-body_5780758 > .content-large,    /* discussions.apple.com */    
  531.         #jive-widgetframe-body_188974  > .content-large,    /* discussionsjapan.apple.com */      
  532.                                                             /* v0.42 */    
  533.         #jive-widgetframe-body_20835   > .content-large        /* discussionskorea.apple.com */      
  534.                                                             /* v0.42 */    
  535.         {                                                    /* added parent id in v0.41 */    
  536.             text-align: center !important;    
  537.             overflow-x: auto !important;    
  538.             overflow-y: hidden !important;    
  539.         }    
  540.         .apple-communities {    
  541.             display: inline-block !important;    
  542.             width: 1120px !important;    
  543.             text-align: left !important;    
  544.         }    
  545.        
  546.        
  547.         /* ---------------------------------------------------------------------------------    
  548.             THREAD LIST BROWSER - list of discussions in a Community    
  549.         */    
  550.        
  551.        
  552.         /* ------------------    
  553.             When uncommented, hide Like and Bookmark columns in thread list view.    
  554.         */                                                                /* v0.43 (optional) */    
  555.         /* ~~~~~~~~~~~~~~~~~~~~ (currently commented out) ~~~>    
  556.         .j-browse-details .j-td-likes,    
  557.         .j-browse-details .j-td-bookmarks { display: none !important; }    
  558.         .j-browse-details > table.j-browse-list > thead.j-rc4 > tr > th + th,    
  559.         .j-browse-details > table.j-browse-list > thead.j-rc4 > tr > th + th + th    
  560.             { display: none !important; }    
  561.         .j-browse-details > table.j-browse-list > thead.j-rc4 > tr > th + th + th + th    
  562.             { display: table-cell !important; }    
  563.         <~~~~~~~~~~~~~~~~~~~~  */    
  564.        
  565.        
  566.         /* ------------------    
  567.             Treatment for narrow window    
  568.             Method 1 (minimum optimization)    
  569.        
  570.             Adjust thread list table's shift and margin to maximize its width.    
  571.         */                                                                                /* v0.43 */    
  572.         .j-layout-sl.j-browse-content .j-column-wrap-l { margin-left: -166px !important; }    
  573.         .j-layout-sl.j-browse-content .j-column-l      { margin-left: 166px !important; }    
  574.         .j-layout-sl.j-browse-content .j-column-s      { width: 166px !important; }    
  575.         /* ------------------ */    
  576.        
  577.         /* ------------------    
  578.             Swap left-right positions of thread list table and sidebar ui (filters & actions)    
  579.         */                                                                                /* fixed in v0.43 */    
  580.         /* let thread list table float left */    
  581.         .j-layout-sl.j-browse-content .j-column-wrap-l,    
  582.         .j-layout-sl.j-browse-places .j-column-wrap-l { float: left !important; }    
  583.        
  584.         /* let sidebar ui float right */    
  585.         .j-layout-sl.j-browse-content .j-column-s,    
  586.         .j-layout-sl.j-browse-places .j-column-s { float: right !important; }    
  587.         /* ------------------ */    
  588.        
  589.        
  590.         /* ---------------------------------------------------------------------------------    
  591.             THREAD CONTENT BROWSER - Displays the contents of the posts.    
  592.         */    
  593.        
  594.         /*    
  595.           Put the brakes on infinite expansion of text.  Sets how wide the text display area in a    
  596.           window can get. Eventhou the window maybe large, folks find it easier to read    
  597.           the words when the text area is smaller.    
  598.         */    
  599.         /* Original post.  Includes answering post if present */    
  600.         /* posts in thread */    
  601.         /* Types of replies */    
  602.         #jive-thread-messages-container,    
  603.         /* Advanced reply */    
  604.         #jive-body {    
  605.             max-width: 1100px !important;    /* v0.61 */    
  606.          }    
  607.            
  608.        
  609.         /* ------------------    
  610.             Treatment for narrow window    
  611.             Method 1 (minimum optimization)    
  612.        
  613.             Adjust community list table's shift and margin to maximize its width.    
  614.         */                                                                            /* v0.43 */    
  615.         .j-layout-sl.j-browse-places .j-column-wrap-l { margin-left: -166px !important; }    
  616.         .j-layout-sl.j-browse-places .j-column-l      { margin-left: 166px !important; }    
  617.         .j-layout-sl.j-browse-places .j-column-l      { padding-left: 0px !important; }    
  618.         .j-layout-sl.j-browse-places .j-column-s      { width: 166px !important; }    
  619.         /* ------------------ */    
  620.        
  621.         /* ---------------------------------------------------------------------------------    
  622.             ACTIVITY STREAM    
  623.         */    
  624.         /* activity entry */    
  625.         .j-act-entry { padding: 5px 0px 10px 100px !important; }    
  626.        
  627.         /* activity title */    
  628.         .j-body-home .j-act-title { padding: 5px 0px 5px 24px !important; }    
  629.        
  630.         /* activity body & comment */                                                /* v0.43 */    
  631.         .j-body-home .j-act-init { padding: 5px 0px 10px 100px !important; }    
  632.         .apple-activity-comments-wrapper { margin-left: 0px !important; }    
  633.        
  634.         /* Like list */    
  635.         .j-act-grouped .j-act-g-item { padding: 3px !important; }    
  636.        
  637.         /* -----------------------------------------------------------------------------------    
  638.            PLACES    
  639.         */                                                                            /* v0.43 */    
  640.         /* latest activity column */    
  641.         .j-browse-details .j-td-activity { max-width: 650px !important; }    
  642.        
  643.        
  644.       } /* end of media for wide screen */    
  645.        
  646.        
  647.       /* Narrow screen browser    
  648.          =====================    
  649.       */    
  650.        
  651.       @media all and (max-width: 1265px)  
  652.       {                                           /* v0.6 */    
  653.         /* styles for small screens ( narrow browsers window )    
  654.            ========================    
  655.            
  656.            Narrow is basically the same as the above wide screen browser except that this lets    
  657.            the sidebar column (filter column) in list view be pushed down or up in layout flow    
  658.            to make room for the main column (table column) when the window is not wide enough.    
  659.            It is done by setting margin-left and padding-left of main column to 0 and setting    
  660.            max-width of main column, which is currently 1019px.  Consequently, if window width    
  661.            is less than 1265px (= 40 (margin-left) + 1019 (main column) + 166 (sidebar colum)    
  662.            + 40 (margin-right)), sidebar column is pushed down or up according to document    
  663.            tree order. This rule set is intended to be useful for normal to narrow window    
  664.            whose width is in range ca. 700-1400px. It can be used for wider window as well but    
  665.            there's no point to set the max-width of main column in order to move sidebar    
  666.            column when the window is wide enough.    
  667.            
  668.            custom styles for Apple Support Communities board system introduced in 2014-06    
  669.            (v 0.5)    
  670.         */    
  671.                
  672.         /* -----------------------------------------------------------------------------------    
  673.             BODY    
  674.         */    
  675.        
  676.         body {    
  677.             background: white;    
  678.             min-width: 0px !important;    
  679.         }    
  680.        
  681.         #body-apple {    
  682.             width: 100% !important;    
  683.             min-width: 0px !important;    
  684.         }    
  685.        
  686.         /* Text reflow problem with New Activity Content etc.    
  687.            https://discussions.apple.com/thread/7517905      
  688.            Provide work-around.  Maybe Firefox issue.    
  689.         */    
  690.         #apple-site-title { font-size: 14px !important; }    
  691.        
  692.         /* -----------------------------------------------------------------------------------    
  693.             ASC TOP PAGE    
  694.         */    
  695.         #jive-widgetframe-body_5780758 > .content-large,    /* discussions.apple.com */    
  696.         #jive-widgetframe-body_188974  > .content-large,    /* discussionsjapan.apple.com v0.42 */    
  697.         #jive-widgetframe-body_20835   > .content-large     /* discussionskorea.apple.com v0.42 */    
  698.         {                                                   /* added parent id in v0.41 */    
  699.             text-align: center !important;    
  700.             overflow-x: auto !important;    
  701.             overflow-y: hidden !important;    
  702.         }    
  703.         .apple-communities {    
  704.             display: inline-block !important;    
  705.             width: 1120px !important;    
  706.             text-align: left !important;    
  707.         }    
  708.        
  709.        
  710.         /* -----------------------------------------------------------------------------------    
  711.             THREAD LIST BROWSER    
  712.         */    
  713.        
  714.         /* ------------------    
  715.             Hide Like and Bookmark columns in thread list view.    
  716.         */                                                                            /* v0.43 */    
  717.         /* ------------------ display in small screen        changed 0.6 */    
  718.         .j-browse-details .j-td-likes,    
  719.         .j-browse-details .j-td-bookmarks { display: none !important; }    
  720.         .j-browse-details > table.j-browse-list > thead.j-rc4 > tr > th + th,    
  721.         .j-browse-details > table.j-browse-list > thead.j-rc4 > tr > th + th + th    
  722.             { display: none !important; }    
  723.         .j-browse-details > table.j-browse-list > thead.j-rc4 > tr > th + th + th + th    
  724.             { display: table-cell !important; }    
  725.         /* ------------------ */    
  726.        
  727.        
  728.         /* ------------------    
  729.             Treatment for narrow window    
  730.             Method 1 (minimum optimisation)    
  731.        
  732.             Adjust thread list table's shift and margin to maximize its width.    
  733.         */                                                                            /* v0.43 */    
  734.         /* ------------------ (currently commented out)    
  735.         .j-layout-sl.j-browse-content .j-column-wrap-l { margin-left: -166px !important; }    
  736.         .j-layout-sl.j-browse-content .j-column-l      { margin-left: 166px !important; }    
  737.         .j-layout-sl.j-browse-content .j-column-s      { width: 166px !important; }    
  738.         ------------------ */    
  739.         /* ------------------    
  740.             Treatment for narrow window    
  741.             Method 2 (more beneficial to narrow window but has disadvantage for wide window)    
  742.            
  743.             Let thread list table have full width but not exceed 1019px to make room for sidebar    
  744.             ui (filters & actions).  If window is wide enough (>=1265px), sidebar ui is displayed    
  745.             next to thread list table, otherwise it is displayed below or above it (depending    
  746.             upon its document tree order).    
  747.            
  748.             * sidebar width (constant)    = 166px    
  749.             * thread table max width      = 1019px    
  750.             * canvas margin-left          = 40px    
  751.             * canvas margin-right         = 40px    
  752.             ---------------------------------------    
  753.             * total                       = 1265px    
  754.         */                                                                          /* v0.5 */    
  755.         /* ------------------ (currently active) */    
  756.         .j-layout-sl.j-browse-content .j-column-wrap-l { max-width: 1019px !important; }    
  757.         .j-layout-sl.j-browse-content .j-column-wrap-l { margin-left: 0px !important; }    
  758.         .j-layout-sl.j-browse-content .j-column-l      { margin-left: 0px !important; }    
  759.         .j-layout-sl.j-browse-content .j-column-s      { width: 166px !important; }    
  760.         /* ------------------ */    
  761.        
  762.         /* ------------------    
  763.             Swap left-right positions of thread list table and sidebar ui (filters & actions)    
  764.         */                                                                    /* fixed in v0.43 */    
  765.         /* let thread list table float left */    
  766.         .j-layout-sl.j-browse-content .j-column-wrap-l,    
  767.         .j-layout-sl.j-browse-places .j-column-wrap-l { float: left !important; }    
  768.        
  769.         /* let sidebar ui float right */    
  770.         .j-layout-sl.j-browse-content .j-column-s,    
  771.         .j-layout-sl.j-browse-places .j-column-s { float: right !important; }    
  772.         /* ------------------ */    
  773.        
  774.        
  775.         /* -----------------------------------------------------------------------------------    
  776.             THREAD CONTENT BROWSER - Displays the contents of the posts.    
  777.         */    
  778.        
  779.         /* -----------------------------------------------------------------------------------    
  780.             ACTIVITY STREAM    
  781.         */    
  782.         /* activity entry */    
  783.         .j-act-entry { padding: 5px 0px 10px 100px !important; }    
  784.        
  785.         /* activity title */    
  786.         .j-body-home .j-act-title { padding: 5px 0px 5px 24px !important; }    
  787.        
  788.         /* activity body & comment */                                                /* v0.43 */    
  789.         .j-body-home .j-act-init,    
  790.         .j-view-profile .j-act-init { padding: 5px 0px 10px 100px !important; }    
  791.         .apple-activity-comments-wrapper { margin-left: 0px !important; }    
  792.        
  793.         /* Like list */    
  794.         .j-act-grouped .j-act-g-item { padding: 3px !important; }    
  795.        
  796.        
  797.        
  798.         /* -----------------------------------------------------------------------------------    
  799.             PLACES    
  800.         */                                                                         /* v0.43 */    
  801.         /* latest activity column */    
  802.         .j-browse-details .j-td-activity { max-width: 650px !important; }    
  803.        
  804.        
  805.         /* ------------------    
  806.             Treatment for narrow window    
  807.             Method 1 (minimum optimisation)    
  808.        
  809.             Adjust community list table's shift and margin to maximize its width.    
  810.         */                                                                            /* v0.43 */    
  811.         /* ------------------ (currently commented out)    
  812.         .j-layout-sl.j-browse-places .j-column-wrap-l { margin-left: -166px !important; }    
  813.         .j-layout-sl.j-browse-places .j-column-l      { margin-left: 166px !important; }    
  814.         .j-layout-sl.j-browse-places .j-column-s      { width: 166px !important; }    
  815.         ------------------ */    
  816.         /* ------------------    
  817.             Treatment for narrow window    
  818.             Method 2 (more beneficial to narrow window but has disadvantage for wide window)    
  819.            
  820.             Let community list table have full width but not exceed 1019px to make room for    
  821.             sidebar ui (filters & actions).  If window is wide enough (>=1265px), sidebar ui    
  822.             is displayed next to community list table, otherwise it is displayed below or above    
  823.             it (depending upon its document tree order).    
  824.            
  825.             * sidebar width (constant)    = 166px    
  826.             * community table max width   = 1019px    
  827.             * canvas margin-left          = 40px    
  828.             * canvas margin-right         = 40px    
  829.             ---------------------------------------    
  830.             * total                       = 1265px    
  831.         */                                                                            /* v0.5 */    
  832.         /* ------------------ (currently active) */    
  833.         .j-layout-sl.j-browse-places .j-column-wrap-l { max-width: 1019px !important; }    
  834.         .j-layout-sl.j-browse-places .j-column-wrap-l { margin-left: 0px !important; }    
  835.         .j-layout-sl.j-browse-places .j-column-l      { margin-left: 0px !important; }    
  836.         .j-layout-sl.j-browse-places .j-column-l      { padding-left: 0px !important; }    
  837.         .j-layout-sl.j-browse-places .j-column-s      { width: 166px !important; }        
  838.         /* ------------------ */    
  839.        
  840.            /* Turn verical nav list into a horizontal nav list to save vertical space.  
  841.             This nav bar appear above the list of dicussions in the Your Content page.  
  842.             It appears below in the list of discussions page.  
  843.             A larger screen has room for vertical navigation, so let along. */  
  844.      
  845.         /* We need to make room for the horizontal nav bar.  A floating right, the area to the left  
  846.            is blank anyway. */  
  847.         .j-layout-sl.j-browse-content .j-column-s        
  848.             { width: 95% !important; }  /* let more room for horizontal navigation 0.64 */  
  849.          
  850.          
  851.         /* make nav bar horizontal amoung other things. */  
  852.         div .j-column.j-column-s nav ul li {  
  853.           float: left !important;    /* makes the list items horizontal */  
  854.           width: 120px !important;  /* width of each link */  
  855.           text-align: center !important;  
  856.           margin-left: 0 !important;  
  857.           padding-left: 0 !important;  
  858.         }  
  859.      
  860.         /* let a little space to the left of the navigation bar. */    
  861.             div .j-column.j-column-s nav  {  
  862.         margin-left: 0px !important;    
  863.             margin-top: 20px !important;  /* max of margin-bottom of proceeding line and margin-top */  
  864.         }  
  865.          
  866.        /* after making the navigating link horizontal, the blue overlay box doesn't immediately
  867.           jump to the draft box.  After clicking on any of the other links, the blue box  
  868.           parks on the draft box and will not move.  The function must be implemented in javascript which
  869.           cannot be changed from css. Purge it.  
  870.           Upper nav bar on your content */  
  871.           /* https://discussions.apple.com/people/<apple-id>/content */  
  872.        body.jive-view-profile.j-view-profile.j-view-profile-nonself.other .j-second-nav > ul:nth-child(1) > li:last-child,  
  873.            body.j-body-yourwork.other li.active:nth-child(7) {display: none !important;}  
  874.            
  875.        /* Found another blue overlay box.  
  876.           https://discussions.apple.com/people/<ASC_id>/content?manage=true */  
  877.           body.jive-view-profile.j-view-profile.j-view-profile-self.other li.active:last-child {display: none !important;}  
  878.          
  879.         /* style the link (a tag) inside the li  
  880.            Put a box around the links.  Complete box makes for a dark middle Line. So, leave
  881.            off right line but for righ most link. Do the best we can  
  882.            ASC box grey-line color #d7d7d7 also seems like grey #eaeaea */  
  883.         div .j-column.j-column-s nav li a {  
  884.            border: 1px solid #d7d7d7 !important;  
  885.            border-left: none !important;  /* avoid double border lines for middle items */  
  886.            padding-left: 0 !important;  
  887.         }  
  888.        
  889.           /* Fill in the first box with a line on the left */  
  890.         /* Upper nav bar on your content
  891.            https://discussions.apple.com/content?filterID=following~objecttype~objecttype[thread] */  
  892.         body.j-body-yourwork.other li.j-browse-filter-group-item:first-child > a,  
  893.         /* https://discussions.apple.com/people/<apple-id>/content?manage=true */  
  894.         body.jive-view-profile.j-view-profile.j-view-profile-self other li.active:first-child > a,  
  895.         /* https://discussions.apple.com/people/<apple-id>/content */  
  896.         div .j-column.j-column-s nav.j-second-nav ul > li:first-child > a,  
  897.         /* lower nav bar, see here:  
  898.            https://discussions.apple.com/community/ipad/ipad_in_business_and_education
  899.                 /content?filterID=contentstatus[published]~objecttype~objecttype[thread] */  
  900.         body.j-body-place.other    li.j-browse-filter-group-item:first-child {    
  901.            border-left: 1px solid #d7d7d7 !important;  /* avoid double border lines for middle items */  
  902.         }  
  903.            
  904.        /* Hover over nav bar item */  
  905.        div .j-column.j-column-s nav li a:hover {  
  906.          color: #42aaff !important;  /* light blue */  
  907.          }  
  908.           /* See if we can position "start ad discussion, Write a user tip" bottom
  909.            bar a little better */  
  910.         .j-box {    
  911.             margin-top: 40px !important;  
  912.             float: right !important;}  
  913.            
  914.        
  915.       }  /* end of media for narrow browsers. */    
  916.        
  917.        
  918.     } /* @-moz-document */    
  919.        
  920.     /* Leave the login window footer alone. So, turn these fields back on.  
  921.         */    
  922.         @-moz-document    
  923.         url-prefix(https://discussions.apple.com/people/),    
  924.         url-prefix(https://discussions.apple.com/welcome),    
  925.         url-prefix(https://discussionsjapan.apple.com/people/),      
  926.         url-prefix(https://discussionsjapan.apple.com/welcome/),    
  927.         url-prefix(https://discussionskorea.apple.com/people/),    
  928.         url-prefix(https://discussionskorea.apple.com/welcome/)        
  929.     {    
  930.             /* legalistic bomblast on login window*/    
  931.             #globaldisclaimer.sosumi {display: inherit !important; }          
  932.             /* path to here */    
  933.             #j-footer #breadcrumbs {display: inherit !important; }    
  934.             /* apple product info */    
  935.             p.gf-buy {display: inherit !important; }        
  936.     }  
  937.          
  938.      
  939.     /*  
  940.        Addresses problems with decorator tag mentioned here:
  941.          https://discussions.apple.com/message/30170332#30170332
  942.      
  943.        looking for a page like:
  944.          https://discussions.apple.com/thread/7522221?decorator=print&displayFullThread=true
  945.     */  
  946.     @-moz-document  
  947.       regexp("https:\/\/discussions\.apple\.com\/thread\/.*\?decorator=print&displayFullThread=true.*")  
  948.     {    
  949.           /* Debug to identify which page we found.  Place our ukiyo-e. */    
  950.           h1 {  
  951.               background-color: aqua !important;    
  952.               border: 2px dashed black !important;  
  953.              }  
  954.            
  955.          #jive-body-full { margin-left: 80px !important; }  
  956.            
  957.          /* Avatar runs off the screen to the left.  Level info is to the right instead of below. */  
  958.          /* better align avatar */    
  959.          div.j-post-avatar {  
  960.            margin-left: 60px !important;  
  961.            text-align: center !important;  
  962.            margin-top: 30px !important;  
  963.            }  
  964.          
  965.          /* -------------------------------------------------------------------------------  
  966.             THREAD CONTENT BROWSER  
  967.             status level expertise badge  
  968.             To avoid formatting problems of badges overlapping next post, enable this line.
  969.             There is no room for badges, so get rid of them.
  970.          */    
  971.          .j-status-level.expertise-tile { display: none !important; }  
  972.            
  973.          /* the text of the post needs to be moved to the right to avoid the avatar.  
  974.             ".j-thread-post.j-rc4" is included in all post.  
  975.             ".section.j-original-message" marks the first post. */  
  976.          .j-thread-post.j-rc4 { margin-left: 100px !important; }  
  977.                  
  978.          /* move level icon below avator */  
  979.          span.status-image {  
  980.            display: block!important;  
  981.            text-align: center !important;  
  982.            }  
  983.              
  984.            
  985.          /* move level number below avatar */  
  986.          span.level-points {  
  987.            display: block!important;  
  988.            text-align: center !important;  
  989.            }  
  990.            
  991.              
  992.          
  993.            
  994.     } /* end of regexp */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement