github.com/fanux/shipyard@v0.0.0-20161009071005-6515ce223235/controller/static/semantic/src/definitions/views/ad.less (about)

     1  /*!
     2   * # Semantic UI - Ad
     3   * http://github.com/semantic-org/semantic-ui/
     4   *
     5   *
     6   * Copyright 2013 Contributors
     7   * Released under the MIT license
     8   * http://opensource.org/licenses/MIT
     9   *
    10   */
    11  
    12  /*******************************
    13              Theme
    14  *******************************/
    15  
    16  @type    : 'view';
    17  @element : 'ad';
    18  
    19  @import (multiple) '../../theme.config';
    20  
    21  /*******************************
    22           Advertisement
    23  *******************************/
    24  
    25  .ui.ad {
    26    display: block;
    27    overflow: @overflow;
    28    margin: @margin;
    29  }
    30  
    31  .ui.ad:first-child {
    32    margin: 0em;
    33  }
    34  
    35  .ui.ad:last-child {
    36    margin: 0em;
    37  }
    38  
    39  .ui.ad iframe {
    40    margin: 0em;
    41    padding: 0em;
    42    border: none;
    43    overflow: hidden;
    44  }
    45  
    46  /*--------------
    47       Common
    48  ---------------*/
    49  
    50  /* Leaderboard */
    51  .ui.leaderboard.ad {
    52    width: 728px;
    53    height: 90px;
    54  }
    55  
    56  /* Medium Rectangle */
    57  .ui[class*="medium rectangle"].ad {
    58    width: 300px;
    59    height: 250px;
    60  }
    61  
    62  /* Large Rectangle */
    63  .ui[class*="large rectangle"].ad {
    64    width: 336px;
    65    height: 280px;
    66  }
    67  /* Half Page */
    68  .ui[class*="half page"].ad {
    69    width: 300px;
    70    height: 600px;
    71  }
    72  
    73  /*--------------
    74       Square
    75  ---------------*/
    76  
    77  /* Square */
    78  .ui.square.ad {
    79    width: 250px;
    80    height: 250px;
    81  }
    82  
    83  /* Small Square */
    84  .ui[class*="small square"].ad {
    85    width: 200px;
    86    height: 200px;
    87  }
    88  
    89  /*--------------
    90      Rectangle
    91  ---------------*/
    92  
    93  /* Small Rectangle */
    94  .ui[class*="small rectangle"].ad {
    95    width: 180px;
    96    height: 150px;
    97  }
    98  
    99  /* Vertical Rectangle */
   100  .ui[class*="vertical rectangle"].ad {
   101    width: 240px;
   102    height: 400px;
   103  }
   104  
   105  /*--------------
   106       Button
   107  ---------------*/
   108  
   109  .ui.button.ad {
   110    width: 120px;
   111    height: 90px;
   112  }
   113  .ui[class*="square button"].ad {
   114    width: 125px;
   115    height: 125px;
   116  }
   117  .ui[class*="small button"].ad {
   118    width: 120px;
   119    height: 60px;
   120  }
   121  
   122  /*--------------
   123     Skyscrapers
   124  ---------------*/
   125  
   126  /* Skyscraper */
   127  .ui.skyscraper.ad {
   128    width: 120px;
   129    height: 600px;
   130  }
   131  
   132  /* Wide Skyscraper */
   133  .ui[class*="wide skyscraper"].ad {
   134    width: 160px;
   135  }
   136  
   137  /*--------------
   138       Banners
   139  ---------------*/
   140  
   141  /* Banner */
   142  .ui.banner.ad {
   143    width: 468px;
   144    height: 60px;
   145  }
   146  
   147  /* Vertical Banner */
   148  .ui[class*="vertical banner"].ad {
   149    width: 120px;
   150    height: 240px;
   151  }
   152  
   153  /* Top Banner */
   154  .ui[class*="top banner"].ad {
   155    width: 930px;
   156    height: 180px;
   157  }
   158  
   159  /* Half Banner */
   160  .ui[class*="half banner"].ad {
   161    width: 234px;
   162    height: 60px;
   163  }
   164  
   165  /*--------------
   166      Boards
   167  ---------------*/
   168  
   169  /* Leaderboard */
   170  .ui[class*="large leaderboard"].ad {
   171    width: 970px;
   172    height: 90px;
   173  }
   174  
   175  /* Billboard */
   176  .ui.billboard.ad {
   177    width: 970px;
   178    height: 250px;
   179  }
   180  
   181  /*--------------
   182      Panorama
   183  ---------------*/
   184  
   185  /* Panorama */
   186  .ui.panorama.ad {
   187    width: 980px;
   188    height: 120px;
   189  }
   190  
   191  /*--------------
   192       Netboard
   193  ---------------*/
   194  
   195  /* Netboard */
   196  .ui.netboard.ad {
   197    width: 580px;
   198    height: 400px;
   199  }
   200  
   201  
   202  
   203  /*--------------
   204       Mobile
   205  ---------------*/
   206  
   207  /* Large Mobile Banner */
   208  .ui[class*="large mobile banner"].ad {
   209    width: 320px;
   210    height: 100px;
   211  }
   212  
   213  /* Mobile Leaderboard */
   214  .ui[class*="mobile leaderboard"].ad {
   215    width: 320px;
   216    height: 50px;
   217  }
   218  
   219  /*******************************
   220               Types
   221  *******************************/
   222  
   223  /* Mobile Sizes */
   224  .ui.mobile.ad {
   225    display: none;
   226  }
   227  
   228  @media only screen and (max-width : (@tabletBreakpoint - 1)) {
   229    .ui.mobile.ad {
   230      display: block;
   231    }
   232  }
   233  
   234  
   235  /*******************************
   236             Variations
   237  *******************************/
   238  
   239  .ui.centered.ad {
   240    margin-left: auto;
   241    margin-right: auto;
   242  }
   243  
   244  .ui.test.ad {
   245    position: relative;
   246    background: @testBackground;
   247  }
   248  .ui.test.ad:after {
   249    position: absolute;
   250    top: 50%;
   251    left: 50%;
   252    width: 100%;
   253    text-align: center;
   254    transform: translateX(-50%) translateY(-50%);
   255  
   256    content: @testText;
   257    color: @testColor;
   258    font-size: @testFontSize;
   259    font-weight: @testFontWeight;
   260  }
   261  .ui.mobile.test.ad:after {
   262    font-size: @testMobileFontSize;
   263  }
   264  .ui.test.ad[data-text]:after {
   265    content: attr(data-text);
   266  }
   267  
   268  .loadUIOverrides();