Advertisement
ptownhero

style.css

Dec 16th, 2020
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 8.35 KB | None | 0 0
  1. /* Doc and Nav Bar Styles */
  2.  
  3. html {
  4.     height: 100%;
  5. }
  6.  
  7. body {
  8.     background-color: #eee8e2;
  9.     color: black;
  10.     font-family: Arial, Helvetica, sans-serif;
  11.     text-align: center;
  12.     margin: 0;
  13.     font-weight: 550;
  14.     height: 100%;
  15. }
  16.  
  17. .container {
  18.     width: 90%;
  19. }
  20.  
  21. header {
  22.     background-image: linear-gradient(180deg, #ce7451, #8f4528);
  23. }
  24.  
  25. header::after {
  26.     content: '';
  27.     display: table;
  28.     clear: both;
  29. }
  30.  
  31. .logo {
  32.     float: left;
  33.     padding-left: 12em;
  34. }
  35.  
  36.  
  37. nav {
  38.     float: right;
  39. }
  40.  
  41. nav ul {
  42.     margin: 0;
  43.     padding: 0;
  44.     list-style-type: none;
  45.     padding-top: 3.5%;
  46. }
  47.  
  48. nav li {
  49.     display: inline-block;
  50.     margin-left: 3.7em;
  51. }
  52.  
  53. nav a {
  54.     color: black;
  55.     text-decoration: none;
  56.     text-transform: uppercase;
  57. }
  58.  
  59.  
  60.  
  61. /*  home.php Styles */
  62.  
  63. #homeGrid {
  64.     margin: 0;
  65.     padding: 0;
  66.     height: 100%;
  67.     width: 100%;
  68.     overflow: auto;
  69.     display: grid;
  70.     grid-template-columns: 30% 30% 30%;
  71.     grid-template-rows: 30% 70% 7%;
  72.     align-items: center;
  73.     justify-content: center;
  74.     grid-gap: 1%;
  75.     overflow: visible;
  76.     font-size: 1.5em;
  77.     padding-bottom: 10%;
  78. }
  79.  
  80. #homeGrid img {
  81.     width: 200px;
  82.     height: 200px;
  83. }
  84.  
  85. .welcome {
  86.     grid-column: 1 / 4;
  87.     grid-row: 1 / 1;
  88. }
  89.  
  90. .whatsNew {
  91.     grid-column: 1 / 4;
  92.     grid-row: 4 / 4;
  93. }
  94.  
  95. .homeImage {
  96.     grid-column: 1 / 4;
  97.     grid-row: 1 / 3;
  98. }
  99.  
  100. .homeImage img {
  101.     width: 100%;
  102.     height: 40em;
  103. }
  104.  
  105. footer {
  106.    
  107.     background-image: linear-gradient(180deg, #eee8e2, #dcbfad);
  108.     position: absolute;
  109.     align-items: center;
  110.     justify-content: center;
  111.     height: 6%;
  112.     left: 0;
  113.     padding-top: 2%;
  114.     width: 100%;
  115.     text-align: center;
  116. }
  117.  
  118.  
  119.  
  120. /* aboutUs.php styles */
  121.  
  122.  
  123. #aboutUsGrid {
  124.     margin: 0;
  125.     padding: 0;
  126.     height: 100%;
  127.     width: 100%;
  128.     overflow: auto;
  129.     display: grid;
  130.     grid-template-columns: 30% 30%;
  131.     grid-template-rows: 36% 46% 43%;
  132.     align-items: center;
  133.     justify-content: center;
  134.     column-gap: 15%;
  135.     row-gap: 20%;
  136.     overflow: visible;
  137.     font-size: 1.5em;
  138.     padding-top: 3%;
  139.     padding-bottom: 22%;
  140. }
  141.  
  142. .aboutUsInfo {
  143.     grid-column: 1 / 3;
  144.     grid-row: 1 / 2;
  145. }
  146.  
  147. .contactMe {
  148.     grid-column: 2 / 3;
  149.     grid-row: 2 / 3;
  150. }
  151.  
  152. .helpMe {
  153.     grid-column: 1 / 2;
  154.     grid-row: 3 / 4;
  155. }
  156.  
  157. aside img {
  158.     width: 20em;
  159.     height: 12em;
  160. }
  161.  
  162.  
  163. /* myPantry.php, add.php, remove.php, edit.php Styles */
  164.  
  165. #pantryOwner {
  166.     padding: 4% 0;
  167. }
  168.  
  169. #pantryTable,
  170. #pantryTableRemove {
  171.     display: grid;
  172.     padding: 0;
  173.     margin: auto;
  174.     width: 66%;
  175.     height: 100%;
  176.     text-align: left;
  177. }
  178.  
  179. #pantryTableRemove {
  180.     width: 75%;
  181. }
  182.  
  183. #pantryTable table,
  184. #pantryTableRemove table {
  185.     border-collapse: collapse;
  186.     font-size: 1.1em;
  187.     min-width: 400px;
  188.     border-radius: 5px 5px 0 0;
  189.     overflow: hidden;
  190.     box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  191. }
  192.  
  193. #pantryTable thead tr,
  194. #pantryTableRemove thead tr {
  195.     background-color: rgb(10 167 88);
  196.     color: black;
  197.     text-align: left;
  198.     font-weight: bold;
  199. }  
  200.  
  201. #pantryTable th,
  202. #pantryTable td,
  203. #pantryTableRemove th,
  204. #pantryTableRemove td {
  205.     padding: 20px 15px;
  206. }
  207.  
  208. #pantryTable tbody tr,
  209. #pantryTableRemove tbody tr {
  210.     border-bottom: 1px solid #4236368c;
  211. }
  212.  
  213. #pantryTable tbody tr:nth-of-type(even),
  214. #pantryTableRemove tbody tr:nth-of-type(even) {
  215.     background-color:  #81967e;
  216. }
  217.  
  218. #pantryTable tbody tr:last-of-type,
  219. #pantryTableRemove tbody tr:last-of-type {
  220.     border-bottom: 2px solid rgb(10 167 88);
  221. }
  222.  
  223. #pantryTable tbody .submitButton {
  224.     padding-left: 2.3%;
  225. }
  226.  
  227. .expiresSoon {
  228.     background-color: rgba(251, 220, 59, 0.94);
  229. }
  230.  
  231. .expired {
  232.     background-color: rgba(247, 55, 55, .93);
  233. }
  234.  
  235. /* signPage.php Styles */
  236.  
  237. #signPageGrid {
  238.         margin: 0;
  239.         padding: 10% 0 19.8% 0;
  240.         height: 100%;
  241.         width: 100%;
  242.         overflow: auto;
  243.         display: grid;
  244.         grid-template-columns: 30% 30%;
  245.         grid-template-rows: 110% 70%;
  246.         align-items: center;
  247.         justify-content: center;
  248.         grid-gap: 1%;
  249.         overflow: visible;
  250.         font-size: 1.5em;
  251. }
  252.  
  253. .signPageQuestion {
  254.     grid-column: 1 / 3;
  255.     grid-row: 1 / 2;
  256. }
  257.  
  258.  
  259. .signPageButton {
  260.     margin: 0 0 0 18%;
  261.     display: block;
  262.     text-decoration: none;
  263.     width: 10%;
  264.     height: 100%;
  265.     background: #DBAD6A;
  266.     padding: 9% 27%;
  267.     text-align: center;
  268.     border-radius: 5px;
  269.     color: black;
  270.     font-weight: bold;
  271.     line-height: 25px;
  272.     border: solid 1px black;
  273. }
  274.  
  275.  
  276. /*  signIn.php + signUp.php Styles */
  277.  
  278. #signInFieldset {
  279.     margin: 8% 24% 9.2% 24%;
  280.     padding-top: 3%;
  281.     width: 50%;
  282. }
  283.  
  284. #signUpFieldset {
  285.     margin: 8% 24% 4.5% 24%;
  286.     padding-top: 3%;
  287.     width: 50%;
  288. }
  289.  
  290. legend {
  291.     text-align: left;
  292.     font-size: 1.5em;
  293.     padding-left: 1%;
  294. }
  295.  
  296. #signMessage {
  297.     padding-top: 6%;
  298.     font-size: 1.7em;
  299. }
  300.  
  301. .signInButton {
  302.     margin: 2% 46%;
  303.     padding: 1%;
  304.     display: block;
  305.     text-decoration: none;
  306.     width: 10%;
  307.     height: 100%;
  308.     background: #DBAD6A;
  309.     text-align: center;
  310.     border-radius: 5px;
  311.     color: black;
  312.     font-weight: bold;
  313.     line-height: 25px;
  314.     border: solid 1px black;
  315. }
  316.  
  317. #signUpGrid {
  318.     margin: 0;
  319.     padding: 0 0 27% 0;
  320.     height: 100%;
  321.     width: 100%;
  322.     overflow: auto;
  323.     display: grid;
  324.     grid-template-columns: 30% 30% 30%;
  325.     grid-template-rows: 34% 34% 34% 34% 19%;
  326.     align-items: center;
  327.     justify-content: center;
  328.     grid-gap: 1%;
  329.     overflow: visible;
  330.     font-size: 1.5em;
  331. }
  332.  
  333. .signUp1 {
  334.     grid-column: 1 / 2;
  335.     grid-row: 1 / 2;
  336. }
  337.  
  338. .signUp2 {
  339.     grid-column: 2 / 3;
  340.     grid-row: 1 / 2;
  341. }
  342.  
  343. .signUp3 {
  344.     grid-column: 3 / 4;
  345.     grid-row: 1 / 2;
  346. }
  347.  
  348. .signUp4 {
  349.     grid-column: 1 / 2;
  350.     grid-row: 2 / 3;
  351. }
  352.  
  353. .signUp5 {
  354.     grid-column: 2 / 3;
  355.     grid-row: 2 / 3;
  356. }
  357.  
  358. .signUp6 {
  359.     grid-column: 3 / 4;
  360.     grid-row: 2 / 3;
  361. }
  362.  
  363. .signUp7 {
  364.     grid-column: 1 / 2;
  365.     grid-row: 3 / 4;
  366. }
  367.  
  368. .signUp8 {
  369.     grid-column: 2 / 3;
  370.     grid-row: 3 / 4;
  371. }
  372.  
  373. .signUp9 {
  374.     grid-column: 3 / 4;
  375.     grid-row: 3 / 4;
  376. }
  377.  
  378. .signUp10 {
  379.     grid-column: 2 / 3;
  380.     grid-row: 4 / 5;
  381. }
  382.  
  383. .signUp11 {
  384.     grid-column: 2 / 3;
  385.     grid-row: 5 / 6;
  386. }
  387.  
  388.  
  389. .signUpButton {
  390.     margin: 2% 34%;
  391.     padding: 2% 3% 3% 3%;
  392.     display: block;
  393.     text-decoration: none;
  394.     width: 32.7%;
  395.     height: 100%;
  396.     background: #DBAD6A;
  397.     text-align: center;
  398.     border-radius: 5px;
  399.     color: black;
  400.     font-weight: bold;
  401.     line-height: 25px;
  402.     border: solid 1px black;
  403. }
  404.  
  405. .error {
  406.     font-size: 80%;
  407.     font-weight: normal;
  408.     margin-top: 0;
  409.     text-align: left;
  410.     width: 100%;
  411.     margin: auto;
  412.     color: red;
  413. }
  414.  
  415.  
  416. /* laptop Responsiveness */
  417. @media screen and (max-width: 1440px) {
  418.  
  419.     .logo {
  420.         padding-left: 9em;
  421.     }
  422.  
  423.  
  424.     /* home.php Styles */
  425.  
  426.     #homeGrid {
  427.         padding-bottom: 12%;
  428.     }
  429.  
  430.  
  431.     /* aboutUs.php Styles */
  432.  
  433.     #aboutUsGrid {
  434.         padding-bottom: 30%;
  435.     }
  436.  
  437.  
  438.     /* signPage.php Styles */
  439.  
  440.     #signPageGrid{
  441.         padding: 10% 0 26.25% 0;
  442.     }
  443.  
  444.     /*  signIn.php + signUp.php Styles */
  445.  
  446.     #signInFieldset {
  447.         margin: 8% 24% 13.55% 24%;
  448.     }
  449.  
  450.     #signUpFieldset {
  451.         margin: 8% 24% 0.5% 24%;
  452.     }
  453.  
  454.     #signUpGrid {
  455.         padding-bottom: 42%;
  456.         grid-template-rows: 34% 34% 34% 34% 5%;
  457.     }
  458.  
  459.  
  460.     /* myPantry.php, add.php, remove.php, edit.php Styles */
  461.  
  462.     #pantryTable table {
  463.         font-size: .99em;
  464.     }
  465.  
  466.     #pantryTableRemove table {
  467.         font-size: .99em;
  468.     }
  469.  
  470.     #pantryTable tbody .addSubmitButton {
  471.         padding-left: 0.3%;
  472.     }
  473.  
  474.  
  475. }
  476.  
  477. /* Average Phone Width Responsiveness */
  478. @media screen and (max-width: 480px) {
  479.  
  480.  
  481.     .container {
  482.         width: 100%;
  483.     }
  484.  
  485.     .logo {
  486.         padding: 0 30%;
  487.     }
  488.  
  489.     /* home.php Styles */
  490.  
  491.     #homeGrid {
  492.         grid-template-columns: 25% 25% 25%;
  493.         grid-template-rows: 14% 30% 30% 30%;
  494.         font-size: 1.25em;
  495.         padding-bottom: 60%;
  496.     }
  497.  
  498.     .homeImage img {
  499.         height: 18em;
  500.     }
  501.  
  502.     article {
  503.         grid-column: 1 / 4;
  504.     }
  505.  
  506.     .whatsNew {
  507.         grid-row: auto;
  508.     }
  509.  
  510.     /* myPantry.php, add.php, remove.php, edit.php Styles */
  511.    
  512.     .itemDescription {
  513.         display: none;
  514.     }
  515. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement