HTMLify
main.css
Views: 19 | Author: cody
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 | /* CSS code architecture is organized in this file to correspond to index.html then image.html then advanced.html and from top of webpage to bottom of webpage */ /* Global styling */ body { font-family: 'Open Sans', sans-serif; } .navbar { display: flex; justify-content: flex-end; align-items: center; padding: 1rem; } .links { color: rgb(41, 41, 41); text-decoration: none; font-size: .75rem; padding: 0rem 2rem; } .logo { width: 17rem; height: auto; margin-bottom: 1.2rem; } /* Google Search Page */ #main { display: flex; flex-direction: column; align-items: center; transform: translateY(20vh); } #sub { display: grid; grid-template-columns: 1fr max-content max-content 1fr; gap: 2rem 0.5rem; } #sub input[type="text"] { grid-column: 1 / 5; width: 30rem; } #google-search { grid-column: 2 / 3; } #feeling-lucky { grid-column: 3 / 4; } .default-input { outline: none; border: 2px solid rgb(243, 243, 243); border-radius: 5rem; padding: 0.5rem 1.5rem; } .default-input:hover, .default-input:active, .default-input:focus { outline: none; box-shadow: 0px 4px 4px rgb(210, 210, 210); } .default-search { outline: none; color: rgb(100, 100, 100); background-color: rgb(243, 243, 243); border: none; border-radius: 4px; padding: 0.5rem 1rem; } .default-search:hover { outline: none; color: rgb(0, 0, 0); border: 2px solid rgb(100, 100, 100); } .default-search:active, .default-search:focus { outline: none; border: 2px solid rgb(59, 123, 229); border-radius: 4px; } /* Google Image Search Page */ #logo-subtitle { color: rgb(86, 144, 243); transform: translate(7rem, -1.2rem); } #image-search { grid-column: 2 / 4; } /* Advanced Search Page */ #adv-navbar { background-color: rgb(241, 241, 241); display: flex; justify-content: space-between; align-items: center; padding: 1rem; } #logo-small { width: 6rem; height: auto; } #adv-title { color: rgb(202, 64, 49); font-size: 1.3rem; margin-left: 2rem; padding: .5rem; } hr + p { margin-left: 2rem; } #grid { display: grid; grid-template-columns: max-content minmax(20rem, 5rem) max-content; column-gap: 2.4rem; margin-left: 2rem; } #left-column { display: grid; } #left-column div { font-size: .8rem; } #middle-column { display: grid; gap: 1rem 0; } #middle-column input { font-size: .8rem; color: rgb(41, 41, 41); width: 20rem; border: 1px solid rgb(243, 243, 243); padding: 6px; } #middle-column input:focus { outline: none; border: 1px solid rgb(59, 123, 229); } #middle-column input:last-child { width: 10rem; } #right-column { display: grid; gap: 1rem 0; } #right-column div { font-size: .6rem; color: rgb(100, 100, 100); } .example-text { font-size: .5rem; font-family: 'Roboto Mono', monospace; color: rgb(100, 100, 100); } .adv-input:focus { outline: none; border: 1px solid rgb(59, 123, 229); } #adv-search[type="submit"] { color: rgb(255, 255, 255); background-color: rgb(86, 144, 243); border-radius: 4px; border: 2px solid rgb(59, 123, 229); padding: 0.5rem 1.5rem; justify-self: right; } |