Make WordPress Themes

source: meta-write/1.0.0/style-rtl.css

Last change on this file was 297762, checked in by themedropbox, 2 weeks ago

New theme: Meta Write - 1.0.0

File size: 15.8 KB
Line 
1/*
2Theme Name: Meta Write
3Theme URI: https://github.com/TorontoDigits/meta-write
4Author: TorontoDigits
5Author URI: https://www.torontodigits.com/
6Description: Meta Write is a modern, customizable WordPress theme for news portals, blogs, and magazine-style websites.
7Version: 1.0.0
8Requires at least: 5.0
9Tested up to: 6.8
10Requires PHP: 7.4
11License: GPL-2.0-or-later
12License URI: https://www.gnu.org/licenses/gpl-2.0.html
13Text Domain: meta-write
14Tags: blog, news, grid-layout, translation-ready, threaded-comments, rtl-language-support
15Copyright: (c) 2025 Toronto Digits
16*/
17
18
19/*--------------------------------------------------------------
20>>> TABLE OF CONTENTS:
21----------------------------------------------------------------
22# Generic
23        - Normalize
24        - Box sizing
25# Base
26        - Typography
27        - Elements
28        - Links
29        - Forms
30## Layouts
31# Components
32        - Navigation
33        - Posts and pages
34        - Comments
35        - Widgets
36        - Media
37        - Captions
38        - Galleries
39# plugins
40        - Jetpack infinite scroll
41# Utilities
42        - Accessibility
43        - Alignments
44
45--------------------------------------------------------------*/
46
47/*--------------------------------------------------------------
48# Generic
49--------------------------------------------------------------*/
50
51/* Normalize
52--------------------------------------------- */
53
54/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
55
56/* Document
57         ========================================================================== */
58
59/**
60 * 1. Correct the line height in all browsers.
61 * 2. Prevent adjustments of font size after orientation changes in iOS.
62 */
63html {
64        line-height: 1.15;
65        -webkit-text-size-adjust: 100%;
66}
67
68/* Sections
69         ========================================================================== */
70
71/**
72 * Remove the margin in all browsers.
73 */
74body {
75        margin: 0;
76}
77
78/**
79 * Render the `main` element consistently in IE.
80 */
81main {
82        display: block;
83}
84
85/**
86 * Correct the font size and margin on `h1` elements within `section` and
87 * `article` contexts in Chrome, Firefox, and Safari.
88 */
89h1 {
90        font-size: 2em;
91        margin: 0.67em 0;
92}
93
94/* Grouping content
95         ========================================================================== */
96
97/**
98 * 1. Add the correct box sizing in Firefox.
99 * 2. Show the overflow in Edge and IE.
100 */
101hr {
102        box-sizing: content-box;
103        height: 0;
104        overflow: visible;
105}
106
107/**
108 * 1. Correct the inheritance and scaling of font size in all browsers.
109 * 2. Correct the odd `em` font sizing in all browsers.
110 */
111pre {
112        font-family: monospace, monospace;
113        font-size: 1em;
114}
115
116/* Text-level semantics
117         ========================================================================== */
118
119/**
120 * Remove the gray background on active links in IE 10.
121 */
122a {
123        background-color: transparent;
124}
125
126/**
127 * 1. Remove the bottom border in Chrome 57-
128 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
129 */
130abbr[title] {
131        border-bottom: none;
132        text-decoration: underline;
133        text-decoration: underline dotted;
134}
135
136/**
137 * Add the correct font weight in Chrome, Edge, and Safari.
138 */
139b,
140strong {
141        font-weight: bolder;
142}
143
144/**
145 * 1. Correct the inheritance and scaling of font size in all browsers.
146 * 2. Correct the odd `em` font sizing in all browsers.
147 */
148code,
149kbd,
150samp {
151        font-family: monospace, monospace;
152        font-size: 1em;
153}
154
155/**
156 * Add the correct font size in all browsers.
157 */
158small {
159        font-size: 80%;
160}
161
162/**
163 * Prevent `sub` and `sup` elements from affecting the line height in
164 * all browsers.
165 */
166sub,
167sup {
168        font-size: 75%;
169        line-height: 0;
170        position: relative;
171        vertical-align: baseline;
172}
173
174sub {
175        bottom: -0.25em;
176}
177
178sup {
179        top: -0.5em;
180}
181
182/* Embedded content
183        ========================================================================== */
184
185/**
186 * Remove the border on images inside links in IE 10.
187 */
188img {
189        border-style: none;
190}
191
192/* Forms
193         ========================================================================== */
194
195/**
196 * 1. Change the font styles in all browsers.
197 * 2. Remove the margin in Firefox and Safari.
198 */
199button,
200input,
201optgroup,
202select,
203textarea {
204        font-family: inherit;
205        font-size: 100%;
206        line-height: 1.15;
207        margin: 0;
208}
209
210/**
211 * Show the overflow in IE.
212 * 1. Show the overflow in Edge.
213 */
214button,
215input {
216        overflow: visible;
217}
218
219/**
220 * Remove the inheritance of text transform in Edge, Firefox, and IE.
221 * 1. Remove the inheritance of text transform in Firefox.
222 */
223button,
224select {
225        text-transform: none;
226}
227
228/**
229 * Correct the inability to style clickable types in iOS and Safari.
230 */
231button,
232[type="button"],
233[type="reset"],
234[type="submit"] {
235        -webkit-appearance: button;
236}
237
238/**
239 * Remove the inner border and padding in Firefox.
240 */
241button::-moz-focus-inner,
242[type="button"]::-moz-focus-inner,
243[type="reset"]::-moz-focus-inner,
244[type="submit"]::-moz-focus-inner {
245        border-style: none;
246        padding: 0;
247}
248
249/**
250 * Restore the focus styles unset by the previous rule.
251 */
252button:-moz-focusring,
253[type="button"]:-moz-focusring,
254[type="reset"]:-moz-focusring,
255[type="submit"]:-moz-focusring {
256        outline: 1px dotted ButtonText;
257}
258
259/**
260 * Correct the padding in Firefox.
261 */
262fieldset {
263        padding: 0.35em 0.75em 0.625em;
264}
265
266/**
267 * 1. Correct the text wrapping in Edge and IE.
268 * 2. Correct the color inheritance from `fieldset` elements in IE.
269 * 3. Remove the padding so developers are not caught out when they zero out
270 *              `fieldset` elements in all browsers.
271 */
272legend {
273        box-sizing: border-box;
274        color: inherit;
275        display: table;
276        max-width: 100%;
277        padding: 0;
278        white-space: normal;
279}
280
281/**
282 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
283 */
284progress {
285        vertical-align: baseline;
286}
287
288/**
289 * Remove the default vertical scrollbar in IE 10+.
290 */
291textarea {
292        overflow: auto;
293}
294
295/**
296 * 1. Add the correct box sizing in IE 10.
297 * 2. Remove the padding in IE 10.
298 */
299[type="checkbox"],
300[type="radio"] {
301        box-sizing: border-box;
302        padding: 0;
303}
304
305/**
306 * Correct the cursor style of increment and decrement buttons in Chrome.
307 */
308[type="number"]::-webkit-inner-spin-button,
309[type="number"]::-webkit-outer-spin-button {
310        height: auto;
311}
312
313/**
314 * 1. Correct the odd appearance in Chrome and Safari.
315 * 2. Correct the outline style in Safari.
316 */
317[type="search"] {
318        -webkit-appearance: textfield;
319        outline-offset: -2px;
320}
321
322/**
323 * Remove the inner padding in Chrome and Safari on macOS.
324 */
325[type="search"]::-webkit-search-decoration {
326        -webkit-appearance: none;
327}
328
329/**
330 * 1. Correct the inability to style clickable types in iOS and Safari.
331 * 2. Change font properties to `inherit` in Safari.
332 */
333::-webkit-file-upload-button {
334        -webkit-appearance: button;
335        font: inherit;
336}
337
338/* Interactive
339         ========================================================================== */
340
341/*
342 * Add the correct display in Edge, IE 10+, and Firefox.
343 */
344details {
345        display: block;
346}
347
348/*
349 * Add the correct display in all browsers.
350 */
351summary {
352        display: list-item;
353}
354
355/* Misc
356         ========================================================================== */
357
358/**
359 * Add the correct display in IE 10+.
360 */
361template {
362        display: none;
363}
364
365/**
366 * Add the correct display in IE 10.
367 */
368[hidden] {
369        display: none;
370}
371
372/* Box sizing
373--------------------------------------------- */
374
375/* Inherit box-sizing to more easily change it's value on a component level.
376@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
377::before,
378::after {
379        box-sizing: inherit;
380}
381
382html {
383        box-sizing: border-box;
384}
385
386/*--------------------------------------------------------------
387# Base
388--------------------------------------------------------------*/
389
390/* Typography
391--------------------------------------------- */
392body,
393button,
394input,
395select,
396optgroup,
397textarea {
398        color: #404040;
399        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
400        font-size: 1rem;
401        line-height: 1.5;
402}
403
404h1,
405h2,
406h3,
407h4,
408h5,
409h6 {
410        clear: both;
411}
412
413p {
414        margin-bottom: 1.5em;
415}
416
417dfn,
418cite,
419em,
420i {
421        font-style: italic;
422}
423
424blockquote {
425        margin: 0 1.5em;
426}
427
428address {
429        margin: 0 0 1.5em;
430}
431
432pre {
433        background: #eee;
434        font-family: "Courier 10 Pitch", courier, monospace;
435        line-height: 1.6;
436        margin-bottom: 1.6em;
437        max-width: 100%;
438        overflow: auto;
439        padding: 1.6em;
440}
441
442code,
443kbd,
444tt,
445var {
446        font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
447}
448
449abbr,
450acronym {
451        border-bottom: 1px dotted #666;
452        cursor: help;
453}
454
455mark,
456ins {
457        background: #fff9c0;
458        text-decoration: none;
459}
460
461big {
462        font-size: 125%;
463}
464
465/* Elements
466--------------------------------------------- */
467body {
468        background: #fff;
469}
470
471hr {
472        background-color: #ccc;
473        border: 0;
474        height: 1px;
475        margin-bottom: 1.5em;
476}
477
478ul,
479ol {
480        margin: 0 3em 1.5em 0;
481}
482
483ul {
484        list-style: disc;
485}
486
487ol {
488        list-style: decimal;
489}
490
491li > ul,
492li > ol {
493        margin-bottom: 0;
494        margin-right: 1.5em;
495}
496
497dt {
498        font-weight: 700;
499}
500
501dd {
502        margin: 0 1.5em 1.5em;
503}
504
505/* Make sure embeds and iframes fit their containers. */
506embed,
507iframe,
508object {
509        max-width: 100%;
510}
511
512img {
513        height: auto;
514        max-width: 100%;
515}
516
517figure {
518        margin: 1em 0;
519}
520
521table {
522        margin: 0 0 1.5em;
523        width: 100%;
524}
525
526/* Links
527--------------------------------------------- */
528a {
529        color: #4169e1;
530}
531
532a:visited {
533        color: #800080;
534}
535
536a:hover,
537a:focus,
538a:active {
539        color: #191970;
540}
541
542a:focus {
543        outline: thin dotted;
544}
545
546a:hover,
547a:active {
548        outline: 0;
549}
550
551/* Forms
552--------------------------------------------- */
553button,
554input[type="button"],
555input[type="reset"],
556input[type="submit"] {
557        border: 1px solid;
558        border-color: #ccc #ccc #bbb;
559        border-radius: 3px;
560        background: #e6e6e6;
561        color: rgba(0, 0, 0, 0.8);
562        line-height: 1;
563        padding: 0.6em 1em 0.4em;
564}
565
566button:hover,
567input[type="button"]:hover,
568input[type="reset"]:hover,
569input[type="submit"]:hover {
570        border-color: #ccc #bbb #aaa;
571}
572
573button:active,
574button:focus,
575input[type="button"]:active,
576input[type="button"]:focus,
577input[type="reset"]:active,
578input[type="reset"]:focus,
579input[type="submit"]:active,
580input[type="submit"]:focus {
581        border-color: #aaa #bbb #bbb;
582}
583
584input[type="text"],
585input[type="email"],
586input[type="url"],
587input[type="password"],
588input[type="search"],
589input[type="number"],
590input[type="tel"],
591input[type="range"],
592input[type="date"],
593input[type="month"],
594input[type="week"],
595input[type="time"],
596input[type="datetime"],
597input[type="datetime-local"],
598input[type="color"],
599textarea {
600        color: #666;
601        border: 1px solid #ccc;
602        border-radius: 3px;
603        padding: 3px;
604}
605
606input[type="text"]:focus,
607input[type="email"]:focus,
608input[type="url"]:focus,
609input[type="password"]:focus,
610input[type="search"]:focus,
611input[type="number"]:focus,
612input[type="tel"]:focus,
613input[type="range"]:focus,
614input[type="date"]:focus,
615input[type="month"]:focus,
616input[type="week"]:focus,
617input[type="time"]:focus,
618input[type="datetime"]:focus,
619input[type="datetime-local"]:focus,
620input[type="color"]:focus,
621textarea:focus {
622        color: #111;
623}
624
625select {
626        border: 1px solid #ccc;
627}
628
629textarea {
630        width: 100%;
631}
632
633/*--------------------------------------------------------------
634# Layouts
635--------------------------------------------------------------*/
636
637/*--------------------------------------------------------------
638# Components
639--------------------------------------------------------------*/
640
641/* Navigation
642--------------------------------------------- */
643.main-navigation {
644        display: block;
645        width: 100%;
646}
647
648.main-navigation ul {
649        display: none;
650       
651        margin: 0;
652        padding-right: 0;
653}
654
655.main-navigation ul ul {
656        box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
657        float: right;
658        position: absolute;
659        top: 100%;
660        right: -999em;
661        z-index: 99999;
662}
663
664.main-navigation ul ul ul {
665        right: -999em;
666        top: 0;
667}
668
669.main-navigation ul ul li:hover > ul,
670.main-navigation ul ul li.focus > ul {
671        display: block;
672        right: auto;
673}
674
675.main-navigation ul ul a {
676        width: 200px;
677}
678
679.main-navigation ul li:hover > ul,
680.main-navigation ul li.focus > ul {
681        right: auto;
682}
683
684.main-navigation li {
685        position: relative;
686}
687
688.main-navigation a {
689        display: block;
690        text-decoration: none;
691}
692
693/* Small menu. */
694.menu-toggle,
695.main-navigation.toggled ul {
696        display: block;
697}
698
699@media screen and (min-width: 37.5em) {
700
701        .menu-toggle {
702                display: none;
703        }
704
705        .main-navigation ul {
706                display: flex;
707        }
708}
709
710.site-main .comment-navigation,
711.site-main
712.posts-navigation,
713.site-main
714.post-navigation {
715        margin: 0 0 1.5em;
716}
717
718.comment-navigation .nav-links,
719.posts-navigation .nav-links,
720.post-navigation .nav-links {
721        display: flex;
722}
723
724.comment-navigation .nav-previous,
725.posts-navigation .nav-previous,
726.post-navigation .nav-previous {
727        flex: 1 0 50%;
728}
729
730.comment-navigation .nav-next,
731.posts-navigation .nav-next,
732.post-navigation .nav-next {
733        text-align: end;
734        flex: 1 0 50%;
735}
736
737/* Posts and pages
738--------------------------------------------- */
739.sticky {
740        display: block;
741}
742
743.post,
744.page {
745        margin: 0 0 1.5em;
746}
747
748.updated:not(.published) {
749        display: none;
750}
751
752.page-content,
753.entry-content,
754.entry-summary {
755        margin: 1.5em 0 0;
756}
757
758.page-links {
759        clear: both;
760        margin: 0 0 1.5em;
761}
762
763/* Comments
764--------------------------------------------- */
765.comment-content a {
766        word-wrap: break-word;
767}
768
769.bypostauthor {
770        display: block;
771}
772
773/* Widgets
774--------------------------------------------- */
775.widget {
776        margin: 0 0 1.5em;
777}
778
779.widget select {
780        max-width: 100%;
781}
782
783/* Media
784--------------------------------------------- */
785.page-content .wp-smiley,
786.entry-content .wp-smiley,
787.comment-content .wp-smiley {
788        border: none;
789        margin-bottom: 0;
790        margin-top: 0;
791        padding: 0;
792}
793
794/* Make sure logo link wraps around logo image. */
795.custom-logo-link {
796        display: inline-block;
797}
798
799/* Captions
800--------------------------------------------- */
801.wp-caption {
802        margin-bottom: 1.5em;
803        max-width: 100%;
804}
805
806.wp-caption img[class*="wp-image-"] {
807        display: block;
808        margin-right: auto;
809        margin-left: auto;
810}
811
812.wp-caption .wp-caption-text {
813        margin: 0.8075em 0;
814}
815
816.wp-caption-text {
817        text-align: center;
818}
819
820/* Galleries
821--------------------------------------------- */
822.gallery {
823        margin-bottom: 1.5em;
824        display: grid;
825        grid-gap: 1.5em;
826}
827
828.gallery-item {
829        display: inline-block;
830        text-align: center;
831        width: 100%;
832}
833
834.gallery-columns-2 {
835        grid-template-columns: repeat(2, 1fr);
836}
837
838.gallery-columns-3 {
839        grid-template-columns: repeat(3, 1fr);
840}
841
842.gallery-columns-4 {
843        grid-template-columns: repeat(4, 1fr);
844}
845
846.gallery-columns-5 {
847        grid-template-columns: repeat(5, 1fr);
848}
849
850.gallery-columns-6 {
851        grid-template-columns: repeat(6, 1fr);
852}
853
854.gallery-columns-7 {
855        grid-template-columns: repeat(7, 1fr);
856}
857
858.gallery-columns-8 {
859        grid-template-columns: repeat(8, 1fr);
860}
861
862.gallery-columns-9 {
863        grid-template-columns: repeat(9, 1fr);
864}
865
866.gallery-caption {
867        display: block;
868}
869
870/*--------------------------------------------------------------
871# Plugins
872--------------------------------------------------------------*/
873
874/* Jetpack infinite scroll
875--------------------------------------------- */
876
877.infinite-scroll .posts-navigation,
878.infinite-scroll.neverending .site-footer {
879        display: none;
880}
881
882.infinity-end.neverending .site-footer {
883        display: block;
884}
885
886/*--------------------------------------------------------------
887# Utilities
888--------------------------------------------------------------*/
889
890/* Accessibility
891--------------------------------------------- */
892
893/* Text meant only for screen readers. */
894.screen-reader-text {
895        border: 0;
896        clip: rect(1px, 1px, 1px, 1px);
897        clip-path: inset(50%);
898        height: 1px;
899        margin: -1px;
900        overflow: hidden;
901        padding: 0;
902        position: absolute !important;
903        width: 1px;
904        word-wrap: normal !important;
905}
906
907.screen-reader-text:focus {
908        background-color: #f1f1f1;
909        border-radius: 3px;
910        box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
911        clip: auto !important;
912        clip-path: none;
913        color: #21759b;
914        display: block;
915        font-size: 0.875rem;
916        font-weight: 700;
917        height: auto;
918        right: 5px;
919        line-height: normal;
920        padding: 15px 23px 14px;
921        text-decoration: none;
922        top: 5px;
923        width: auto;
924        z-index: 100000;
925}
926
927#primary[tabindex="-1"]:focus {
928        outline: 0;
929}
930
931/* Alignments
932--------------------------------------------- */
933.alignleft {
934        float: left;
935        margin-right: 1.5em;
936        margin-bottom: 1.5em;
937}
938
939.alignright {
940        float: right;
941        margin-left: 1.5em;
942        margin-bottom: 1.5em;
943}
944
945.aligncenter {
946        clear: both;
947        display: block;
948        margin-right: auto;
949        margin-left: auto;
950        margin-bottom: 1.5em;
951}
Note: See TracBrowser for help on using the repository browser.