plugin.css 1.2 KB
Newer Older
Lab机器人's avatar
readme  
Lab机器人 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    display: block;
    text-decoration: none;
    -webkit-border-radius: 35px;
    -moz-border-radius: 35px;
    border-radius: 35px;
    display: none;
}
.back-to-top i {
    color: #fff;
    margin: 0;
    position: relative;
    left: 15px;
    top: 14px;
    font-size: 22px;
}
.back-to-top:hover {
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;	
}
.book.color-theme-1 .back-to-top {
    background: rgba(112, 66, 20, 0.5);
}
.book.color-theme-1 .back-to-top i {
    color: #f3eacb;
}
.book.color-theme-1 .back-to-top:hover {
    background: rgba(112, 66, 20, 0.9);
}
.book.color-theme-2 .back-to-top {
    background: rgba(189, 202, 219, 0.5);
}
.book.color-theme-2 .back-to-top i {
    color: #1C1F2B;
}
.book.color-theme-2 .back-to-top:hover {
    background: rgba(189, 202, 219, 0.9);
}

@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 480px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: portrait) {
	.back-to-top {
		bottom: 10px;
		right: 10px;
	}
}