@IT 記事の 印刷/PDFページ のスタイルを、記事と同様の見た目に変更
@IT 印刷/PDFページを記事ページ同様のスタイルに by Katsu2013
Details
AuthorKatsu2013
LicenseMIT
Categoryitmedia
Created
Updated
Size3.7 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
Userstyle doesn't have notes.Source code
/* ==UserStyle==
@name @IT 印刷/PDFページを記事ページ同様のスタイルに
@version 20250212.07.52
@namespace ?
==/UserStyle== */
@-moz-document url-prefix("https://ids.itmedia.co.jp/print/ait/") {
h3 {
clear: both;
margin: 0 0 20px;
padding: 5px 0 3px;
font-size: 18px;
line-height: 26px;
color: #000;
border-bottom: 3px solid #CCC;
position: relative;
padding-left: 10px;
border-left: 6px solid #5ca3c5;
border-bottom: 1px solid #5ca3c5;
}
.box {
border: 3px solid #666;
border-radius: 2px;
margin-bottom: 20px;
padding: 8px;
}
.box#blue {
border-color: rgba(38, 112, 149, 1);
background: rgba(38, 112, 149, 0.1);
}
.box#blue h3 {
padding: 0;
font-size: 14px;
line-height: 20px;
margin: 0 0 10px;
border-bottom: 3px solid #CCC;
border-color: rgba(38, 112, 149, 0.5);
}
.box#blue h3:before {
content: none;
}
.box#blue br {
display: none;
}
h4 {
font-size: 12px;
line-height: 18px;
margin: 0 0 10px;
border-bottom: 1px solid #CCC;
}
ul, ol {
margin: 0 0 20px 20px;
padding-left: 0;
}
li {
position: relative;
left: 18px;
font-size: 16px;
line-height: 26px;
margin: 0 18px 6px 0;
}
.box ul li, .box ol li {
font-size: 14px;
line-height: 20px;
margin: 0 0 10px;
}
a {
color: #317F7A;
text-decoration: none;
}
.cmsBodyBox {
margin-bottom: 20px;
}
.cmsBodyBoxInner {
border: 3px solid #666;
border-radius: 2px;
padding: 8px;
}
.cmsBodyBoxInner h3:not(.format--subheading), .cmsBodyBoxInner h3 {
font-size: 14px;
line-height: 20px;
margin: 0 0 10px;
}
.cmsBodyBoxInner p {
font-size: 12px;
line-height: 18px;
margin: 0 ;
}
.cmsBodyBoxGreen .cmsBodyBoxInner {
border-color: rgba(100, 149, 38, 1);
background: rgba(100, 149, 38, 0.1);
}
.cmsBodyBoxGreen .cmsBodyBoxInner h3 {
border-color: rgba(100, 149, 38, 0.5);
padding-left: 0;
}
.cmsBodyBoxGreen .cmsBodyBoxInner h3:before {
content: none;
}
h1 {
font-size: 24px;
line-height: 32px;
font-weight: bold;
overflow-wrap: break-word;
color: #000;
}
h1 small {
margin-bottom: 4px;
font-size: 14px;
line-height: 20px;
font-weight: bold;
font-style: inherit;
color: #BD372F;
}
h2 {
margin: 0 0 5px;
font-weight: normal;
font-size: 13px;
line-height: 20px;
color: #555;
}
h5 {
font-size: 10px;
line-height: 16px;
text-align: right;
color: #666;
position: relative;
font-weight: normal;
float: left;
margin-bottom: -2em;
}
h5:before {
content: '';
background: url(https://image.itmedia.co.jp/images/update.png) no-repeat left center;
background-size: 11px 11px;
padding: 1px 0 0 15px;
}
#byline {
margin: 0 0 20px;
font-size: 12px;
text-align: right;
color: #333;
}
.endkwd .box {
background: none;
border: none;
margin: 0 0 10px;
padding: 0;
}
.endkwd .box h3 {
border-bottom: 1px solid #CCC;
margin: 0 0 5px;
padding: 0 0 5px;
font-size: 12px;
line-height: 18px;
color: #666;
}
.endkwd .box h3:before {
content: none;
}
.endkwd .box h4 {
border: none;
margin: 0;
color: #FFF;
font-weight: normal;
}
.endkwd .box h4 a {
background: url(https://image.itmedia.co.jp/images/ulli_key1.gif) no-repeat left center;
padding: 0 0 0 18px;
font-weight: bold;
}
#id p {
font-size: small;
}
div#url p a {
font-size: small;
}
#col600c {
margin-left: auto;
margin-right: auto;
}
}