Advertisement
rccharles

asc combined 0.62

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