Moved css to gallery.css
这个提交包含在:
父节点
c92f438a4c
当前提交
941547bd55
共有 3 个文件被更改,包括 42 次插入 和 48 次删除
|
|
@ -73,54 +73,6 @@
|
|||
</div>
|
||||
<div class="tab-pane fade scrollable-div" id="gallery" role="tabpanel" aria-labelledby="gallery-tab">
|
||||
<br/>
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.photo {
|
||||
width: 100%;
|
||||
display: block;
|
||||
background-size: cover;
|
||||
background-position: center center;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.no-touch .photo {
|
||||
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
|
||||
filter: gray; /* IE6-9 */
|
||||
-webkit-filter: grayscale( 100% ); /* Chrome 19+, Safari 6+, Safari 6+ iOS */
|
||||
opacity: .7;
|
||||
transition: all 400ms ease-in-out;
|
||||
}
|
||||
.no-touch .photo:hover {
|
||||
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0\'/></filter></svg>#grayscale");
|
||||
-webkit-filter: grayscale(0%);
|
||||
opacity: 1;
|
||||
}
|
||||
.scrollable-div {
|
||||
height: 70vh; /* set a fixed height for the div */
|
||||
overflow-y: scroll; /* enable vertical scrollbar */
|
||||
}
|
||||
@media screen and ( min-width: 768px ) {
|
||||
.photo { float: left; width: 50%; }
|
||||
}
|
||||
@media screen and ( min-width: 1023px ) {
|
||||
.photo { width: 33.3333%; }
|
||||
}
|
||||
@media screen and ( min-width: 1220px ) {
|
||||
.photo { width: 25%; }
|
||||
}
|
||||
@media screen and ( min-width: 1440px ) {
|
||||
.photo { width: 20%; }
|
||||
}
|
||||
|
||||
.photo:after {
|
||||
content: "";
|
||||
display: block;
|
||||
padding-bottom: 100%;
|
||||
}
|
||||
</style>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/jquery.magnific-popup.min.js"></script>
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@
|
|||
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/buttons.dataTables.min.css" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/datatables.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/gallery.css" />
|
||||
|
||||
<?php if ($this->uri->segment(1) == "sattimers") { ?>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/sattimers.css" />
|
||||
|
|
|
|||
41
assets/css/gallery.css
普通文件
41
assets/css/gallery.css
普通文件
|
|
@ -0,0 +1,41 @@
|
|||
.photo {
|
||||
width: 100%;
|
||||
display: block;
|
||||
background-size: cover;
|
||||
background-position: center center;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.no-touch .photo {
|
||||
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
|
||||
filter: gray; /* IE6-9 */
|
||||
-webkit-filter: grayscale( 100% ); /* Chrome 19+, Safari 6+, Safari 6+ iOS */
|
||||
opacity: .7;
|
||||
transition: all 400ms ease-in-out;
|
||||
}
|
||||
.no-touch .photo:hover {
|
||||
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0\'/></filter></svg>#grayscale");
|
||||
-webkit-filter: grayscale(0%);
|
||||
opacity: 1;
|
||||
}
|
||||
.scrollable-div {
|
||||
height: 70vh; /* set a fixed height for the div */
|
||||
overflow-y: scroll; /* enable vertical scrollbar */
|
||||
}
|
||||
@media screen and ( min-width: 768px ) {
|
||||
.photo { float: left; width: 50%; }
|
||||
}
|
||||
@media screen and ( min-width: 1023px ) {
|
||||
.photo { width: 33.3333%; }
|
||||
}
|
||||
@media screen and ( min-width: 1220px ) {
|
||||
.photo { width: 25%; }
|
||||
}
|
||||
@media screen and ( min-width: 1440px ) {
|
||||
.photo { width: 20%; }
|
||||
}
|
||||
|
||||
.photo:after {
|
||||
content: "";
|
||||
display: block;
|
||||
padding-bottom: 100%;
|
||||
}
|
||||
正在加载…
在新工单中引用