Advertisement
Guest User

Untitled

a guest
Jan 27th, 2020
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.52 KB | None | 0 0
  1. /* CSS Document */
  2.  
  3. * {
  4. margin: 0;
  5. padding:0;
  6. scroll-behavior: smooth;
  7. }
  8.  
  9. @font-face {
  10. font-family: font1;
  11. src: url(fonts/BebasNeue.otf);
  12. }
  13.  
  14. @font-face {
  15. font-family: font2;
  16. src: url(fonts/PRISTINA.TTF);
  17. }
  18.  
  19.  
  20.  
  21. body {
  22. font-family: Arial, Helvetica, sans-serif;
  23. background-color: #0E0E0E;
  24. }
  25.  
  26. p {
  27. margin: 10px;
  28. color:white;
  29. font-family: font2;
  30. font-size: 14pt;
  31.  
  32.  
  33.  
  34. }
  35. /*Prazni divovi*/
  36. .clear {
  37. clear: both;
  38. }
  39.  
  40. /*HEADER*/
  41.  
  42. a {
  43. text-decoration: none;
  44. }
  45.  
  46.  
  47. .wrapper:first-child {
  48. background-color: #0E0E0E;/*da bi header bio fiksiran*/
  49. position: fixed;
  50. left: 0;
  51. top: 0;
  52. height: 100px;
  53. z-index: 999;
  54. }
  55.  
  56. header, main {
  57. max-width: 1200px;
  58. margin: 0 auto;
  59. background-color: #0E0E0E;
  60. }
  61.  
  62. header h1 {
  63. padding-top: 20px;
  64. float: left;
  65. }
  66.  
  67. header h1 a {
  68. font-family: font1;
  69. font-size: 50px;
  70. font-weight: normal;
  71. text-transform: uppercase;
  72. color: white;
  73.  
  74. }
  75.  
  76. header nav {
  77. padding-top: 50px;
  78. float: right;
  79. font-family: font1;
  80.  
  81. }
  82.  
  83. header nav a {
  84. margin-left: 15px;
  85. padding: 40px 10px;
  86. font-size: 18px;
  87. text-transform: uppercase;
  88. color: white;
  89. transition: 0.5s;
  90. text-decoration: none;
  91. }
  92.  
  93. .logo{
  94. background: url(images/logo-med.jpg.png);
  95. background-repeat: no-repeat;
  96. width: 100px;
  97. height: 100px;
  98. animation: logo-fade 2s ;
  99. }
  100.  
  101. @keyframes logo-fade {
  102.  
  103. 0% {opacity: 0;}
  104. 100% {opacity: 1;}
  105.  
  106. }
  107.  
  108. header nav a:hover {
  109. color: #C77D1E;
  110. transition: 0.8s;
  111.  
  112. }
  113.  
  114.  
  115. /*NASLOVI*/
  116.  
  117.  
  118.  
  119. section h2 {
  120. padding-top: 100px; /*da bi spustili naslove kod skrola*/
  121. text-align: center;
  122. border-bottom: 2px solid white;
  123. font-family: font1;
  124. font-size: 40px;
  125. font-weight: normal;
  126. text-transform: uppercase;
  127. color: white;
  128. margin-bottom: 100px;
  129.  
  130. }
  131.  
  132. h2:hover{
  133. font-size: 45px;
  134. color: #C77D1E;
  135. transition: 0.2s;
  136. transition-delay: 0.5s;
  137. transition-timing-function: ease;
  138. border-bottom: 2px solid #C77D1E;
  139.  
  140. }
  141.  
  142.  
  143.  
  144.  
  145. section article {
  146. overflow: auto;
  147. margin-top: 40px;
  148. float: left;
  149. position: relative;
  150. padding: 10px;
  151. box-sizing: border-box;
  152.  
  153. }
  154.  
  155. .artikl{
  156. width: 300px;
  157. height: 300px;
  158. text-align: center;
  159.  
  160. }
  161.  
  162. .izbor{
  163. filter: grayscale(0.9)
  164. }
  165.  
  166. .izbor:hover {
  167. filter: none;
  168. }
  169.  
  170. section article img {
  171. width: 100%;
  172. }
  173.  
  174. section article p { /*tekstovi pod artiklima*/
  175. padding: 10px;
  176. font-family: font2;
  177. font-size: 20px;
  178. position: absolute;
  179. bottom: 20px;
  180. right: 10px;
  181. margin: 0;
  182.  
  183. }
  184.  
  185. /*FOOTER*/
  186.  
  187.  
  188. footer {
  189. font-family: font1;
  190. height: 70px;
  191. padding-top: 15px;
  192. text-align: center;
  193. background-color: #3E1A04;
  194. animation: footer-boja 10s infinite;
  195. }
  196.  
  197. @keyframes footer-boja {
  198.  
  199. 0% {background-color: #252323;}
  200. 50% {background-color: #C77D1E;}
  201. 100% {background-color: #252323;}
  202.  
  203. }
  204.  
  205.  
  206. /*FORMA*/
  207.  
  208. label, input[type="submit"] {
  209. font-family: font1;
  210. font-size: 20px;
  211. }
  212.  
  213. label, input, textarea {
  214. display: block;
  215. text-align: center;
  216. margin-bottom: 5px;
  217. box-sizing: border-box;
  218. color: white;
  219. background-color: #0E0E0E;
  220. border-radius: 10px;
  221.  
  222. }
  223.  
  224.  
  225.  
  226. input, textarea {
  227. margin-bottom: 30px;
  228. padding: 10px;
  229. font-family: Arial, sans-serif;
  230. }
  231.  
  232. /*DUGME FROME*/
  233.  
  234. input[type="submit"] {
  235. text-align: center;
  236. border: 1px solid #666;
  237. background-color: white;
  238. color: #191d21;
  239. letter-spacing: 1px;
  240. transition: 0.5s;
  241. }
  242.  
  243. input[type="submit"]:hover {
  244. background-color: #1D0F04;
  245. transition: 0.2s;
  246. transition-timing-function: ease-out;
  247. color: white;
  248. cursor: pointer;
  249. }
  250.  
  251. textarea {
  252. resize: none;
  253. color: white;
  254. background-color: #0E0E0E;
  255. border-radius: 10px;
  256.  
  257. }
  258.  
  259. section#kontakt {
  260. overflow: auto;
  261. }
  262.  
  263.  
  264. /*DESKTOP*/
  265.  
  266. [class*="col-"] {
  267. float: left;
  268. }
  269.  
  270.  
  271. .col-l-6 {width: 50%;}
  272. .col-l-12 {width: 100%;}
  273.  
  274.  
  275.  
  276. /*TABLET*/
  277. @media screen and (max-width: 960px) {
  278.  
  279.  
  280. .col-m-6 {width: 50%;}
  281. .col-m-12 {width: 100%;}
  282.  
  283.  
  284. header, main {
  285. width: 96%;
  286. }
  287.  
  288. .wrapper:first-child {
  289.  
  290. position: fixed;
  291. height: 200px;
  292.  
  293.  
  294. }
  295.  
  296.  
  297. header h1, header nav {
  298.  
  299. float: inherit;
  300. text-align: center;
  301. }
  302.  
  303. header nav {
  304.  
  305. padding: 10px 0;
  306.  
  307. }
  308.  
  309. header h1 {
  310. margin: 0 auto;
  311.  
  312. }
  313.  
  314.  
  315. }
  316.  
  317.  
  318. /*MOBILNI*/
  319.  
  320. @media screen and (max-width: 600px) {
  321.  
  322.  
  323. .col-s-12 {width: 100%;}
  324.  
  325.  
  326. header nav {
  327. padding-top: 0;
  328. }
  329.  
  330.  
  331. header nav a {
  332. display: block;
  333. padding: 5px 0;
  334. margin-left: 0;
  335. }
  336.  
  337. .wrapper:first-child {
  338. position: static;
  339. height: 280px;
  340.  
  341. }
  342.  
  343. header h1 {
  344.  
  345. margin: 0 auto;
  346.  
  347. }
  348.  
  349. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement