Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions js-core/homeworks/homework-15/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Home work 15</title>
<!--<link href="https://fonts.googleapis.com/css?family=Oxygen" rel="stylesheet">-->
<link href="src/bootstrap.css" rel="stylesheet">
<title>Home work 15</title>
<link rel="stylesheet" href="src/all.css"/>
</head>
<body>

<header class="header">
<div class="container top-radius">
<h2>Contacts</h2>
</div>
</header>

<main>
<div class="container">
<form class="form-inline search-form">
<div class="form-group">
<label class="sr-only" for="search">Search</label>
<input type="text" class="form-control" id= "search" placeholder="Search">
</div>
</form>
<div id="phoneBookWrapper">
<!--js table-->
</div>

</div>
</main>
<footer class="footer">
<div class="container bottom-radius">
<nav class="main-nav">
<a href="index.html" class="tab active">
<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
<span class = "tab-text">Contacts</span>
</a>
<a href="keypad.html" class="tab">
<span class="glyphicon glyphicon-th" aria-hidden="true"></span>
<span class = "tab-text">Keypad</span>
</a>
<a href="edit-contact.html" class="tab">
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
<span class = "tab-text">Edit contact</span>
</a>
<a href="user.html" class="tab">
<span class="glyphicon glyphicon-user" aria-hidden="true"></span>
<span class = "tab-text">User</span>
</a>
<a href="add-user.html" class="tab">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
<span class = "tab-text">Add user</span>
</a>
</nav>
</div>
</footer>


<script src="src/main.js"></script>
</body>
</html>
331 changes: 331 additions & 0 deletions js-core/homeworks/homework-15/src/all.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,331 @@
/**
* Description: main styles
* Version: 1.0.0
* Last update: 09.01.2017
* Author: alex.maslennikova19@gmail.com
*/
/*$breakpoints: (
'screen-xs': 480px,
'screen-sm': 768px,
'screen-md': 992px,
'screen-lg': 1200px
);
// keywords
$media-expressions: (
'screen': 'screen',
'print': 'print',
'handheld': 'handheld',
'landscape': '(orientation: landscape)',
'portrait': '(orientation: portrait)',
'retina2x': '(-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi)',
'retina3x': '(-webkit-min-device-pixel-ratio: 2.5), (min-resolution: 240dpi)'
);*/
.clearfix:after {
content: '';
display: table;
clear: both;
}

.ellipsis {
white-space: nowrap;
/* 1 */
text-overflow: ellipsis;
/* 2 */
overflow: hidden;
}

a:hover, a:focus, a:active, a.active {
color: #777;
text-decoration: none;
}

button {
outline-color: white;
}

h2 {
margin: 0;
}

h3 {
margin: 0;
}

.container {
width: 400px;
background: #ccc;
padding: 25px;
}

.top-radius {
border-top-left-radius: 30px;
border-top-right-radius: 30px;
}

.bottom-radius {
border-bottom-left-radius: 30px;
border-bottom-right-radius: 30px;
}

.header {
text-align: center;
margin-top: 20px;
}

.main-nav {
display: flex;
justify-content: space-between;
}

.keypad-holder {
width: 250px;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}

.number {
margin: 0 auto;
width: 200px;
height: 50px;
margin-bottom: 20px;
border-bottom: 1px solid #eee;
display: flex;
justify-content: space-between;
}

.number .numbers {
align-self: flex-end;
}

.key {
width: 60px;
min-height: 60px;
padding: 15px 0;
border-radius: 50%;
border: 1px solid #fff;
text-align: center;
margin-bottom: 10px;
margin-left: 5px;
margin-right: 5px;
display: flex;
align-items: center;
justify-content: center;
}

.key:last-child {
background: #4cda64;
color: #fff;
}

.key:last-child:hover {
background: #348f3c;
border: 1px solid #fff;
}

.key:hover {
background: rgba(0, 0, 0, 0.1);
border: 1px solid #777;
}

.tab {
display: flex;
flex-direction: column;
align-items: center;
}

.tab:hover, .tab:focus, .tab:active, .tab.active {
color: #777;
text-decoration: none;
}

.tab-text {
font-size: 12px;
margin-top: 5px;
}

.contacts tbody {
display: block;
max-height: 300px;
overflow: hidden;
overflow-y: auto;
}

.contacts tr {
display: table;
width: 100%;
table-layout: fixed;
}

.table > thead > tr > th {
border: none;
}

.form-inline .form-control {
margin-bottom: 10px;
width: 100%;
}

.form-inline .form-group {
display: block;
}

.user-top-line {
display: flex;
justify-content: space-between;
margin-bottom: 20px;
font-size: 14px;
}

.user-img {
width: 100px;
height: 100px;
margin-bottom: 10px;
}

.user-name {
font-weight: bold;
text-align: center;
margin-bottom: 30px;
}

.options-line {
display: flex;
justify-content: space-between;
text-align: center;
margin-bottom: 20px;
}

.options-icon {
border-radius: 50%;
background: #000;
color: #fff;
width: 40px;
height: 40px;
margin: 0 auto 5px;
position: relative;
}

.options-icon:hover {
background: #777;
}

.options-text {
font-size: 12px;
}

.message, .call, .video, .mail {
display: flex;
flex-direction: column;
}

.icon {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}

.tel-number {
margin-bottom: 20px;
font-size: 16px;
}

.options-table {
margin-bottom: 20px;
font-size: 16px;
}

.options-item {
padding: 10px 0;
border-bottom: 1px solid #777;
}

.options-item:first-child {
border-top: 1px solid #777;
}

.scroll-holder {
max-height: 300px;
overflow: hidden;
overflow-y: auto;
margin-bottom: 20px;
}

.add-foto-btn {
width: 100px;
height: 100px;
border-radius: 50%;
border: 1px solid #eee;
outline: none;
}

.add-btn {
border: 0;
background: transparent;
width: 100%;
text-align: left;
outline-color: gray;
}

.done-btn {
background: transparent;
border: none;
outline: none;
}

.done-btn:hover {
color: #777;
}

.main-info-holder {
flex-grow: 1;
}

.edit-main-info {
display: flex;
justify-content: space-between;
margin-bottom: 20px;
}

.edit-foto {
margin-right: 10px;
}

.edit-field {
padding: 5px 0;
border-bottom: 1px solid #fff;
width: 100%;
display: flex;
}

.delete-btn {
color: #e32910;
margin-top: 3px;
margin-right: 10px;
border: none;
background: transparent;
}

.delete-btn:hover, .delete-btn:focus, .delete-btn:active {
color: #a70b0f;
}

.add-btn {
color: #4cda64;
margin-top: 3px;
margin-right: 10px;
}

.add-btn:hover, .add-btn:focus, .add-btn:active {
color: #348f3c;
}

.delete-contact {
color: #e32910;
margin: 0 auto;
font-weight: bold;
}
Loading