Advertisement
rccharles

Untitled

Apr 18th, 2016
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 35.36 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 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.            https://discussions.apple.com/message/30002950#30002950    
  43.            ------> How to get rid of discussion list Badges <----  
  44.              Go down find this line of code  
  45.                .j-status-level.expertise-tile { display: none !important; }    
  46.              You need to eliminate the slash / star * before the line of code and  
  47.              the star * slash / after the line of code.      
  48.              To get rid of all badges everywhere, uncomment the next three lines of code.  
  49.         Version 0.63
  50.         -- Decided on a minimalist philosophy to focus on reading the posts.
  51.         -- Don't display badges on list of discussion posts
  52.         -- Footers should be short not take up a half a page.
  53.  
  54.      
  55.        
  56.      
  57.      
  58.     */  
  59.      
  60.     @-moz-document  
  61.         domain(discussions.apple.com),  
  62.         domain(discussionsjapan.apple.com),  
  63.         domain(discussionskorea.apple.com)  
  64.     {  
  65.         /* Common css for small and large windows */  
  66.      
  67.         /* Scroll code listings.  set max-height of syntax highlighted code in thread  
  68.            content browser   v0.6 */  
  69.         .jive-rendered-content .dp-highlighter {  
  70.            max-height: 500px !important;  
  71.            overflow: auto !important;  
  72.         }                                                                                
  73.         /* Scroll code listings. set max-heiht of pre code (visible when javascript is disabled)  
  74.         v0.6 */  
  75.         .jive-rendered-content pre {  
  76.            max-height: 500px !important;  
  77.            overflow: auto !important;  
  78.         }      
  79.                                                                                
  80.         /* highlights in dark blue unread posts when logged in.  v0.6  
  81.      
  82.         All your posts  
  83.         https://discussions.apple.com/content?filterID=participated~objecttype~objecttype[thread]  
  84.      
  85.         Discussions you authored  
  86.         https://discussions.apple.com/content?filterID=contentstatus[published]~objecttype~objecttype[thread]  
  87.      
  88.         To see the discussions you have read and not read in a community  
  89.         The suffix to use for any ASC forum, placed after the basic link to any forum, it's  
  90.         /content?filterID=contentstatus[published]~objecttype~objecttype[thread]  
  91.      
  92.         for iPhone community this would be:  
  93.         https://discussions.apple.com/community/iphone/using_iphone/content?filterID=contentstatus[published]~objecttype~objecttype[thread]  
  94.      
  95.      
  96.      
  97.         */  
  98.         .j-td-title strong {color:#191970 !important; font-weight: normal !important;}  
  99.      
  100.         /* Avoid double scrolling in posts which happened here:  
  101.            https://discussions.apple.com/docs/DOC-9254  
  102.            #globalfooter and #globaldisclaimer elements which originally define the width  
  103.            to fixed value as 980px   0.62  
  104.         */  
  105.      
  106.         #globalfooter, #globaldisclaimer { width: 80% !important; }  
  107.      
  108.         /* Get more vertical space.  This line gets rid of the global Apple navigation bar at the top.  
  109.            The black bar with Apple-Logo Mac iPad iPhone Watcsh Tv Music Support  
  110.         */  
  111.         #global-nav-wrapper {display: none !important; }  
  112.      
  113.      
  114.         /* Pacify badges and related infill 0.62 & 0.63
  115.            These four lines, when uncommented, eliminate the display of badges. Some or all of the lines are  
  116.            commented out.  Each comment starts all the way to the left.  
  117.         */  
  118.      
  119.         /* -------------------------------------------------------------------------------  
  120.             THREAD CONTENT BROWSER  
  121.             status level expertise badge  
  122.             To avoid formatting problems of badges overlapping next post, enable this line.  
  123.         */  
  124.          .j-status-level.expertise-tile { display: none !important; }    
  125.      
  126.         /* ---------------------------------------------------------------------------------  
  127.            THREAD LIST BROWSER  
  128.      
  129.            leader board  
  130.         */  
  131.     /*    .jive-widget-leaderboardwidget {display: none !important; } */  
  132.      
  133.      
  134.           /* ---------------------------------------------------------------------------------  
  135.               PROFILE  
  136.      
  137.               profile status container for specialties and awards  
  138.           */  
  139.     /*    .profile-status-container { display: none !important; } */  
  140.      
  141.         /* profile modal note status row for specialties and awardds */  
  142.     /*    .status-row { display: none !important; } */  
  143.      
  144.      
  145.         /* Rambling footer stuff 0.63 */
  146.        
  147.         /* no more legalistic bomblast */
  148.         #globaldisclaimer.sosumi {display: none !important; }      
  149.         /* Not a complete path to here, so why be mislead */
  150.         #j-footer #breadcrumbs {display: none !important; }
  151.         /* Guess by now folks know how to buy an apple product */
  152.         p.gf-buy {display: none !important; }
  153.        
  154.    
  155.        
  156.         /* Combine duplicate code here.  v 0.61 */  
  157.        
  158.         /* ---------------------------------------------------------------------------------  
  159.             BODY  
  160.         */  
  161.         body.j-body-welome,             /* Welcome */  
  162.         body.j-body-place,              /* Community */  
  163.         body.j-body-yourwork,           /* Content */  
  164.         body.j-body-home,               /* Activity */  
  165.         body.j-body-yourconnections,    /* People */  
  166.         body.j-body-preferences,        /* Preferences */  
  167.         body.jive-body-content,         /* Thread */  
  168.         body.jive-body-search,          /* Search */  
  169.         body.jive-view-profile          /* Profile */  
  170.         {                                                                       /* v0.43 */  
  171.             background: white !important;   /* Effectively overrides most of the body color.  
  172.                                               These are more specific.  */  
  173.         }  
  174.      
  175.        
  176.         /* ---------------------------------------------------------------------------------  
  177.             TEXT  
  178.         */  
  179.         /* line spacing */  
  180.         .jive-content { line-height: 1.25 !important; }  
  181.      
  182.        
  183.         /* ---------------------------------------------------------------------------------  
  184.             ASC HEADER AREA  
  185.         */  
  186.         #j-header,  
  187.         #j-compact-header,  
  188.         #j-footer { width: 100% !important; }  
  189.        
  190.         /* navigation header (Apple Support Communities ...) */  
  191.         #j-header-wrap {  
  192.             padding: 0px 40px !important;  
  193.             margin: 0px 0px 15px !important;  
  194.         }  
  195.         #j-globalNav-bg {  
  196.             padding: 0pX !important;  
  197.             margin: 0px !important;  
  198.         }  
  199.         #j-satNav { overflow: visible !important; }  
  200.         #jive-breadcrumb { right: 40px !important; }  
  201.      
  202.      
  203.         /* ---------------------------------------------------------------------------------  
  204.             THREAD LIST BROWSER - list of discussions in a Community  
  205.         */  
  206.        
  207.         /* show author name in 'Latest activity' column in detailed list view of threads */  
  208.         td.j-td-date > span { display : inherit !important; }  
  209.      
  210.         /* main section */  
  211.         #j-main { padding: 0px !important; }  
  212.      
  213.         /* table cell title */  
  214.         .jive-table td.jive-table-cell-title { padding: 5px !important; }  
  215.            
  216.         /* thread list view column widths */                                        /* v0.43 */  
  217.         .j-browse-details .j-td-title { max-width: none !important; }  
  218.         .j-browse-details .j-td-date {  
  219.             width: auto !important;  
  220.             max-width: 20% !important;  
  221.         }  
  222.         /* threads list view table tr td  */  
  223.         .j-browse-details-tbody tr td { padding: 5px !important; }  
  224.      
  225.         /* communities list view table tr td */  
  226.         .jive-communities-listing table tr td { padding: 5px !important; }  
  227.        
  228.         /* thumbnails view width */  
  229.         .j-browse-content .j-thumb-view,  
  230.         .j-browse-places .j-browse-thumbnails,  
  231.         .j-browse-people .j-browse-thumbnails { width: 100% !important; }  
  232.        
  233.         /* thumbnail view list item margin */                                        /* v0.43 */  
  234.         .j-browse-content .j-thumb-view > li,  
  235.         .j-browse-places .j-browse-thumbnails > li { margin-right: 20px !important; }  
  236.      
  237.         /* social actions row */  
  238.         .apple-social-actions-wrapper { margin-right: 0px !important; }  
  239.         .j-thread .j-social-actions { margin-right: 40px !important; }  
  240.      
  241.         /* apple header, subheader row ("Find helpful contents..." etc )    fixed in v0.43 */  
  242.         #apple-full-subheader,  
  243.         #apple-activity-subheader {  
  244.             padding: 0px 40px 15px !important;  
  245.             margin-bottom: 15px !important;  
  246.         }  
  247.         #apple-full-header h2,  
  248.         #apple-activity-header h2 { padding: 0px 40px !important; }  
  249.      
  250.         /* page header */  
  251.         .j-body-place #jive-body > header.j-page-header {  
  252.             margin-left: 40px !important;  
  253.             margin-right: 40px !important;  
  254.             width: auto !important;  
  255.         }  
  256.        
  257.         /* browser filter row */  
  258.         #j-browse-filters { margin-bottom: 5px !important; }  
  259.      
  260.         /* browser controls row */  
  261.         .j-type-row { margin-bottom: 0px !important; }  
  262.      
  263.         /* browser controls content types (All Contents|User Tips|Discussions) width */  
  264.         #js-browse-controls .j-type-row .j-content-types { width: 90% !important; }  
  265.        
  266.         /* browser controls view toggle (Thumbnails|Details) width */  
  267.         #js-browse-controls #j-item-view-toggle {  
  268.             width: 10% !important;  
  269.             display: table !important;  
  270.         }  
  271.      
  272.         /* content filter row (All|Open|Answered|Threads) */  
  273.         .j-content-filter {  
  274.             background: white !important;  
  275.             margin-bottom: 10px !important;  
  276.         }    
  277.        
  278.         /* container canvas */  
  279.         .j-contained {  
  280.             margin-left: 40px !important;  
  281.             margin-right: 40px !important;  
  282.         }  
  283.      
  284.         /* category filter bar */  
  285.         .jive-content-filter {  
  286.             left: 0px !important;  
  287.             width: 80% !important;  
  288.         }  
  289.         .touchcarousel-wrapper { width: 100% !important; }  
  290.         .touchcarousel .tc-paging-container { width: 90% !important; }                /* v0.41 */  
  291.      
  292.         /* more search results available */  
  293.         #j-more-search-results-available { padding: 10px !important; }  
  294.        
  295.         /* misc */  
  296.         .jive-widget { margin-bottom: 10px !important; }  
  297.         .j-column { margin-bottom: 10px !important; }  
  298.      
  299.      
  300.         /* ---------------------------------------------------------------------------------  
  301.             THREAD CONTENT BROWSER - Displays the contents of the posts.  
  302.         */  
  303.         /* thread header */  
  304.         .apple-thread-header {  
  305.             width: auto !important;  /* v0.6 no more*/  
  306.             margin-bottom: 10px !important;  
  307.             margin-left: 40px !important;  
  308.         }  
  309.        
  310.         /* thread original post */  
  311.         .j-thread .jive-content { margin: 0px 40px 0px 140px !important; }  
  312.        
  313.         /* thread replies ul */  
  314.         ul.jive-discussion-replies.jive-discussion-indent-0 { margin: 0px !important; }  
  315.        
  316.         /* thread reply li */  
  317.         .jive-discussion-replies li.reply { margin-top: 15px !important; }  
  318.      
  319.         /* thread view indent */  
  320.         .jive-discussion-indent-1 li.reply { padding-left: 15px !important; }  
  321.        
  322.         /* thread info */  
  323.         .jive-thread-info {  
  324.             padding: 10px 40px !important;  
  325.             margin: 0px !important;  
  326.         }  
  327.        
  328.         /* thread answer rollup */  
  329.         .j-answer-rollup { margin: 30px 0px !important; }  
  330.        
  331.         /* thread post header (poster, date, response to) */  
  332.         .j-thread-post > header {  
  333.             padding: 10px 20px 0px 20px !important;  
  334.             margin-bottom: 12px !important;  
  335.         }  
  336.        
  337.         /* thread post section (message body) */  
  338.         .j-thread-post section {  
  339.             padding: 0px 20px !important;  
  340.             margin-bottom: 6px !important;  
  341.         }  
  342.        
  343.         /* thread post footer (Like|Reply etc) */  
  344.         .j-thread-post footer { padding: 0px 15px !important; }  
  345.         .j-thread-post footer > ul { padding: 2px !important; }  
  346.         .j-thread-post footer > .acclaim-container { margin: 5px 0px !important; }  
  347.      
  348.         /* thread rendered content. The text in the orginal post and replies.  */  
  349.         .jive-rendered-content {  
  350.             padding-bottom: 4px !important;  
  351.         }  
  352.        
  353.         /* thread rendered content quote & pre */  
  354.         .jive-rendered-content .jive-quote,  
  355.         .jive-rendered-content .jive-pre {  
  356.             margin: 5px 15px !important;  
  357.         }  
  358.      
  359.         /* thread reply footer (Return to Community|Go to original post) */  
  360.         #jive-thread-reply-footer {    margin-top: 10px !important; }  
  361.        
  362.         /* more like this links, incoming links */  
  363.         #apple-related-threads { margin: 0px 40px !important; }  
  364.         #apple-related-threads .j-box { margin-bottom: 0px !important; }  
  365.         .j-icon-list li { padding: 3px 0px 3px 22px !important; }  
  366.      
  367.      
  368.         /* ---------------------------------------------------------------------------------  
  369.             INLINE EDITOR  
  370.         */  
  371.         /* editor */  
  372.         .jive-discussion-replies li.addReply { margin: 50px 40px 0px !important; }  
  373.      
  374.      
  375.         /* ---------------------------------------------------------------------------------  
  376.             ADVANCED EDITOR  
  377.         */  
  378.         /* content area */  
  379.         .j-thread .jive-content.jive-create-thread,  
  380.         .jive-body-formpage-document .jive-content.doc-page {  
  381.             margin: 0px 40px !important;  
  382.             padding: 0px !important;  
  383.         }  
  384.      
  385.         /* header */  
  386.         .j-thread .jive-content.jive-create-thread h2,  
  387.         .jive-body-formpage-document .jive-content.doc-page h2 { padding: 0px !important; }  
  388.      
  389.         /* editor panel */  
  390.         .j-thread .jive-content.jive-create-thread #jive-compose-title,  
  391.         .j-thread .jive-content.jive-create-thread .jive-editor-panel.jive-large-editor-panel,  
  392.         .jive-body-formpage-document .jive-content.doc-page #jive-compose-title,  
  393.         .jive-body-formpage-document .jive-content.doc-page .jive-editor-panel.jive-large-editor-panel { margin: 0px !important; }  
  394.      
  395.         /* line height in editor */  
  396.         body.tiny_mce_content { line-height: inherit !important; }  
  397.      
  398.         /* replying to */  
  399.         .jive-body-formpage-comment .jive-thread-message { margin: 0px !important; }    
  400.      
  401.         /* buttons (Reply|Cancel) */  
  402.         .j-publishbar,  
  403.         .jive-body-formpage .jive-composebuttons { margin: 20px 40px 0px !important; }  
  404.      
  405.        
  406.         /* ---------------------------------------------------------------------------------  
  407.             SEARCH RESULTS  
  408.         */  
  409.         /* search result entry */  
  410.         .j-search-results-main-container .j-search-result  
  411.             { padding: 10px !important; }    /* v0.43 */  
  412.      
  413.      
  414.         /* ---------------------------------------------------------------------------------  
  415.             DOC (USER TIP)  
  416.         */                                                                            /* v0.43 */  
  417.         /* user tip canvas */  
  418.         .jive-body-content.j-doc .j-column-wrap-l { margin: 0px 40px !important; }  
  419.      
  420.      
  421.         /* ---------------------------------------------------------------------------------  
  422.             PROFILE  
  423.         */                                                                            /* v0.43 */  
  424.         /* header & navigation bar (Bio|Activity|Content|Communities) */  
  425.         .j-view-profile .j-page-header { padding: 10px 40px !important; }  
  426.         .j-bigtab-nav { margin: 10px 40px !important; }  
  427.        
  428.         /* Bio */  
  429.         .j-layout-l .j-column-wrap-l { width: 100% !important; }  
  430.      
  431.         /* Communities (places) sidebar ui blue marker adjustment  
  432.             (according to the sidebar width changed to 166px from 180px for selector:  
  433.             .j-layout-sl.j-browse-places .j-column-s in PLACES section)  */  
  434.         .j-view-profile .j-second-nav ul > li.active  { width: 156px !important; }  
  435.      
  436.      
  437.      
  438.      
  439.     /* Wide screen browser  
  440.         ===================  
  441.      
  442.         This rule set will be fine for normal to wide window whose width is ca. 1265px or greater.  
  443.         However, it will not be beneficial to very narrow window of 700-900px in width.  
  444.     */  
  445.      
  446.     @media all and (min-width: 1265px) {                                               /* v0.6 */  
  447.         /* ---------------------------------------------------------------------------------  
  448.             BODY  
  449.         */  
  450.        
  451.         body {  
  452.             background: white;  
  453.             min-width: 0px !important;  
  454.         }  
  455.         #body-apple {  
  456.             width: 100% !important;  
  457.             min-width: 0px !important;  
  458.         }  
  459.      
  460.      
  461.         /* ---------------------------------------------------------------------------------  
  462.             ASC TOP PAGE  
  463.         */  
  464.         #jive-widgetframe-body_5780758 > .content-large,    /* discussions.apple.com */  
  465.         #jive-widgetframe-body_188974  > .content-large,    /* discussionsjapan.apple.com */    
  466.                                                             /* v0.42 */  
  467.         #jive-widgetframe-body_20835   > .content-large        /* discussionskorea.apple.com */    
  468.                                                             /* v0.42 */  
  469.         {                                                    /* added parent id in v0.41 */  
  470.             text-align: center !important;  
  471.             overflow-x: auto !important;  
  472.             overflow-y: hidden !important;  
  473.         }  
  474.         .apple-communities {  
  475.             display: inline-block !important;  
  476.             width: 1120px !important;  
  477.             text-align: left !important;  
  478.         }  
  479.      
  480.      
  481.         /* ---------------------------------------------------------------------------------  
  482.             THREAD LIST BROWSER - list of discussions in a Community  
  483.         */  
  484.      
  485.      
  486.         /* ------------------  
  487.             When uncommented, hide Like and Bookmark columns in thread list view.  
  488.         */                                                                /* v0.43 (optional) */  
  489.         /* ~~~~~~~~~~~~~~~~~~~~ (currently commented out) ~~~>  
  490.         .j-browse-details .j-td-likes,  
  491.         .j-browse-details .j-td-bookmarks { display: none !important; }  
  492.         .j-browse-details > table.j-browse-list > thead.j-rc4 > tr > th + th,  
  493.         .j-browse-details > table.j-browse-list > thead.j-rc4 > tr > th + th + th  
  494.             { display: none !important; }  
  495.         .j-browse-details > table.j-browse-list > thead.j-rc4 > tr > th + th + th + th  
  496.             { display: table-cell !important; }  
  497.         <~~~~~~~~~~~~~~~~~~~~  */  
  498.      
  499.        
  500.         /* ------------------  
  501.             Treatment for narrow window  
  502.             Method 1 (minimum optimization)  
  503.      
  504.             Adjust thread list table's shift and margin to maximize its width.  
  505.         */                                                                                /* v0.43 */  
  506.         .j-layout-sl.j-browse-content .j-column-wrap-l { margin-left: -166px !important; }  
  507.         .j-layout-sl.j-browse-content .j-column-l      { margin-left: 166px !important; }  
  508.         .j-layout-sl.j-browse-content .j-column-s      { width: 166px !important; }  
  509.         /* ------------------ */  
  510.      
  511.         /* ------------------  
  512.             Swap left-right positions of thread list table and sidebar ui (filters & actions)  
  513.         */                                                                                /* fixed in v0.43 */  
  514.         /* let thread list table float left */  
  515.         .j-layout-sl.j-browse-content .j-column-wrap-l,  
  516.         .j-layout-sl.j-browse-places .j-column-wrap-l { float: left !important; }  
  517.      
  518.         /* let sidebar ui float right */  
  519.         .j-layout-sl.j-browse-content .j-column-s,  
  520.         .j-layout-sl.j-browse-places .j-column-s { float: right !important; }  
  521.         /* ------------------ */  
  522.      
  523.      
  524.         /* ---------------------------------------------------------------------------------  
  525.             THREAD CONTENT BROWSER - Displays the contents of the posts.  
  526.         */  
  527.        
  528.         /*  
  529.           Put the brakes on infinite expansion of text.  Sets how wide the text display area in a  
  530.           window can get. Eventhou the window maybe large, folks find it easier to read  
  531.           the words when the text area is smaller.  
  532.         */  
  533.         /* Original post.  Includes answering post if present */  
  534.         /* posts in thread */  
  535.         /* Types of replies */  
  536.         #jive-thread-messages-container,  
  537.         /* Advanced reply */  
  538.         #jive-body {  
  539.             max-width: 1100px !important;    /* v0.61 */  
  540.          }  
  541.          
  542.      
  543.         /* ------------------  
  544.             Treatment for narrow window  
  545.             Method 1 (minimum optimization)  
  546.      
  547.             Adjust community list table's shift and margin to maximize its width.  
  548.         */                                                                            /* v0.43 */  
  549.         .j-layout-sl.j-browse-places .j-column-wrap-l { margin-left: -166px !important; }  
  550.         .j-layout-sl.j-browse-places .j-column-l      { margin-left: 166px !important; }  
  551.         .j-layout-sl.j-browse-places .j-column-l      { padding-left: 0px !important; }  
  552.         .j-layout-sl.j-browse-places .j-column-s      { width: 166px !important; }  
  553.         /* ------------------ */  
  554.        
  555.         /* ---------------------------------------------------------------------------------  
  556.             ACTIVITY STREAM  
  557.         */  
  558.         /* activity entry */  
  559.         .j-act-entry { padding: 5px 0px 10px 100px !important; }  
  560.      
  561.         /* activity title */  
  562.         .j-body-home .j-act-title { padding: 5px 0px 5px 24px !important; }  
  563.      
  564.         /* activity body & comment */                                                /* v0.43 */  
  565.         .j-body-home .j-act-init { padding: 5px 0px 10px 100px !important; }  
  566.         .apple-activity-comments-wrapper { margin-left: 0px !important; }  
  567.      
  568.         /* Like list */  
  569.         .j-act-grouped .j-act-g-item { padding: 3px !important; }  
  570.        
  571.         /* -----------------------------------------------------------------------------------  
  572.            PLACES  
  573.         */                                                                            /* v0.43 */  
  574.         /* latest activity column */  
  575.         .j-browse-details .j-td-activity { max-width: 650px !important; }  
  576.      
  577.      
  578.     } /* end of media for wide screen */  
  579.      
  580.      
  581.       /* Narrow screen browser  
  582.          =====================  
  583.       */  
  584.      
  585.       @media all and (max-width: 1265px) {                                           /* v0.6 */  
  586.         /* styles for small screens ( narrow browsers window )  
  587.            ========================  
  588.          
  589.            Narrow is basically the same as the above wide screen browser except that this lets  
  590.            the sidebar column (filter column) in list view be pushed down or up in layout flow  
  591.            to make room for the main column (table column) when the window is not wide enough.  
  592.            It is done by setting margin-left and padding-left of main column to 0 and setting  
  593.            max-width of main column, which is currently 1019px.  Consequently, if window width  
  594.            is less than 1265px (= 40 (margin-left) + 1019 (main column) + 166 (sidebar column)  
  595.            + 40 (margin-right)), sidebar column is pushed down or up according to document  
  596.            tree order. This rule set is intended to be useful for normal to narrow window  
  597.            whose width is in range ca. 700-1400px. It can be used for wider window as well but  
  598.            there's no point to set the max-width of main column in order to move sidebar  
  599.            column when the window is wide enough.  
  600.          
  601.            custom styles for Apple Support Communities board system introduced in 2014-06  
  602.            (v 0.5)  
  603.         */  
  604.              
  605.         /* -----------------------------------------------------------------------------------  
  606.             BODY  
  607.         */  
  608.      
  609.         body {  
  610.             background: white;  
  611.             min-width: 0px !important;  
  612.         }  
  613.        
  614.         #body-apple {  
  615.             width: 100% !important;  
  616.             min-width: 0px !important;  
  617.         }  
  618.      
  619.         /* Text reflow problem with New Activity Content etc.  
  620.            https://discussions.apple.com/thread/7517905  
  621.            Provide work-around.  Maybe Firefox issue.  
  622.         */  
  623.         #apple-site-title { font-size: 14px !important; }  
  624.      
  625.         /* -----------------------------------------------------------------------------------  
  626.             ASC TOP PAGE  
  627.         */  
  628.         #jive-widgetframe-body_5780758 > .content-large,    /* discussions.apple.com */  
  629.         #jive-widgetframe-body_188974  > .content-large,    /* discussionsjapan.apple.com v0.42 */  
  630.         #jive-widgetframe-body_20835   > .content-large     /* discussionskorea.apple.com v0.42 */  
  631.         {                                                   /* added parent id in v0.41 */  
  632.             text-align: center !important;  
  633.             overflow-x: auto !important;  
  634.             overflow-y: hidden !important;  
  635.         }  
  636.         .apple-communities {  
  637.             display: inline-block !important;  
  638.             width: 1120px !important;  
  639.             text-align: left !important;  
  640.         }  
  641.      
  642.      
  643.         /* -----------------------------------------------------------------------------------  
  644.             THREAD LIST BROWSER  
  645.         */  
  646.        
  647.         /* ------------------  
  648.             Hide Like and Bookmark columns in thread list view.  
  649.         */                                                                            /* v0.43 */  
  650.         /* ------------------ display in small screen        changed 0.6 */  
  651.         .j-browse-details .j-td-likes,  
  652.         .j-browse-details .j-td-bookmarks { display: none !important; }  
  653.         .j-browse-details > table.j-browse-list > thead.j-rc4 > tr > th + th,  
  654.         .j-browse-details > table.j-browse-list > thead.j-rc4 > tr > th + th + th  
  655.             { display: none !important; }  
  656.         .j-browse-details > table.j-browse-list > thead.j-rc4 > tr > th + th + th + th  
  657.             { display: table-cell !important; }  
  658.         /* ------------------ */  
  659.      
  660.        
  661.         /* ------------------  
  662.             Treatment for narrow window  
  663.             Method 1 (minimum optimisation)  
  664.      
  665.             Adjust thread list table's shift and margin to maximize its width.  
  666.         */                                                                            /* v0.43 */  
  667.         /* ------------------ (currently commented out)  
  668.         .j-layout-sl.j-browse-content .j-column-wrap-l { margin-left: -166px !important; }  
  669.         .j-layout-sl.j-browse-content .j-column-l      { margin-left: 166px !important; }  
  670.         .j-layout-sl.j-browse-content .j-column-s      { width: 166px !important; }  
  671.         ------------------ */  
  672.         /* ------------------  
  673.             Treatment for narrow window  
  674.             Method 2 (more beneficial to narrow window but has disadvantage for wide window)  
  675.            
  676.             Let thread list table have full width but not exceed 1019px to make room for sidebar  
  677.             ui (filters & actions).  If window is wide enough (>=1265px), sidebar ui is displayed  
  678.             next to thread list table, otherwise it is displayed below or above it (depending  
  679.             upon its document tree order).  
  680.            
  681.             * sidebar width (constant)    = 166px  
  682.             * thread table max width      = 1019px  
  683.             * canvas margin-left          = 40px  
  684.             * canvas margin-right         = 40px  
  685.             ---------------------------------------  
  686.             * total                       = 1265px  
  687.         */                                                                          /* v0.5 */  
  688.         /* ------------------ (currently active) */  
  689.         .j-layout-sl.j-browse-content .j-column-wrap-l { max-width: 1019px !important; }  
  690.         .j-layout-sl.j-browse-content .j-column-wrap-l { margin-left: 0px !important; }  
  691.         .j-layout-sl.j-browse-content .j-column-l      { margin-left: 0px !important; }  
  692.         .j-layout-sl.j-browse-content .j-column-s      { width: 166px !important; }  
  693.         /* ------------------ */  
  694.      
  695.         /* ------------------  
  696.             Swap left-right positions of thread list table and sidebar ui (filters & actions)  
  697.         */                                                                    /* fixed in v0.43 */  
  698.         /* let thread list table float left */  
  699.         .j-layout-sl.j-browse-content .j-column-wrap-l,  
  700.         .j-layout-sl.j-browse-places .j-column-wrap-l { float: left !important; }  
  701.      
  702.         /* let sidebar ui float right */  
  703.         .j-layout-sl.j-browse-content .j-column-s,  
  704.         .j-layout-sl.j-browse-places .j-column-s { float: right !important; }  
  705.         /* ------------------ */  
  706.      
  707.      
  708.         /* -----------------------------------------------------------------------------------  
  709.             THREAD CONTENT BROWSER - Displays the contents of the posts.  
  710.         */  
  711.        
  712.         /* -----------------------------------------------------------------------------------  
  713.             ACTIVITY STREAM  
  714.         */  
  715.         /* activity entry */  
  716.         .j-act-entry { padding: 5px 0px 10px 100px !important; }  
  717.      
  718.         /* activity title */  
  719.         .j-body-home .j-act-title { padding: 5px 0px 5px 24px !important; }  
  720.      
  721.         /* activity body & comment */                                                /* v0.43 */  
  722.         .j-body-home .j-act-init,  
  723.         .j-view-profile .j-act-init { padding: 5px 0px 10px 100px !important; }  
  724.         .apple-activity-comments-wrapper { margin-left: 0px !important; }  
  725.      
  726.         /* Like list */  
  727.         .j-act-grouped .j-act-g-item { padding: 3px !important; }  
  728.        
  729.        
  730.        
  731.         /* -----------------------------------------------------------------------------------  
  732.             PLACES  
  733.         */                                                                         /* v0.43 */  
  734.         /* latest activity column */  
  735.         .j-browse-details .j-td-activity { max-width: 650px !important; }  
  736.      
  737.      
  738.         /* ------------------  
  739.             Treatment for narrow window  
  740.             Method 1 (minimum optimisation)  
  741.      
  742.             Adjust community list table's shift and margin to maximize its width.  
  743.         */                                                                            /* v0.43 */  
  744.         /* ------------------ (currently commented out)  
  745.         .j-layout-sl.j-browse-places .j-column-wrap-l { margin-left: -166px !important; }  
  746.         .j-layout-sl.j-browse-places .j-column-l      { margin-left: 166px !important; }  
  747.         .j-layout-sl.j-browse-places .j-column-s      { width: 166px !important; }  
  748.         ------------------ */  
  749.         /* ------------------  
  750.             Treatment for narrow window  
  751.             Method 2 (more beneficial to narrow window but has disadvantage for wide window)  
  752.            
  753.             Let community list table have full width but not exceed 1019px to make room for  
  754.             sidebar ui (filters & actions).  If window is wide enough (>=1265px), sidebar ui  
  755.             is displayed next to community list table, otherwise it is displayed below or above  
  756.             it (depending upon its document tree order).  
  757.            
  758.             * sidebar width (constant)    = 166px  
  759.             * community table max width   = 1019px  
  760.             * canvas margin-left          = 40px  
  761.             * canvas margin-right         = 40px  
  762.             ---------------------------------------  
  763.             * total                       = 1265px  
  764.         */                                                                            /* v0.5 */  
  765.         /* ------------------ (currently active) */  
  766.         .j-layout-sl.j-browse-places .j-column-wrap-l { max-width: 1019px !important; }  
  767.         .j-layout-sl.j-browse-places .j-column-wrap-l { margin-left: 0px !important; }  
  768.         .j-layout-sl.j-browse-places .j-column-l      { margin-left: 0px !important; }  
  769.         .j-layout-sl.j-browse-places .j-column-l      { padding-left: 0px !important; }  
  770.         .j-layout-sl.j-browse-places .j-column-s      { width: 166px !important; }      /* ------------------ */  
  771.      
  772.      
  773.       }  /* end of media for narrow browsers. */  
  774.      
  775.      
  776.     } /* @-moz-document */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement