tibiole

wd-cikk-tartalom

Oct 2nd, 2025
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 5.60 KB | None | 0 0
  1. .article-content {
  2.  
  3.   --wd-font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  4.   --wd-text: #0f172a;          
  5.   --wd-muted: #475569;        
  6.   --wd-soft:  #64748b;        
  7.   --wd-border:#e2e8f0;        
  8.   --wd-bg:    #ffffff;
  9.   --wd-bg-soft:#f8fafc;        
  10.   --wd-accent:#2aa9e0;        
  11.   --wd-accent-600:#188bc2;
  12.   --wd-mark: #fff2b3;
  13.  
  14.   color: var(--wd-text);
  15.  
  16.   line-height: 1.7;
  17.   font-size: 1.05rem;
  18. }
  19.  
  20. .article-content img,
  21. .article-content video,
  22. .article-content svg {
  23.   max-width: 100%;
  24.   height: auto;
  25.   border-radius: 8px;
  26. }
  27.  
  28. .article-content .lead {
  29.   font-size: 1.125rem;
  30.   color: var(--wd-muted);
  31.   margin-top: .25rem;
  32. }
  33.  
  34. .article-content hr {
  35.   border: 0;
  36.   height: 1px;
  37.   background: linear-gradient(to right, transparent, var(--wd-border), transparent);
  38.   margin: 2rem 0;
  39. }
  40.  
  41. .article-content h1,
  42. .article-content h2,
  43. .article-content h3,
  44. .article-content h4 {
  45.   line-height: 1.25;
  46.   font-weight: 600;
  47.   letter-spacing: -.01em;
  48.   margin: 1.5rem 0 .75rem;
  49. }
  50.  
  51. .article-content h1 { font-size: clamp(2rem, 3vw, 2.5rem); }
  52. .article-content h2 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); }
  53. .article-content h3 { font-size: clamp(1.25rem, 1.8vw, 1.375rem); }
  54. .article-content h4 { font-size: 1.125rem; }
  55.  
  56. .article-content p { margin: .9rem 0; }
  57. .article-content strong { font-weight: 600; }
  58. .article-content em { font-style: italic; }
  59. .article-content u { text-underline-offset: 2px; }
  60. .article-content small { color: var(--wd-soft); font-size: .9em; }
  61. .article-content mark {
  62.   background: var(--wd-mark);
  63.   padding: .05em .25em;
  64.   border-radius: 3px;
  65. }
  66.  
  67. .article-content a {
  68.   color: var(--wd-accent);
  69.   text-decoration: underline;
  70.   text-underline-offset: 2px;
  71.   transition: color .15s ease;
  72. }
  73. .article-content a:hover { color: var(--wd-accent-600); }
  74.  
  75. .article-content figure { margin: 1.25rem 0; }
  76. .article-content figcaption {
  77.   color: var(--wd-soft);
  78.   font-size: .95rem;
  79.   margin-top: .5rem;
  80. }
  81.  
  82. .article-content ul,
  83. .article-content ol {
  84.   padding-left: 1.9rem;    
  85.   margin: .75rem 0 1rem;
  86. }
  87. .article-content li { margin: .45rem 0; }
  88. .article-content ul li { list-style: disc; }
  89. .article-content ol { counter-reset: item; }
  90. .article-content ol li { list-style: decimal; }
  91.  
  92. .article-content ul ul,
  93. .article-content ol ol,
  94. .article-content ul ol,
  95. .article-content ol ul {
  96.   margin-left: .75rem;
  97.   padding-left: 1.5rem;
  98. }
  99.  
  100. .article-content blockquote {
  101.   position: relative;
  102.   margin: 1.25rem 0;
  103.   padding: 1.15rem 1.25rem;
  104.   color: var(--wd-muted);
  105.   background: linear-gradient(180deg, #f8fafc 0%, #f3f8fc 100%);
  106.   border: 1px solid var(--wd-border);
  107.   border-left: 5px solid var(--wd-accent);
  108.   border-radius: 0px 10px 10px 0px;
  109.   box-shadow: 0 1px 0 rgba(15,23,42,.03), inset 0 0 0 1px rgba(255,255,255,.4);
  110. }
  111. .article-content blockquote::before {
  112.   content: "“";
  113.   position: absolute;
  114.   left: 10px;
  115.   top: -14px;
  116.   font-size: 3rem;
  117.   line-height: 1;
  118.   color: var(--wd-accent);
  119.   opacity: .65;
  120.   pointer-events: none;
  121. }
  122. .article-content blockquote > :last-child { margin-bottom: 0; }
  123. .article-content blockquote strong { color: var(--wd-text); }
  124.  
  125. .article-content blockquote cite {
  126.   display: block;
  127.   margin-top: .5rem;
  128.   color: var(--wd-soft);
  129.   font-style: normal;
  130.   font-size: .95em;
  131. }
  132.  
  133. .article-content table {
  134.   width: 100%;
  135.   border-collapse: collapse;
  136.   border: 1px solid var(--wd-border);
  137.   border-radius: 8px;
  138.   overflow: hidden;
  139. }
  140. .article-content thead th {
  141.   background: var(--wd-bg-soft);
  142.   color: var(--wd-muted);
  143.   font-weight: 600;
  144. }
  145. .article-content th,
  146. .article-content td {
  147.   padding: .75rem .9rem;
  148.   border-bottom: 1px solid var(--wd-border);
  149. }
  150. .article-content tbody tr:hover { background: #f9fbfd; }
  151.  
  152. .article-content code {
  153.   font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  154.   background: #0f172a0d;
  155.   padding: .1rem .35rem;
  156.   border-radius: 4px;
  157.   font-size: .95em;
  158. }
  159. .article-content pre {
  160.   background: #0f172a0d;
  161.   border: 1px solid var(--wd-border);
  162.   border-radius: 8px;
  163.   padding: 1rem;
  164.   overflow: auto;
  165.   box-shadow: inset 0 0 0 1px rgba(15,23,42,.02);
  166. }
  167. .article-content pre code { background: transparent; padding: 0; }
  168.  
  169. .article-content dl { margin: 1rem 0; }
  170. .article-content dt { font-weight: 600; margin-top: .5rem; }
  171. .article-content dd { margin: 0 0 .5rem 0; color: var(--wd-muted); }
  172.  
  173. .article-content aside {
  174.   background: linear-gradient(to bottom right, #f8fafc, #f3f8fc);
  175.   border: 1px solid var(--wd-border);
  176.   border-left: 4px solid var(--wd-accent);
  177.   border-radius: 8px;
  178.   padding: .9rem 1rem;
  179.   margin: 1.25rem 0;
  180. }
  181.  
  182. .article-content nav[aria-label="Tartalomjegyzék"] {
  183.   background: var(--wd-bg-soft);
  184.   border: 1px solid var(--wd-border);
  185.   border-radius: 10px;
  186.   padding: .9rem 1rem;
  187.   margin: 1rem 0 1.25rem;
  188. }
  189. .article-content nav[aria-label="Tartalomjegyzék"] h2 {
  190.   margin: 0 0 .25rem;
  191.   font-size: 1.1rem;
  192.   letter-spacing: .1px;
  193. }
  194. .article-content nav[aria-label="Tartalomjegyzék"] ul {
  195.   margin: .25rem 0 0;
  196.   padding-left: 1rem;
  197. }
  198. .article-content nav[aria-label="Tartalomjegyzék"] li {
  199.   margin: .25rem 0;
  200. }
  201. @media (min-width: 992px) {
  202.  
  203.   .article-content nav[aria-label="Tartalomjegyzék"] {
  204.     position: sticky;
  205.     top: 96px;
  206.   }
  207. }
  208.  
  209. .article-content header { margin-bottom: 1rem; }
  210. .article-content footer { color: var(--wd-soft); }
  211.  
  212. .article-content section + section { margin-top: 1.5rem; }
  213.  
  214. .article-content abbr[title] {
  215.   text-decoration: underline dotted;
  216.   cursor: help;
  217. }
  218.  
  219.  
Advertisement
Add Comment
Please, Sign In to add comment