You are here

responsive.custom.css in Drupal Commons 7.3

/*
 * responsive.custom.css is for custom media queries that are not set via the
 * theme settings, such as cascading media queries.
 *
 * By default all the other responsive stylesheets used in Adaptivetheme use a
 * "stacking method", however cascading media queries use a waterfall method so
 * you can leverage the cascade and inheritance for all browsers that support
 * media queries, regardless of screen size.
 *
 * @SEE http://zomigi.com/blog/essential-considerations-for-crafting-quality-media-queries/#mq-overlap-stack
 *
 * NOTE: this file loads by default, to disable got to your theme settings and
 * look under the "CSS" settings tab.
 */
/*
 * Really small screens and up
 */
/* @media only screen and (min-width: 220px) {} */
/*
 * Smartphone sizes and up
 */
/* @media only screen and (min-width: 320px) {} */
/*
 * Smartphone sizes and down
 */
@media only screen and (max-width: 480px) {
  body.toolbar {
    padding-top: 0 !important;
  }

  /*
   * Float Region blocks example:
   * In smaller screen sizes we can remove the float and widths so all blocks
   * stack instead of displaying horizonally. The selector used here is an
   * "attribute selector" which will match on any float block class. Use your
   * inspector or Firebug to get the classes from the page output if you need
   * more granular control over block alignment and stacking.
   *
   * "Float Region blocks" is an extension for floating blocks in regions, see
   * your themes appearance settings, under the Extensions tab.
   */
  .region[class*="float-blocks"] .block {
    float: none;
    width: 100%;
  }

  .commons-bw-create-all-widget-types {
    left: auto;
  }

  .page-node-add #edit-additional-settings {
    width: 100%;
    position: static;
  }

  .page-node-add .field-type-taxonomy-term-reference-form {
    width: 100%;
    position: static;
  }

  #toolbar {
    position: static;
    margin: 0;
    padding: 0;
  }

  #toolbar-user {
    position: absolute;
    height: 1px;
    overflow: hidden;
    clip: rect(1px 1px 1px 1px);
    /* IE6, IE7 */
    clip: rect(1px, 1px, 1px, 1px);
  }

  div#panels-ipe-control-container {
    display: none !important;
  }

  #quicktabs-container-commons_bw .quicktabs-tabpage .view-filters,
  #quicktabs-container-commons_bw .quicktabs-tabpage .attachment-before {
    float: none;
    display: block;
  }

  #quicktabs-commons_follow_ui .quicktabs-style-commons-tabs li {
    display: block;
  }

  .view-commons-follow-node .views-field-ops,
  .view-commons-follow-node .views-field-ops-1,
  .view-commons-follow-user .views-field-ops,
  .view-commons-follow-user .views-field-ops-1,
  .view-commons-follow-taxonomy-term .views-field-ops,
  .view-commons-follow-taxonomy-term .views-field-ops-1 {
    width: 33.333%;
  }

  .primary-fields,
  .supplementary-fields {
    display: block;
    float: none;
    width: auto;
    padding: 0;
  }
}
/*
 * Tablet sizes and down
 */
@media only screen and (max-width: 768px) {
  .quicktabs-style-commons-pills ul.quicktabs-tabs li a {
    font: 0/30px a;
    color: transparent;
    text-align: center;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    padding: 0;
  }
  .quicktabs-style-commons-pills ul.quicktabs-tabs li a:before {
    margin-right: 0;
    vertical-align: middle;
  }
}
/*
 * Tablet sizes and up
 */
@media only screen and (min-width: 768px) {
  body.front.not-logged-in #content {
    background: url('../images/commons-drop.png?1400510663') right top no-repeat;
  }
  body.front.not-logged-in .region-three-33-top {
    margin-bottom: 24px;
    min-height: 300px;
  }
  body.front.not-logged-in #block-system-main .pane-1 {
    float: left;
    width: 56%;
  }
  body.front.not-logged-in #block-system-main .pane-2 {
    float: right;
    width: 40%;
  }
}

File

