Advertisement
TheiPhoneFan

Article.css final version

Jun 9th, 2024 (edited)
600
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 8.00 KB | None | 0 0
  1. /* Created On 2024-06-04 */
  2. /* Theme 6.0.4 2023-2024 */
  3. body {
  4.   background-color: white;
  5. }
  6.  
  7.  
  8. /* Text */
  9. p {
  10.   font-size: 20px;
  11.   align-items: center;
  12.   font-family: 'Roboto', sans-serif;
  13.   font-weight:300;
  14. }
  15.  
  16. h1 {
  17.   font-size: 45px;
  18.   font-family: 'Roboto', sans-serif;
  19.   align-items: center;
  20. }
  21.  
  22. h2 {
  23.   font-size: 30px;
  24.   font-family: 'Roboto', sans-serif;
  25. }
  26.  
  27. h3 {
  28.   font-size: 25px;
  29.   font-family: 'Roboto', sans-serif;
  30.   align-items: center;
  31. }
  32.  
  33. h4 /* I never use this tag */ {
  34.   font-size: 20px;
  35.   font-family: 'Roboto', sans-serif;
  36. }
  37.  
  38. h5 /* I never use this tag */ {
  39.   font-size: 15px;
  40.   font-family: 'Roboto', sans-serif;
  41. }
  42.  
  43. h6 /* I never use this tag */ {
  44.   font-size: 10px;
  45.   font-family: 'Roboto', sans-serif;
  46. }
  47.  
  48. li /* List Item in the <ul> tag */ {
  49.   font-size:20px;
  50.   color:black;
  51.   font-family:'Roboto', sans-serif;
  52.   font-weight:300;
  53.   margin:10px;
  54. }
  55.  
  56. summary { /* This is text that names a <details> section */
  57.   color: black;
  58.   font-family: 'Roboto', sans-serif;
  59.   font-weight:bold;
  60.   font-size:20px;
  61.   cursor: pointer;
  62. }
  63.  
  64. a {
  65.   font-family: 'Roboto', sans-serif;
  66.   color: #0b5394ff;
  67.   font-size: 20px;
  68.   align-items: center;
  69.   font-weight: 300;
  70.   text-decoration: undeline;
  71. }
  72.  
  73. a:hover {
  74.   text-decoration: none;
  75. }
  76.  
  77. figcaption { /* Image Caption */
  78.   color:black;
  79.   font-family: 'Roboto', sans-serif;
  80.   font-weight:300;
  81.   font-size:20px;
  82. }
  83.  
  84. time {
  85.   font-family: 'Roboto', sans-serif;
  86.   font-size: 20px;
  87.   font-weight: 300;
  88. }
  89.  
  90. /* Page Elements */
  91. hr {
  92.   height: 1px;
  93.   border-width: 0;
  94.   color: black;
  95.   background-color: black;
  96.   width: 95%;
  97.   margin-top: 25px;
  98.   margin-bottom: 25px;
  99. }
  100.  
  101. video { /* Videos will have rounded corners. */
  102.   border-radius: 13px;
  103. }
  104.  
  105. iframe {
  106.   border-radius:16px;
  107.   border-color:transparent;
  108. }
  109.  
  110. button {
  111.   background-image: url('../theme/aqua.jpeg');
  112.   background-size: cover;
  113.  
  114.   background-position-x: center;
  115.   background-position-y: center;
  116.  
  117.   border: 2px solid #ccc;
  118.   border-radius: 16px;
  119.  
  120.   border-top-color: #8ba2c1;
  121.   border-right-color: #5890bf;
  122.   border-bottom-color: #4f93ca;
  123.   border-left-color: #768fa5;
  124.  
  125.   align-items: center;
  126.  
  127.   text-shadow: #0a0a0a80 1px 2px 2px;
  128.  
  129.   margin-bottom: 5px;
  130.   height: 40px;
  131.   font-family: 'Roboto', sans-serif;
  132.   font-weight: 300;
  133. }
  134.  
  135. button:hover {
  136.   box-shadow: #428cf080 0px 10px 16px;
  137.   transition: 0.3s;
  138. }
  139.  
  140. button a {
  141.   text-decoration: none;
  142.   color: white;
  143. }
  144.  
  145. button b {
  146.   font-weight: 400;
  147. }
  148.  
  149. /* Start flex-container */
  150. .flex-container {
  151.   display: flex;
  152.   flex-wrap:wrap;
  153. }
  154. .flex-container>div  /* Used to place content side-by-side. */  {
  155. padding: 10px;
  156. }
  157. /* End flex-container */
  158.  
  159. /* Start flex-box */
  160. .flex-box { /* Where the .flex-box content is contained */
  161. display: flex;
  162. justify-content: center;
  163. }
  164. @media (max-width: 6in) { /* If the screen with is less than 6 inches (576 px), the content will display in a column. */
  165. .flex-box {
  166.     flex-direction: column;
  167. }
  168. }
  169. .flex-box>div  /* Used to place content side-by-side. */  {
  170. align-items: center;
  171. padding: 10px;
  172. }
  173. /* End Flex Container */
  174.  
  175. /* Start flex-box */
  176. .flex-box { /* Where the .flex-box content is contained */
  177.   display: flex;
  178.   justify-content: center;
  179. }
  180. @media (max-width: 6in) { /* If the screen with is less than 6 inches (576 px), the content will display in a column. */
  181.   .flex-box {
  182.       flex-direction: column;
  183.   }
  184. }
  185. .flex-box>div  /* Used to place content side-by-side. */  {
  186.   align-items: center;
  187.   padding: 10px;
  188. }
  189.  
  190. noscript {
  191.   text-align: center;
  192.   font-size: 20px;
  193.   font-weight: bold;
  194.   font-family: 'Roboto', sans-serif;
  195.   color: red;
  196. }
  197.  
  198. .twitter-share-button {
  199.   text-align: left;
  200.   padding-top: 5px;
  201. }
  202.  
  203. .topbtn {
  204.   text-align: center;
  205. }
  206.  
  207. .topbtn img {
  208.   border-radius: 20%;
  209.   width: 40px;
  210. }
  211.  
  212. /* Top Bar CSS */
  213. .navbar {
  214.   overflow: hidden;
  215.   background-image: url('pinstripes-1x.png');
  216.   border-radius: 13px;
  217.   border: 1px solid #ccc;
  218. }
  219.  
  220. @media (max-width: 749px) {
  221.   .navbar {
  222.       display: none;
  223.   }
  224. }
  225.  
  226. .navbar a {
  227.   float: left;
  228.   font-size: 16px;
  229.   color: black;
  230.   text-align: center;
  231.   padding: 14px 16px;
  232.   text-decoration: none;
  233.   font-family: 'Roboto', sans-serif;
  234.   font-weight: 300;
  235.   color: gray;
  236.   cursor: pointer;
  237. }
  238.  
  239. .navbar a img {
  240.   vertical-align: middle;
  241. }
  242.  
  243. .dropdown {
  244.   float: left;
  245.   overflow: hidden;
  246.   font-weight: 300;
  247. }
  248.  
  249. .dropdown .dropbtn {
  250.   font-size: 16px;
  251.   border: none;
  252.   outline: none;
  253.   color: white;
  254.   padding: 14px 16px;
  255.   background-color: inherit;
  256.   background-image: none;
  257.   font-family: 'Roboto', sans-serif;
  258.   font-weight: 300;
  259.   margin: 0;
  260.   color: gray;
  261.   cursor: pointer;
  262.   border-radius: 0px;
  263.   text-shadow: none;
  264.   height: 100%;
  265. }
  266.  
  267. .navbar a:hover, .dropdown:hover, .navbar a:hover, .dropbtn:hover {
  268.   background-color: #eeeeee;
  269.   transition: 0.3s;
  270.   color: #000000;
  271. }
  272.  
  273. .dropdown-content {
  274.   display: none;
  275.   position: absolute;
  276.   background-image: url('pinstripes-1x.png');
  277.   min-width: 160px;
  278.   z-index: 1;
  279.   border-radius: 16px;
  280.   border: 1px solid #ccc;
  281.   max-width: 100%; /* Added to limit the width to 100% of the screen */
  282.   box-sizing: border-box; /* Added to include padding and border in the width calculation */
  283.   margin-bottom: 1px;
  284. }
  285.  
  286. .dropdown-content a {
  287.   float: none;
  288.   color: black;
  289.   padding: 12px 16px;
  290.   text-decoration: none;
  291.   display: block;
  292.   max-height: 200px; /* Adjust the value as needed */
  293.   overflow-x: hidden;
  294.   text-align: left;
  295.   cursor: pointer;
  296. }
  297.  
  298. .dropdown-content a:hover {
  299.   background-color: #eeeeee;
  300. }
  301.  
  302. .dropdown-content p {
  303.   color: black;
  304.   font-size: 16px;
  305. }
  306.  
  307. .dropdown:hover .dropdown-content {
  308.   display: block;
  309. }
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319. /* Sidebar CSS */
  320. .sidebar {
  321.   height: 100%;
  322.   width: 310px;
  323.   position: fixed;
  324.   top: 0;
  325.   left: -310px; /* Hide the sidebar off-screen by default */
  326.   background-image: url('pinstripes-1x.png');
  327.   padding-top: 20px;
  328.   transition: left 0.3s; /* Add a smooth transition effect when the sidebar slides in/out */
  329.   overflow-x: auto;
  330.   overflow-y: auto;
  331. }
  332.  
  333. @media (min-width: 750px) {
  334.   .sidebar {
  335.       display: none;
  336.   }
  337. }
  338.  
  339. .site-title {
  340.   text-align: center;
  341. }
  342.  
  343. @media (min-width: 750px) {
  344.   .site-title {
  345.       display: none;
  346.   }
  347. }
  348.  
  349. /* Define the CSS styles for the links in the sidebar */
  350. .sidebar a {
  351.   text-decoration: none;
  352.   font-size: 20px;
  353.   color: black;
  354.   display: block;
  355.   font-family: 'Roboto', sans-serif;
  356.   margin-left: 5px !important;
  357. }
  358.  
  359. /* Change the color of the links when hovered over */
  360. .sidebar a:hover {
  361.   background-color: #eeeeee;
  362.   border-radius: 10px;
  363. }
  364.  
  365. .sidebar details {
  366.   padding: 12px 25px;
  367.   cursor: pointer;
  368. }
  369.  
  370. .sidebar details hr {
  371.   color: black;
  372.   background-color: black;
  373.   margin-top: 5px;
  374.   margin-bottom: 5px;
  375. }
  376.  
  377. .sidebar summary {
  378.   padding: 3px;
  379.   text-decoration: none;
  380.   font-size: 20px;
  381.   color: black;
  382.   font-weight: 300;
  383.   font-family: 'Roboto', sans-serif;
  384.   height: 20px;
  385. }
  386.  
  387. .sidebar summary:hover {
  388.   background-color: #eeeeee;
  389.   height: 20px;
  390.   border-radius: 16px;
  391. }
  392.  
  393. .openbtn {
  394.   position: fixed;
  395.   z-index: 1;
  396.   margin-left: 10px;
  397.   background-color: #333;
  398.   color: white;
  399.   border: none;
  400.   cursor: pointer;
  401.   width: 40px;
  402.   height: 40px;
  403.   font-size: 20px;
  404.   margin-top: 10px;
  405.   font-size: 20px;
  406.   display: flex;
  407.   justify-content: center;
  408.   align-items: center;
  409. }
  410. @media (min-width: 750px) {
  411.   .openbtn {
  412.       display: none;
  413.   }
  414. }
  415.  
  416. .sidebar h3 {
  417.   text-align: center;
  418. }
  419.  
  420. .social-icons {
  421.   display: flex;
  422.   justify-content: center;
  423.   margin-top: 1px;
  424.   margin-bottom: 30px;
  425. }
  426.  
  427. .social-icons img {
  428.   width: 40px;
  429. }
  430.  
  431. .social-icons a {
  432.   background-color: transparent !important;
  433. }
  434.  
  435. @keyframes details-show { /* Adds an animation when the <summary> is clicked on. */
  436.   from {
  437.     opacity:0;
  438.       transform: var(--details-translate, translateY(-0.5em));
  439.     }
  440. }
  441.  
  442. details[open] > *:not(summary) { /* Adds an animation when the <summary> is clicked on. */
  443.   animation: details-show 0.3s ease-in-out;
  444. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement