frontend/src/stylesheets/style.css
2018-12-07 14:01:26 +02:00

164 lines
2.6 KiB
CSS

/* globals */
* {
box-sizing: border-box;
margin: 0px;
border: 0px;
}
/* fonts */
@font-face {
font-family: 'Fedra Arabic';
src: url('../assets/fonts/Fedra Arabic Reg_beta.ttf') format('truetype');
}
@font-face {
font-family: 'bebas';
src: url('../assets/fonts/BEBAS___.ttf') format('truetype');
}
@font-face {
font-family: 'majalla';
src: url('../assets/fonts/majalla 2.ttf') format('truetype');
}
@font-face {
font-family: 'MyriadPro Regular';
src: url('../assets/fonts/MyriadPro-Regular.otf') format('otf');
}
@font-face {
font-family: 'interstate';
src: url('../assets/fonts/Interstate-Regular.bmap') format('bmap'),
url('../assets/fonts/Interstate-Bold.bmap') format('bmap');
}
.arabic-text {
font-family: "Fedra Arabic", serif;
}
.english-text {
font-family: majalla, serif;
}
/* variables */
:root {
--858-light-gray-color: #ebebeb;
}
/* App */
.App {
max-width: 960px;
margin: 0 auto;
}
/* header */
header {
padding-top: 1em;
}
.site-logo {
max-width: 300px;
text-align: center;
}
.counter-container {
position: absolute;
display: inline-block;
right: 0;
top: 0;
padding: 2em;
}
.counter{
position: relative;
right: 0;
}
/* search */
.search-button {
background: white;
bottom: -18px;
position: relative;
}
.search-button img {
max-width: 50px;
}
.search-box {
padding: 1em;
width: 50%;
background: var(--858-light-gray-color);
}
.search-box::placeholder {
color: black;
text-align: center;
font-size: 1.5em;
color: gray;
}
@media screen and (max-width: 700px) {
.search-box::placeholder {
font-size: 1em;
}
}
@media screen and (max-width: 400px) {
.search-box::placeholder {
font-size: .75em;
}
}
/* Video item*/
.video-thumbnail {
max-width: 300px;
transition: all .4s ease-in-out;
}
.video-thumbnail:hover {
transform: scale(1.1);
}
.video-thumbnail-container {
position: relative;
overflow: hidden;
}
/* section heading*/
.section-title {
border-bottom: 2px dotted black;
padding: 1em;
margin-bottom: 1em;
position: relative;
}
/* footer */
footer {
background: var(--858-light-gray-color);
position: absolute;
width: 100%;
left: 0;
margin-top: 1em;
padding: 1em;
font-weight: bold;
}
/* nav */
nav {
margin: 3em;
}
nav ul li {
display: inline-block;
list-style-type: none;
padding: 1em;
border-right: 1px solid black;
}
nav ul li:last-child {
border-right: none;
}
nav ul li a {
text-decoration: none;
color: black;
}