Making WordPress.org

Changeset 4374


Ignore:
Timestamp:
11/18/2016 03:26:57 AM (8 years ago)
Author:
tellyworth
Message:

Plugin directory: limit the height of screenshot thumbnails in the React viewer.

See #2246

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/components/plugin/sections/screenshots/style.scss

    r4292 r4374  
    1414        text-transform: inherit;
    1515    }
     16
     17    .image-gallery-thumbnails-container {
     18        max-height: 100px;
     19    }
     20
     21    .image-gallery-thumbnail {
     22        vertical-align: top;
     23    }
    1624}
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/styles/_components.scss

    r4223 r4374  
    99@import "../components/plugin/favorite-button/style";
    1010@import "../components/plugin/plugin-banner/style";
     11@import "../components/plugin/sections/changelog/style";
    1112@import "../components/plugin/sections/developers/style";
    1213@import "../components/plugin/sections/faq/style";
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/css/style-rtl.css

    r4278 r4374  
    21242124}
    21252125
     2126#changelog {
     2127  font-size: 12.8px;
     2128  font-size: 0.8rem;
     2129}
     2130
     2131#changelog code {
     2132  font-size: 12.8px;
     2133  font-size: 0.8rem;
     2134}
     2135
     2136#changelog h4 {
     2137  margin-top: 0;
     2138}
     2139
    21262140.plugin-developers {
    21272141  list-style-type: none;
     
    21462160  margin-left: 10px;
    21472161  vertical-align: middle;
     2162  float: right;
    21482163}
    21492164
     
    21712186  font-size: 1rem;
    21722187  font-weight: 600;
    2173   letter-spacing: 0.8px;
    2174   letter-spacing: 0.05rem;
    21752188  padding: 16px 0;
    21762189  padding: 1rem 0;
     
    22772290  margin-top: 8px;
    22782291  margin-top: 0.5rem;
     2292  text-decoration: none;
    22792293}
    22802294
     
    22832297  font-family: dashicons;
    22842298  vertical-align: text-top;
     2299  padding-right: 5px;
     2300  float: left;
     2301  position: relative;
     2302  top: 1px;
    22852303}
    22862304
     
    22982316.image-gallery-content .image-gallery-left-nav,
    22992317.image-gallery-content .image-gallery-right-nav {
    2300   color: #fff;
    2301   font-size: 61.035px;
    2302   font-size: 3.8146972656rem;
     2318  display: none;
     2319  font-size: 48.828px;
     2320  font-size: 3.0517578125rem;
    23032321  height: 100%;
    23042322  position: absolute;
    2305   text-shadow: 0 2px 2px #222;
    23062323  top: 0;
    23072324  z-index: 4;
     2325  border-color: #eee;
     2326  -webkit-transition: background 0.1s ease, border 0.1s ease;
     2327  transition: background 0.1s ease, border 0.1s ease;
    23082328}
    23092329
     
    23182338  .image-gallery-content .image-gallery-left-nav:hover,
    23192339  .image-gallery-content .image-gallery-right-nav:hover {
    2320     color: #fff;
     2340    background: #fff;
     2341    opacity: 0.8;
     2342    border: 1px solid #eee;
    23212343  }
    23222344}
     
    23242346.image-gallery-content .image-gallery-left-nav:before,
    23252347.image-gallery-content .image-gallery-right-nav:before {
    2326   padding: 15px;
    23272348  position: relative;
    2328   top: -15px;
     2349  font-family: 'dashicons';
    23292350}
    23302351
     
    23342355
    23352356.image-gallery-content .image-gallery-left-nav:before {
    2336   content: '\027E8';
     2357  content: '\f341';
     2358}
     2359
     2360.image-gallery-content .image-gallery-left-nav:hover {
     2361  margin-right: -1px;
    23372362}
    23382363
     
    23422367
    23432368.image-gallery-content .image-gallery-right-nav:before {
    2344   content: '\027E9';
     2369  content: '\f345';
     2370}
     2371
     2372.image-gallery-content .image-gallery-right-nav:hover {
     2373  margin-left: -1px;
     2374}
     2375
     2376.image-gallery-content:hover .image-gallery-left-nav,
     2377.image-gallery-content:hover .image-gallery-right-nav {
     2378  display: block;
    23452379}
    23462380
     
    23502384  position: relative;
    23512385  white-space: nowrap;
     2386  border: 1px solid #eee;
    23522387}
    23532388
     
    23772412  padding: 10px 20px;
    23782413  white-space: normal;
     2414  font-size: 12.8px;
     2415  font-size: 0.8rem;
    23792416}
    23802417
     
    23892426  background: #fff;
    23902427  margin-top: 5px;
    2391   overflow: hidden;
    23922428}
    23932429
     
    24012437  display: table-cell;
    24022438  margin-left: 5px;
     2439  border: 1px solid #eee;
    24032440}
    24042441
     
    24082445
    24092446.image-gallery-thumbnail img {
    2410   border: 4px solid transparent;
    24112447  vertical-align: middle;
    24122448  width: 100px;
     
    24152451@media (max-width: 768px) {
    24162452  .image-gallery-thumbnail img {
    2417     border: 3px solid transparent;
    24182453    width: 75px;
    24192454  }
    24202455}
    24212456
    2422 .image-gallery-thumbnail.active img {
    2423   border: 4px solid #337ab7;
    2424 }
    2425 
    2426 @media (max-width: 768px) {
    2427   .image-gallery-thumbnail.active img {
    2428     border: 3px solid #337ab7;
    2429   }
     2457.image-gallery-thumbnail:hover {
     2458  -webkit-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
     2459  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
     2460}
     2461
     2462.image-gallery-thumbnail.active {
     2463  border: 1px solid #337ab7;
    24302464}
    24312465
     
    24682502}
    24692503
    2470 .plugin-screenshots figcaption {
    2471   font-style: italic;
     2504.plugin-screenshots .image-gallery-thumbnails-container {
     2505  max-height: 100px;
     2506}
     2507
     2508.plugin-screenshots .image-gallery-thumbnail {
     2509  vertical-align: top;
    24722510}
    24732511
     
    24822520  max-height: none;
    24832521  overflow: auto;
     2522}
     2523
     2524.read-more:nth-of-type(1) {
     2525  max-height: 400px;
    24842526}
    24852527
     
    25482590  padding-right: 5px;
    25492591  vertical-align: text-top;
     2592  position: relative;
     2593  float: left;
     2594  top: 1px;
    25502595}
    25512596
    25522597.toggled + .section-toggle:after {
    25532598  content: "\f343";
     2599}
     2600
     2601.section-toggle:hover {
     2602  text-decoration: underline;
    25542603}
    25552604
     
    30773126  position: absolute;
    30783127  left: 0;
    3079   top: 4.8px;
    3080   top: 0.3rem;
     3128  top: 0;
    30813129}
    30823130
     
    31083156.plugin-ratings .ratings-list .counter-container a {
    31093157  width: 100%;
     3158}
     3159
     3160.plugin-ratings .ratings-list .counter-container:hover,
     3161.plugin-ratings .ratings-list .counter-container a:hover {
     3162  text-decoration: none;
    31103163}
    31113164
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/css/style.css

    r4344 r4374  
    25022502}
    25032503
     2504.plugin-screenshots .image-gallery-thumbnails-container {
     2505  max-height: 100px;
     2506}
     2507
     2508.plugin-screenshots .image-gallery-thumbnail {
     2509  vertical-align: top;
     2510}
     2511
    25042512.read-more {
    25052513  border-bottom: 2px solid #eee;
     
    32553263  }
    32563264}
    3257 /*# sourceMappingURL=style.css.map */
Note: See TracChangeset for help on using the changeset viewer.