Просмотр исходного кода

Merge pull request #351 from chrisbalt/master

Small screen accommodations for .wp-caption images
Eddie Machado 13 лет назад
Родитель
Сommit
db0e14f638
2 измененных файлов с 4 добавлено и 0 удалено
  1. 2 0
      library/less/_base.less
  2. 2 0
      library/scss/_base.scss

+ 2 - 0
library/less/_base.less

@@ -388,11 +388,13 @@ and more scalable.
 		} /* end .entry-content */
 
 		.wp-caption {
+			max-width: 100%;
 			background: #eee;
 			padding: 5px;
 
 			/* images inside wp-caption */
 			img {
+				max-width: 100%;
 				margin-bottom: 0;
 				width: 100%;
 			}

+ 2 - 0
library/scss/_base.scss

@@ -353,11 +353,13 @@ POSTS & CONTENT STYLES
 		} /* end .entry-content */
 
 		.wp-caption {
+			max-width: 100%;
 			background: #eee;
 			padding: 5px;
 
 			/* images inside wp-caption */
 			img {
+				max-width: 100%;
 				margin-bottom: 0;
 				width: 100%;
 			}