client/app/books/book.css
author rougeronj
Wed, 08 Apr 2015 17:00:43 +0200
changeset 81 ef4d8ed6eef2
parent 75 288fb435874e
child 95 46ce67c44723
permissions -rw-r--r--
Adapt the html to handle a list of images sent by our Ammico API
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
24
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
     1
.gallery .item {
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
     2
  overflow:hidden; position:relative; height: 250px; padding: 5px;
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
     3
}
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
     4
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
     5
.img-ctn {
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
     6
    height: 100%; width: 100%; border: 1px solid #DDD; padding: 5px; overflow: hidden;
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
     7
}
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
     8
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
     9
.img-ctn:hover {
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    10
    background-color: #DDD;
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    11
}
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    12
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    13
.img-ctn p {
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    14
    background-color: #ddd;
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    15
    bottom: -5px;
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    16
    display: none;
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    17
    padding: 2px 5px;
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    18
    position: absolute;
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    19
    width: calc(100% - 22px);
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    20
}
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    21
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    22
.img-ctn:hover p, .img-ctn:hover .gallery-buttons {
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    23
    display: block;
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    24
}
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    25
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    26
.gallery .item img {
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    27
    margin: 0 auto;
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    28
    max-height: 100%;
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    29
}
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    30
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    31
.gallery-buttons{
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    32
	display: none;
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    33
    position: absolute;
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    34
    right: 10px;
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    35
    top: 10px;
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    36
}
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    37
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    38
.subtitle {
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    39
    border-top: 1px solid #000;
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    40
    border-bottom: 1px dotted #000;
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    41
    margin-top: 20px;
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    42
    padding: 6px 0 10px;
21ecbde9e080 add books controller to handle list of books
rougeronj
parents:
diff changeset
    43
}
53
dac1df90b49e fucntion and button to add a book
rougeronj
parents: 24
diff changeset
    44
dac1df90b49e fucntion and button to add a book
rougeronj
parents: 24
diff changeset
    45
.add-book{
dac1df90b49e fucntion and button to add a book
rougeronj
parents: 24
diff changeset
    46
	padding:20px;
dac1df90b49e fucntion and button to add a book
rougeronj
parents: 24
diff changeset
    47
}
dac1df90b49e fucntion and button to add a book
rougeronj
parents: 24
diff changeset
    48
.add-book input{
dac1df90b49e fucntion and button to add a book
rougeronj
parents: 24
diff changeset
    49
	margin-bottom: 10px;
dac1df90b49e fucntion and button to add a book
rougeronj
parents: 24
diff changeset
    50
}
69
88f76bf93465 update list book view with accordeons and add delete fonction on a book
rougeronj
parents: 53
diff changeset
    51
88f76bf93465 update list book view with accordeons and add delete fonction on a book
rougeronj
parents: 53
diff changeset
    52
.accordion-toggle .glyphicon{
88f76bf93465 update list book view with accordeons and add delete fonction on a book
rougeronj
parents: 53
diff changeset
    53
	font-size: 17px;
75
288fb435874e Render parent books, child books, and other books separately - minor clean in modal.html
rougeronj
parents: 69
diff changeset
    54
	margin-left:10px;
288fb435874e Render parent books, child books, and other books separately - minor clean in modal.html
rougeronj
parents: 69
diff changeset
    55
}
288fb435874e Render parent books, child books, and other books separately - minor clean in modal.html
rougeronj
parents: 69
diff changeset
    56
288fb435874e Render parent books, child books, and other books separately - minor clean in modal.html
rougeronj
parents: 69
diff changeset
    57
.list-books:nth-child(odd){
288fb435874e Render parent books, child books, and other books separately - minor clean in modal.html
rougeronj
parents: 69
diff changeset
    58
	background-color:#f8f8f8;
53
dac1df90b49e fucntion and button to add a book
rougeronj
parents: 24
diff changeset
    59
}