Advertisement
rccharles

advanced ASC adjustment Apr 3, 2019

Apr 3rd, 2019
614
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.53 KB | None | 0 0
  1. @-moz-document domain("discussions.apple.com") {
  2. /*
  3. You can create scrolling areas without resorting to frames by using CSS's overflow property.
  4. https://stackoverflow.com/questions/628407/hidden-features-of-css
  5. Example:
  6.  
  7. div.foo {
  8.     border:   1px solid;
  9.     width:    300px;
  10.     height:   300px;
  11.     overflow: auto;
  12. }
  13. */
  14. /* Hide badges :-)
  15. div#main-content nav.sub-nav-desktop
  16. [aria-label="Communities"]
  17. */
  18.   div#main-content div.user-expertise {
  19.    /* background: red !important; /* */
  20.    visibility: hidden !important; /* */
  21. }
  22. /* div.user-expertise {
  23.     visibility: hidden !important;
  24. }*/
  25.  
  26. /* The overflow property has the following values:
  27.  
  28.     visible - Default. The overflow is not clipped. It renders outside the element's box
  29.     hidden - The overflow is clipped, and the rest of the content will be invisible
  30.     scroll - The overflow is clipped, but a scrollbar is added to see the rest of the content
  31.     auto - If overflow is clipped, a scrollbar should be added to see the rest of the content
  32. */
  33. .post-author .post-author-metadata .post-author-name {overflow:auto }
  34.  
  35. /* https://discussions.apple.com/thread/250068516 */
  36.  
  37. /* Persistent question no more */
  38. section.persist-question.shown {
  39.     display: none !important;
  40. }
  41.  
  42. /* goes with the ASC file icon.
  43.    expand the height of attached file display
  44.    Need both. */
  45. div.content-post-body-content div.log-attachment-accordion.expanded ,
  46. div.content-post-body-content div.log-attachment-content-wrapper {
  47.   height: 800px !important;
  48.   max-height: 800px !important; /* cover all bases both height and max-height */
  49. } /* */
  50. /*
  51.    FYI:
  52.      LF is 0a  Unix
  53.      CR is 0d  mac classic
  54.      LFCR is 0a0d windows
  55. */
  56.  
  57. /* expand the width of attached file display */
  58. /* From
  59.    https://discussions.apple.com/thread/250234067?answerId=250443431022#250443431022
  60. */
  61. div.content-post-body-content div.log-attachment-accordion.expanded {
  62.   max-width: 92% !important;
  63.   background-color: #ebd5b3 !important; /* Vellum Parchment */
  64. }
  65.  
  66. /* Set a max height for code tag.  Don't let long code take over the page. */
  67. /*div.post-body*/ pre.ql-syntax {
  68.   max-height: 800px !important;
  69.   overflow: auto !important;
  70.   max-width: 92% !important;
  71.   background-color: #ebd5b3 !important; /* Vellum Parchment */
  72. }
  73.  
  74. /* reduce the whiteness of page change region.
  75.    While the original let through 34% of the background, it still felt too bright.*/
  76. section.filters-layout div.filters-layout-content div.spinner-wrapper {
  77.   background-color: rgba(155,155,255,0.35); }
  78.  
  79.  
  80.  
  81. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement