NDI-2019/styles/styles.css

270 lines
4.5 KiB
CSS
Raw Normal View History

2019-12-06 01:19:13 +01:00
body {
margin-top: 0;
font-family: calibri;
text-decoration: none;
2019-12-06 07:11:29 +01:00
background-color: #4F067C;
2019-12-06 01:19:13 +01:00
color: black;
}
2019-12-06 07:11:29 +01:00
body>main {
2019-12-06 01:19:13 +01:00
padding-top: 49px;
padding-left: 15%;
width: 70%;
}
2019-12-06 07:11:29 +01:00
footer {
color: white;
}
2019-12-06 01:19:13 +01:00
/*==== BARRE DE NAVIGATION ====*/
nav {
z-index: 999;
position: fixed;
left: 0;
bottom: 0;
width: 100%;
color: white;
text-align: center;
}
.navbar {
overflow: hidden;
2019-12-06 07:11:29 +01:00
background-color: #12003E;
2019-12-06 01:19:13 +01:00
position: fixed;
top: 0;
width: 100%;
}
.navbar a {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
.navbar a:hover {
2019-12-06 07:11:29 +01:00
background: #1A0044;
2019-12-06 01:19:13 +01:00
}
/* ================================= */
section.section-profile {
position: relative;
display: flex;
background-color: #d63031;
}
.section-profile-informations {
display: flex;
padding: 180px 30px 0;
width: 100%;
2019-12-06 07:11:29 +01:00
background-image: url(https://www.lifeofpix.com/wp-content/uploads/2019/02/308-name05322-jj-1600x867.jpg);
2019-12-06 01:19:13 +01:00
background-position: center;
background-size: cover;
}
.section-profile-informations img {
position: relative;
top: 30%;
margin-left: 24px;
width: 140px;
height: 140px;
object-fit: cover;
object-position: center;
border: 4px solid #fff;
border-radius: 70px;
}
.section-profile-informations h2 {
2019-12-06 07:11:29 +01:00
color: white;
2019-12-06 01:19:13 +01:00
margin-right: 24px;
font-size: 36px;
align-self: flex-end;
}
.section-profile-informations span {
margin-left: auto;
margin-bottom: 30px;
color: rgba(0, 0, 0, .5);
font-size: 24px;
font-style: italic;
align-self: flex-end;
}
.PhotoProfile {
position: relative;
clip-path: inset(34% 0);
margin-top: -550px;
margin-bottom: -500px;
z-index: 20;
display: block;
width: 100%;
}
.Icon {
display: block;
margin-left: auto;
margin-right: auto;
margin: 0;
position: absolute;
top: 30px;
margin-top: 20%;
z-index: 90;
width: 400px;
clip-path: circle(30%);
float: left;
}
2019-12-06 07:11:29 +01:00
.header>p {
2019-12-06 01:19:13 +01:00
font-size: 40px;
}
.Person {
box-sizing: border-box;
float: left;
width: 50%;
padding: 50px;
}
.PhotoName::after {
z-index: 90;
position: absolute;
content: "";
clear: both;
display: table;
}
2019-12-06 03:55:31 +01:00
h2 {
padding-left: 30px;
}
2019-12-06 04:23:56 +01:00
p.bio {
text-align: justify;
}
2019-12-06 01:19:13 +01:00
/* ================================= */
.box {
box-sizing: border-box;
float: left;
width: 50%;
2019-12-06 03:55:31 +01:00
padding: 30px;
}
.box:first-child {
border-right: 1px solid grey;
2019-12-06 01:19:13 +01:00
}
.clearfix::after {
content: "";
clear: both;
display: table;
}
2019-12-06 03:55:31 +01:00
.title {
color: dimgrey;
text-decoration: underline;
font-size: 18px;
}
2019-12-06 07:11:29 +01:00
.amis img {
2019-12-06 03:55:31 +01:00
width: 50px;
2019-12-06 07:11:29 +01:00
height: 50px;
2019-12-06 03:55:31 +01:00
border: 1px solid grey;
2019-12-06 04:15:12 +01:00
border-radius: 2px;
2019-12-06 03:55:31 +01:00
}
[alt="gallery"] {
display: inline-block;
clip-path: inset(5% 12%);
width: 121px;
border: 1px solid grey;
}
[href^="amis"],
[href^="gallery"] {
text-decoration: none;
color: grey;
text-decoration: underline;
}
2019-12-06 07:11:29 +01:00
2019-12-06 03:55:31 +01:00
/* =================== */
.post {
2019-12-06 07:11:29 +01:00
margin-bottom: 20px;
border-radius: 2px;
2019-12-06 03:55:31 +01:00
border: 1px solid grey;
box-sizing: border-box;
float: left;
width: 100%;
padding: 30px;
2019-12-06 07:11:29 +01:00
text-align: center;
2019-12-06 03:55:31 +01:00
}
2019-12-06 04:15:12 +01:00
2019-12-06 07:11:29 +01:00
/* ==================================== */
.titre2 img:first-child {
position: relative;
top: 30%;
margin-left: 24px;
width: 60px;
height: 60px;
object-fit: cover;
object-position: center;
border: 4px solid #fff;
border-radius: 70px;
}
.post>img:nth-child(2) {
border-radius: 3px;
width: 400px;
}
.titre2 h2 {
font-size: 15px;
align-self: flex-end;
}
span {
2019-12-06 04:15:12 +01:00
margin-left: auto;
2019-12-06 07:11:29 +01:00
margin-bottom: 30px;
color: rgba(0, 0, 0, .5);
font-size: 15px;
font-style: italic;
align-self: flex-end;
}
/* ====== Bouton caché ! ====== */
.button a {
background-color: transparent;
/* Green */
left: 46%;
bottom: 84%;
border: none;
color: rgba(255, 255, 255, 0);
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
cursor: pointer;
position: absolute;
2019-12-06 04:15:12 +01:00
}
2019-12-06 07:11:29 +01:00
.secret {
padding: 30px 20px;
}
span#defi a {
color: #fff;
}