themes/commons/commons_origins/css/responsive.custom.css
View source
  1. /*
  2. * responsive.custom.css is for custom media queries that are not set via the
  3. * theme settings, such as cascading media queries.
  4. *
  5. * By default all the other responsive stylesheets used in Adaptivetheme use a
  6. * "stacking method", however cascading media queries use a waterfall method so
  7. * you can leverage the cascade and inheritance for all browsers that support
  8. * media queries, regardless of screen size.
  9. *
  10. * @SEE http://zomigi.com/blog/essential-considerations-for-crafting-quality-media-queries/#mq-overlap-stack
  11. *
  12. * NOTE: this file loads by default, to disable got to your theme settings and
  13. * look under the "CSS" settings tab.
  14. */
  15. /*
  16. * Really small screens and up
  17. */
  18. /* @media only screen and (min-width: 220px) {} */
  19. /*
  20. * Smartphone sizes and up
  21. */
  22. /* @media only screen and (min-width: 320px) {} */
  23. /*
  24. * Smartphone sizes and down
  25. */
  26. @media only screen and (max-width: 480px) {
  27. body.toolbar {
  28. padding-top: 0 !important;
  29. }
  30. /*
  31. * Float Region blocks example:
  32. * In smaller screen sizes we can remove the float and widths so all blocks
  33. * stack instead of displaying horizonally. The selector used here is an
  34. * "attribute selector" which will match on any float block class. Use your
  35. * inspector or Firebug to get the classes from the page output if you need
  36. * more granular control over block alignment and stacking.
  37. *
  38. * "Float Region blocks" is an extension for floating blocks in regions, see
  39. * your themes appearance settings, under the Extensions tab.
  40. */
  41. .region[class*="float-blocks"] .block {
  42. float: none;
  43. width: 100%;
  44. }
  45. .commons-bw-create-all-widget-types {
  46. left: auto;
  47. }
  48. .page-node-add #edit-additional-settings {
  49. width: 100%;
  50. position: static;
  51. }
  52. .page-node-add .field-type-taxonomy-term-reference-form {
  53. width: 100%;
  54. position: static;
  55. }
  56. #toolbar {
  57. position: static;
  58. margin: 0;
  59. padding: 0;
  60. }
  61. #toolbar-user {
  62. position: absolute;
  63. height: 1px;
  64. overflow: hidden;
  65. clip: rect(1px 1px 1px 1px);
  66. /* IE6, IE7 */
  67. clip: rect(1px, 1px, 1px, 1px);
  68. }
  69. div#panels-ipe-control-container {
  70. display: none !important;
  71. }
  72. #quicktabs-container-commons_bw .quicktabs-tabpage .view-filters,
  73. #quicktabs-container-commons_bw .quicktabs-tabpage .attachment-before {
  74. float: none;
  75. display: block;
  76. }
  77. #quicktabs-commons_follow_ui .quicktabs-style-commons-tabs li {
  78. display: block;
  79. }
  80. .view-commons-follow-node .views-field-ops,
  81. .view-commons-follow-node .views-field-ops-1,
  82. .view-commons-follow-user .views-field-ops,
  83. .view-commons-follow-user .views-field-ops-1,
  84. .view-commons-follow-taxonomy-term .views-field-ops,
  85. .view-commons-follow-taxonomy-term .views-field-ops-1 {
  86. width: 33.333%;
  87. }
  88. .primary-fields,
  89. .supplementary-fields {
  90. display: block;
  91. float: none;
  92. width: auto;
  93. padding: 0;
  94. }
  95. }
  96. /*
  97. * Tablet sizes and down
  98. */
  99. @media only screen and (max-width: 768px) {
  100. .quicktabs-style-commons-pills ul.quicktabs-tabs li a {
  101. font: 0/30px a;
  102. color: transparent;
  103. text-align: center;
  104. -webkit-box-sizing: border-box;
  105. -moz-box-sizing: border-box;
  106. box-sizing: border-box;
  107. width: 30px;
  108. height: 30px;
  109. padding: 0;
  110. }
  111. .quicktabs-style-commons-pills ul.quicktabs-tabs li a:before {
  112. margin-right: 0;
  113. vertical-align: middle;
  114. }
  115. }
  116. /*
  117. * Tablet sizes and up
  118. */
  119. @media only screen and (min-width: 768px) {
  120. body.front.not-logged-in #content {
  121. background: url('../images/commons-drop.png?1400510663') right top no-repeat;
  122. }
  123. body.front.not-logged-in .region-three-33-top {
  124. margin-bottom: 24px;
  125. min-height: 300px;
  126. }
  127. body.front.not-logged-in #block-system-main .pane-1 {
  128. float: left;
  129. width: 56%;
  130. }
  131. body.front.not-logged-in #block-system-main .pane-2 {
  132. float: right;
  133. width: 40%;
  134. }
  135. }