瀏覽代碼

Merge pull request #970 from Yakindu/issue_#963_scedit

Image sizing and adjusting improved (issue #963)
Andreas Mülder 9 年之前
父節點
當前提交
63a22e7f12
共有 1 個文件被更改,包括 134 次插入70 次删除
  1. 134 70
      plugins/org.yakindu.sct.doc.user/css/ysct.css

+ 134 - 70
plugins/org.yakindu.sct.doc.user/css/ysct.css

@@ -1,33 +1,37 @@
 /* Images */
 img.standard-image {
-    max-width: 61.8%;
-    min-width: 38.2%;
-    height: auto;
-    text-align: center;
-    display: block;
-    margin-left: auto;
-    margin-right: auto;
-    box-shadow: 10px 10px 20px #888888;
-    -webkit-box-shadow: 10px 10px 20px #888888;
-    -moz-box-shadow: 10px 10px 20px #888888;
-    border-radius: 4px;
-    margin-top: 1.5ex;
-    margin-bottom: 2.5ex;
+	max-width: 61.8%;
+	min-width: 38.2%;
+	height: auto;
+	text-align: center;
+	display: block;
+	margin-left: auto;
+	margin-right: auto;
+	box-shadow: 10px 10px 20px #888888;
+	-webkit-box-shadow: 10px 10px 20px #888888;
+	-moz-box-shadow: 10px 10px 20px #888888;
+	border-radius: 4px;
+	margin-top: 1.5ex;
+	margin-bottom: 2.5ex;
 }
+
 img.small {
-    width:38.2%;
+	width: 38.2%;
 }
+
 img.full {
-    width:100%;
-    max-width:100%;
+	width: 100%;
+	max-width: 100%;
 }
+
 img.shadowless {
-    box-shadow: none;
-    margin-bottom: 0px;
+	box-shadow: none;
+	margin-bottom: 0px;
 }
+
 img.inlinemediaobject {
-    line-height: 1;
-    vertical-align: middle;
+	line-height: 1;
+	vertical-align: middle;
 }
 
 /* Tables */
@@ -35,88 +39,148 @@ img.inlinemediaobject {
    These tables typically consist of two columns with a textual description in the
    left column and a screenshot on the right. */
 table.scedit {
-	width: auto;
+	width: 90%;
 	border-collapse: collapse;
 }
+
 tr.scedit {
 	vertical-align: top
 }
+
 table.scedit td {
-	border-color: #000;
 	border-radius: 0%;
 	border-style: solid;
 	border-width: 0px;
 	padding-bottom: 1ex;
-	vertical-align: top; 
+	vertical-align: top;
+}
+
+table.scedit td:nth-child(1) {
+	width: 75%;
+	padding-right: 5%;
+}
+
+table.scedit td:nth-child(2) {
+	width: 25%;
 }
+
 table.scedit img {
 	max-width: 100%;
-    margin-left: 0px;
-    margin-right: 0px;
-    box-shadow: 4px 4px 2px #bbb;
+	margin-top: 0px;
+	margin-left: 0px;
+	margin-right: auto;
+	margin-bottom: auto;
+	box-shadow: 4px 4px 2px #bbb;
 }
 
 /* Counter */
-body {counter-reset: h1}
-h1 {counter-reset: h2}
-h2 {counter-reset: h3}
-h3 {counter-reset: h4}
-h4 {counter-reset: h5}
-h5 {counter-reset: h6}
+body {
+	counter-reset: h1
+}
+
+h1 {
+	counter-reset: h2
+}
+
+h2 {
+	counter-reset: h3
+}
+
+h3 {
+	counter-reset: h4
+}
+
+h4 {
+	counter-reset: h5
+}
+
+h5 {
+	counter-reset: h6
+}
+
+.body-container h1:before {
+	counter-increment: h1;
+	content: counter(h1) ". "
+}
+
+.body-container h2:before {
+	counter-increment: h2;
+	content: counter(h1) "." counter(h2) ". "
+}
+
+.body-container h3:before {
+	counter-increment: h3;
+	content: counter(h1) "." counter(h2) "." counter(h3) ". "
+}
+
+.body-container h4:before {
+	counter-increment: h4;
+	content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4)
+		". "
+}
 
-.body-container h1:before {counter-increment: h1; content: counter(h1) ". "}
-.body-container h2:before {counter-increment: h2; content: counter(h1) "." counter(h2) ". "}
-.body-container h3:before {counter-increment: h3; content: counter(h1) "." counter(h2) "." counter(h3) ". "}
-.body-container h4:before {counter-increment: h4; content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) ". "}
-.body-container h5:before {counter-increment: h5; content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ". "}
-.body-container h6:before {counter-increment: h6; content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) ". "}
+.body-container h5:before {
+	counter-increment: h5;
+	content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) "."
+		counter(h5) ". "
+}
 
-h1.nocount:before h2.nocount:before, h3.nocount:before, h4.nocount:before, h5.nocount:before, h6.nocount:before { content: ""; counter-increment: none }
+.body-container h6:before {
+	counter-increment: h6;
+	content: counter(h1) "." counter(h2) "." counter(h3) "." counter(h4) "."
+		counter(h5) "." counter(h6) ". "
+}
 
+h1.nocount:before h2.nocount:before, h3.nocount:before, h4.nocount:before,
+	h5.nocount:before, h6.nocount:before {
+	content: "";
+	counter-increment: none
+}
 
-@media (max-width: 767px) {
-    code {
-        word-wrap: break-word;
-    }
+@media ( max-width : 767px) {
+	code {
+		word-wrap: break-word;
+	}
 }
 
 .pro-feature {
-    border: 2px solid red;
-    border-color: rgba(255,0,0,0.75);
-    border-width: 2px 0 0 2px;
-    position: relative;
-    overflow: hidden;
-    padding: 10px 20px 0;
-    margin-right: -20px;
-    margin-bottom: 30px;
+	border: 2px solid red;
+	border-color: rgba(255, 0, 0, 0.75);
+	border-width: 2px 0 0 2px;
+	position: relative;
+	overflow: hidden;
+	padding: 10px 20px 0;
+	margin-right: -20px;
+	margin-bottom: 30px;
 }
+
 .pro-feature:before {
-	content:"PRO";
-	position:absolute;
-	top:-10px;
-	right:-34px;
-	background:red;
-	background:rgba(255,0,0,0.75);
-	color:white;
-	padding:20px 30px 2px;
-	transform:rotate(45deg);
-	z-index:10
+	content: "PRO";
+	position: absolute;
+	top: -10px;
+	right: -34px;
+	background: red;
+	background: rgba(255, 0, 0, 0.75);
+	color: white;
+	padding: 20px 30px 2px;
+	transform: rotate(45deg);
+	z-index: 10
 }
 
 span.pro-feature {
-	padding:0;
-	border-width:0
+	padding: 0;
+	border-width: 0
 }
+
 span.pro-feature:before {
-	transform:none;
-	padding:0 3px;
-	position:relative;
-	top:0;
-	left:0
+	transform: none;
+	padding: 0 3px;
+	position: relative;
+	top: 0;
+	left: 0
 }
 
 /* Edit on GitHub: */
-
 .sct-docs h1 {
 	/* Make some room for the "Edit on GitHub link": */
 	margin-right: 10rem;
@@ -132,4 +196,4 @@ span.pro-feature:before {
 
 .eclipsehelp .edit-on-github {
 	display: none
-}
+}