html模仿mac苹果电脑桌面效果

代码语言:html

所属分类:布局界面

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">


<style>
@import url("https://fonts.googleapis.com/css?family=Ubuntu");
.toggle {
  width: 15vw;
  height: auto;
  max-width: 150px;
  transition: none;
  cursor: pointer;
  position: fixed;
  bottom: -4%;
  right: 0;
  background: none;
  border: none;
}
.toggle.dark img {
  -webkit-filter: invert(0.8);
          filter: invert(0.8);
}
.toggle img {
  width: 100%;
  height: auto;
}

#signature {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 24px;
  color: #fff;
  font-family: "Roboto", sans-serif;
  position: fixed;
  transition: all 0;
  z-index: 9999999;
  -webkit-transform-origin: 100% 50%;
          transform-origin: 100% 50%;
  padding: 0;
  width: 50vw;
  height: 100vh;
  max-width: 500px;
  opacity: 0;
  position: fixed;
  box-shadow: -2px 0 15px rgba(0, 0, 0, 0.6);
  bottom: 0;
  background: linear-gradient(to bottom, #5e8ad9, #1e4180);
}
@media only screen and (max-width: 800px) {
  #signature {
    display: none;
  }
}
#signature #close {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1em;
  height: 2em;
  width: 2em;
  cursor: pointer;
  display: block;
}
#signature #close svg {
  fill: rgba(255, 255, 255, 0.4);
  width: 100%;
  height: auto;
  display: block;
}
#signature #close svg:hover {
  fill: #fff;
}
#signature #close:hover svg {
  fill: #fff;
}
#signature svg {
  height: 2em;
  display: inline-block;
  vertical-align: middle;
}
#signature * {
  box-sizing: border-box;
}
#signature .icon {
  width: 80%;
  height: auto;
}
#signature .icon img {
  width: 100%;
  height: auto;
}
#signature h2 {
  font-weight: 100;
  font-size: 1.25em;
}
#signature p {
  display: block;
  margin: 10px 0;
  font-size: 0.8em;
}
#signature .links {
  display: block;
  width: auto;
  height: auto;
  width: 100%;
  margin: 10px 0;
}
#signature .links a {
  width: 100%;
  padding: 0.25em 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#signature .links a svg {
  width: auto;
  height: 1em;
}
#signature .links a:hover {
  color: #fff;
  background: #1e4180;
  box-shadow: 0 3px 4px #000;
}
#signature .links a:hover svg {
  fill: #fff;
}
#signature .links ul {
  display: flex;
  flex-direction: row;
  list-style: none;
  padding: 0;
  margin: 0.25em 0;
  font-size: 0.8em;
}
#signature .links ul li {
  width: 100%;
  background: #fff;
  color: #333;
  flex: 1;
}
#signature .links ul li:hover {
  background: #1e4180;
}
#signature a {
  color: inherit;
  text-decoration: none;
}
  body {
  background: url(http://repo.bfw.wiki/bfwrepo/image/5df86dc72ff0f.png) center center/cover fixed no-repeat;
  font-family: 'Helvetica', sans-serif;
  margin: 0;
  overflow: hidden;
  padding: 0;
  perspective-origin: 0 0;
}

/*--Header--*/
header {
  background: linear-gradient(to bottom, #e6e6e6 0%, #a3a3a3 100%);
  display: block;
  font-size: 0.9em;
  height: 1.3em;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

header ul {
  margin: 0 5px;
  padding: 0 3px;
}

header li {
  display: inline-block;
  line-height: 1.3em;
  padding: 0 0.5em;
  position: relative;
  cursor: default;
}

header .left {
  float: left;
}

header .right {
  float: right;
}

a {
  color: #000;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

header .selected {
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #5978f5), color-stop(100%, #335ef6));
  color: #fff;
  border-bottom: 0.1em solid #5978F5;
}

/*--Menus--*/
.visible {
  display: block !important;
}

.shortcut:after {
  content: attr(shortcut);
  float: right;
  padding-right: 20px;
}

.search {
  padding: 5px 10px !important;
}

.noChoice {
  color: #adadad;
}
.noChoice:hover {
  background: #fff !important;
  color: #adadad !important;
}

#volume-icon-li {
  width: 1em;
}

.submenu {
  display: none;
}
.submenu input[type="text"] {
  border-radius: 2em;
  border: 1px solid #333;
  height: 2em;
  padding: 0 10px;
}
.submenu input[type="range"] {
  transform: rotate(-90deg);
  margin-left: -50px;
  margin-top: 65px;
}
.submenu ul {
  background: #fff;
  border-radius: 0 0 5px 5px;
  color: #333;
  font-size: 14px;
  left: 0px;
  margin: 0 !important;
  overflow: hidden;
  padding: 0 5px 0 0;
  posit.........完整代码请登录后点击上方下载按钮下载查看

网友评论0