Last active
August 9, 2018 14:40
-
-
Save gknasln/3fa68f194c0ef7eb99b052771baa5520 to your computer and use it in GitHub Desktop.
Untitled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
box-sizing: border-box; | |
font-family: 'Helvetica'; | |
} | |
body{ | |
margin:0; | |
} | |
.tools{ | |
width: 100%; | |
height: 60px; | |
padding: 13px 30px 0 15%; | |
border-bottom: 1px solid gray; | |
background: lightgray; | |
background: linear-gradient(to right bottom, rgb(200,200,200), rgb(240,240,240), rgb(200,200,200)); | |
background: -ms-linear-gradient(to right bottom, rgb(200,200,200), rgb(240,240,240), rgb(200,200,200)); | |
background: -webkit-linear-gradient(to right bottom, rgb(200,200,200), rgb(240,240,240), rgb(200,200,200)); | |
background: -moz-linear-gradient(to right bottom, rgb(200,200,200), rgb(240,240,240), rgb(200,200,200)); | |
background: linear-gradient(170deg, rgb(200, 200, 200), rgb(250, 250, 250), rgb(200, 200, 200)); | |
} | |
.button{ | |
padding: 8px 20px; | |
border-radius: 3px; | |
border:none; | |
outline: none; | |
margin-left: 20px; | |
} | |
.button:active{ | |
transform: scale(0.92); | |
} | |
.tools .edit{ | |
background: mediumspringgreen; | |
border: 1px solid green; | |
} | |
.tools .edit:hover{ | |
background: mediumseagreen; | |
} | |
.tools .delete{ | |
background: red; | |
border: darkred 1px solid; | |
} | |
.tools .delete:hover{ | |
background: indianred; | |
} | |
.tools .send-mail{ | |
border: 1px solid gray; | |
margin-left: 40%; | |
} | |
.tools .send-mail:hover{ | |
background: rgb(140, 140, 140); | |
} | |
.tools .add-note{ | |
border: 1px solid gray; | |
} | |
.tools .add-note:hover{ | |
background: rgb(140, 140, 140); | |
} | |
.switch-pages{ | |
float: right; | |
display: flex; | |
} | |
.switch-pages a{ | |
text-decoration: none; | |
margin-right: 10px; | |
} | |
.switch-pages div{ | |
width: 25px; | |
height: 25px; | |
margin-top: 5px; | |
transform: rotate(45deg); | |
transition: transform 0.1s; | |
} | |
.switch-pages a #left{ | |
border-left: 2px solid black; | |
border-bottom: 2px solid black; | |
} | |
.switch-pages a #right{ | |
border-top: 2px solid black; | |
border-right: 2px solid black; | |
} | |
.switch-pages div:hover{ | |
transform: rotate(45deg) scale(1.15); | |
} | |
.switch-pages div:active{ | |
transform: rotate(45deg) scale(0.9); | |
} | |
.name-container{ | |
width: 100%; | |
height: 32px; | |
padding: 30px 15%; | |
font-size: 29px; | |
display: flex; | |
justify-content: flex-start; | |
algin-items: center; | |
margin-bottom: 70px; | |
} | |
.name-container img{ | |
width: 32px; | |
height: 30px; | |
transition: transform 0.3s; | |
} | |
.name-container img:hover{ | |
transform: scale(1.1); | |
} | |
.name-container img:active{ | |
transform: scale(0.9); | |
} | |
.name-container #name{ | |
padding: 0 10px 0 20px; | |
} | |
.name-container a{ | |
color: gray; | |
text-decoration: none; | |
font-size: 0.7em; | |
line-height: 35px; | |
} | |
.name-container a:hover{ | |
text-decoration: underline; | |
} | |
.name-container #firm{ | |
padding-left: 10px; | |
} | |
.info{ | |
position: relative; | |
width: 70%; | |
display: flex; | |
justfy-content: flex-start; | |
align-items: flex-start; | |
margin: 90px auto; | |
padding: 30px 40px; | |
border: 1px solid gray; | |
border-radius: 8px; | |
box-shadow: 2px 2px 25px 1px rgba(0, 0, 0, 0.15); | |
} | |
.info #title{ | |
position: absolute; | |
top: -25px; | |
left: 4%; | |
color: gray; | |
} | |
.info span{ | |
margin-bottom: 10px; | |
} | |
.info .labels{ | |
width: 100px; | |
color: gray; | |
} | |
section{ | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
background: rgba(0, 0, 0, 0.2); | |
display: none; | |
justify-content: center; | |
align-items: center; | |
} | |
.mail-modal{ | |
min-width: 450px; | |
width: 40%; | |
min-height: 450px; | |
height: 50%; | |
display: flex; | |
flex-direction: column; | |
justify-content: flex-start; | |
align-items: flex-end; | |
background: white; | |
border-radius: 15px; | |
border: gray 1px solid; | |
box-shadow: 1px 5px 25px 5px rgba(0, 0, 0, 0.4); | |
} | |
.open-mail-modal{ | |
display: flex; | |
} | |
.mail-modal #title{ | |
width: 100%; | |
height: 50px; | |
line-height: 50px; | |
text-align: center; | |
font-size: 17px; | |
font-weight: 600; | |
} | |
.mail-modal textarea{ | |
width: 90%; | |
height: calc(80% - 50px); | |
padding: 10px; | |
margin: 0 5% 5% 0; | |
} | |
.mail-modal #button-container{ | |
margin-right: 5%; | |
} | |
.mail-modal .save{ | |
background: lime; | |
border: 1px solid seagreen; | |
} | |
.mail-modal .save:hover{ | |
background: seagreen; | |
} | |
.mail-modal .cancel{ | |
background: red; | |
border: 1px solid darkred; | |
} | |
.mail-modal .cancel:hover{ | |
background: indianred; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class='tools'> | |
<button class="button edit">Düzenle</button> | |
<button class="button delete">Sil</button> | |
<button class="button send-mail">E-Posta </button> | |
<button class="button add-note">Not Ekle</button> | |
<div class="switch-pages"> | |
<a href="#" id=""> | |
<div id="left"></div> | |
</a> | |
<a href="#" style="transform: rotaeY(180deg)"> | |
<div id="right"></div> | |
</a> | |
</div> | |
</div> | |
<div class="name-container"> | |
<a href="#"> | |
<img src="https://cdn3.iconfinder.com/data/icons/social-productivity-line-art-3/128/arrow-left2-512.png" alt="back"> | |
</a> | |
<span id="name">Gökhan Aslan </span> | |
<span> - </span> | |
<a id="firm" href="firm">Beymen</a> | |
</div> | |
<div class="personal info"> | |
<span id="title">Kişisel Bilgiler</span> | |
<div class="labels"> | |
<span>Unvan</span> | |
</div> | |
<div class="values"> | |
<span>Satış Danışmanı</div> | |
</div> | |
</div> | |
<div class="company info"> | |
<span id="title">Şirket Bilgileri</span> | |
<div class="labels"> | |
<span>Şirket ismi</span> | |
</div> | |
<div class="values"> | |
<span>Beymen</div> | |
</div> | |
</div> | |
<div class="contact info"> | |
<div class="labels"> | |
<span id="title">Adres Bilgisi</span> | |
<span>Adres</span> | |
</div> | |
<div class="values"> | |
<span>Koru sok. no2/221</div> | |
</div> | |
</div> | |
<section> | |
<div class="mail-modal" > | |
<div id="title">E-Posta Gönder</div> | |
<textarea></textarea> | |
<div id="button-container" > | |
<input type="submit" class="button save" value="Kaydet"/> | |
<input type="button" class="button cancel" value="İptal" /> | |
</div> | |
</div> | |
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const addNoteButton = document.querySelector('.add-note'); | |
const modalContainer = document.querySelector('section'); | |
const saveButton = document.querySelector('.modal .save'); | |
const cancelButton = document.querySelector('.modal .cancel'); | |
addNoteButton.onclick = function(){ | |
modalContainer.classList.add('open-mail-modal'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split","fontsize":"100","seethrough":"1","prefixfree":"1","page":"javascript"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment