| /* |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| */ |
| // determines the max-width of the site at various resolutions |
| .site-width { |
| margin-left: auto; |
| margin-right: auto; |
| |
| padding-left: @gutter-width / 4 * 3; // 18px |
| padding-right: @gutter-width / 4 * 3; |
| |
| @media (min-width: @screen-sm-min) { |
| padding-left: @gutter-width; |
| padding-right: @gutter-width; |
| |
| width: @container-sm; |
| } |
| |
| @media (min-width: @screen-md-min) { |
| width: @container-md; |
| } |
| |
| @media (min-width: @screen-lg-min) { |
| width: @container-lg; |
| } |
| } |
| |
| // Only display content to screen readers |
| // See: http://a11yproject.com/posts/how-to-hide-content/ |
| .sr-only { |
| position: absolute; |
| width: 1px; |
| height: 1px; |
| margin: -1px; |
| padding: 0; |
| overflow: hidden; |
| clip: rect(0,0,0,0); |
| border: 0; |
| } |
| |
| .center-img { |
| text-align: center; |
| |
| img { |
| max-width: 100%; |
| } |
| } |