css模拟金色手表效果
代码语言:html
所属分类:布局界面
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> /* Day */ @import url("https://fonts.googleapis.com/css?family=Krona+One&display=swap"); /* Rolex */ @import url("https://fonts.googleapis.com/css?family=Rhodium+Libre&display=swap"); /* Swiss Made */ @import url("https://fonts.googleapis.com/css?family=Montserrat:600&display=swap"); /* Text */ @import url("https://fonts.googleapis.com/css?family=Roboto:300i,400&display=swap"); /* Days */ @import url("https://fonts.googleapis.com/css?family=Cousine&display=swap"); *, *:before, *:after { box-sizing: border-box; } html, body { width: 100%; height: 100%; } body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } i:before, i:after, .bezel:before, .bezel:after, .bez:before, .bez:after, .face:before, .face:after, .face .gradient-overlay:before, .face .gradient-overlay:after, .content-upper .logo:before, .content-upper .logo:after, .content-upper .logo .logo-left:before, .content-upper .logo .logo-right:before, .black-outline .outline-details:after, .black-outline .outline-details:before, .five-minute:before, .five-minute:after, .five-minute-markers:before, .five-minute-markers:after, .date-window:after, .hand-sec:after, .hand-sec:before, .hand-min:after, .hand-min:before, .hand-hour:after, .hand-hour:before, .lug-bg:before, .lug-bg:after, .lug:nth-child(1):before, .lug:nth-child(2):before, .lug:nth-child(1):after, .lug:nth-child(2):after, .lug:nth-child(3):before, .lug:nth-child(4):before, .lug:nth-child(3):after, .lug:nth-child(4):after, .band .band-detail-top-center:before, .band .band-detail-top-center:after, .band .band-detail-bottom-center:before, .band .band-detail-bottom-center:after, .band-detail-top-brushed:before, .band-detail-top-brushed:after, .band-detail-bottom-brushed:before, .band-detail-bottom-brushed:after, .band-detail-bottom-brushed:nth-child(2):before, .band-detail-bottom-brushed:nth-child(2):after, .crown:before, .crown:after, .crown .crown-detail:before, .crown .crown-detail:after, .day-window-border:before, .day-window:before { content: ''; display: block; position: absolute; } i, .rolex, .bezel:before, .bezel:after, .bez, .bez:before, .bez:after, .face, .face:before, .face:after, .face .gradient-overlay, .black-outline, .black-outline .outline-details, .five-minute, .five-minute-markers, .hand-sec, .hand-min, .hand-min .shadow, .hand-hour, .hand-hour .shadow, .band, .day-window-border, .day-window-border:before, .day-window, .day-window:before, .day-wrapper { top: 0; bottom: 0; right: 0; left: 0; margin: auto; } i { position: absolute; } i:before, i:after { height: inherit; width: inherit; border-radius: inherit; -webkit-transform: rotateZ(calc(90deg)); transform: rotateZ(calc(90deg)); } body { -webkit-transform: scale(0.8); transform: scale(0.8); } /* Band and crown - 316px */ .rolex { position: absolute; width: 316px; height: 316px; -webkit-filter: drop-shadow(-20px 10px 30px rgba(0, 0, 0, 0.3)); filter: drop-shadow(-20px 10px 30px rgba(0, 0, 0, 0.3)); } /* General frame */ .bezel { width: inherit; height: inherit; border-radius: 100%; position: relative; background: linear-gradient(to right, #725E32 0%, #E6DFB6 100%); box-sizing: initial; } .bezel:after { height: 278px; width: 278px; border-radius: inherit; background: linear-gradient(to right, #7A6337 0%, #705C32 100%); } .bezel:before { height: 300px; width: 300px; border-radius: inherit; background: linear-gradient(to right, #E6DDB1 0%, #4C391F 100%); } /* Texture detail */ .bez { z-index: 1; opacity: 1; position: absolute; } .bez:before, .bez:after { height: 0; width: 16px; top: -298px; border-left: 3px solid transparent; border-right: 3px solid transparent; } .bez:before { border-bottom: 5px solid #7C6435; left: -5px; } .bez:after { border-top: 5px solid #FAFAEB; left: 5px; } i.bez:nth-of-type(0) { -webkit-transform: rotateZ(calc(3.75deg * 0)); transform: rotateZ(calc(3.75deg * 0)); } i.bez:nth-of-type(1) { -webkit-transform: rotateZ(calc(3.75deg * 1)); transform: rotateZ(calc(3.75deg * 1)); } i.bez:nth-of-type(2) { -webkit-transform: rotateZ(calc(3.75deg * 2)); transform: rotateZ(calc(3.75deg * 2)); } i.bez:nth-of-type(3) { -webkit-transform: rotateZ(calc(3.75deg * 3)); transform: rotateZ(calc(3.75deg * 3)); } i.bez:nth-of-type(4) { -webkit-transform: rotateZ(calc(3.75deg * 4)); transform: rotateZ(calc(3.75deg * 4)); } i.bez:nth-of-type(5) { -webkit-transform: rotateZ(calc(3.75deg * 5)); transform: rotateZ(calc(3.75deg * 5)); } i.bez:nth-of-type(6) { -webkit-transform: rotateZ(calc(3.75deg * 6)); transform: rotateZ(calc(3.75deg * 6)); } i.bez:nth-of-type(7) { -webkit-transform: rotateZ(calc(3.75deg * 7)); transform: rotateZ(calc(3.75deg * 7)); } i.bez:nth-of-type(8) { -webkit-transform: rotateZ(calc(3.75deg * 8)); transform: rotateZ(calc(3.75deg * 8)); } i.bez:nth-of-type(9) { -webkit-transform: rotateZ(calc(3.75deg * 9)); transform: rotateZ(calc(3.75deg * 9)); } i.bez:nth-of-type(10) { -webkit-transform: rotateZ(calc(3.75deg * 10)); transform: rotateZ(calc(3.75deg * 10)); } i.bez:nth-of-type(11) { -webkit-transform: rotateZ(calc(3.75deg * 11)); transform: rotateZ(calc(3.75deg * 11)); } i.bez:nth-of-type(12) { -webkit-transform: rotateZ(calc(3.75deg * 12)); transform: rotateZ(calc(3.75deg * 12)); } i.bez:nth-of-type(13) { -webkit-transform: rotateZ(calc(3.75deg * 13)); transform: rotateZ(calc(3.75deg * 13)); } i.bez:nth-of-type(14) { -webkit-transform: rotateZ(calc(3.75deg * 14)); transform: rotateZ(calc(3.75deg * 14)); } i.bez:nth-of-type(15) { -webkit-transform: rotateZ(calc(3.75deg * 15)); transform: rotateZ(calc(3.75deg * 15)); } i.bez:nth-of-type(16) { -webkit-transform: rotateZ(calc(3.75deg * 16)); transform: rotateZ(calc(3.75deg * 16)); } i.bez:nth-of-type(17) { -webkit-transform: rotateZ(calc(3.75deg * 17)); transform: rotateZ(calc(3.75deg * 17)); } i.bez:nth-of-type(18) { -webkit-transform: rotateZ(calc(3.75deg * 18)); transform: rotateZ(calc(3.75deg * 18)); } i.bez:nth-of-type(19) { -webkit-transform: rotateZ(calc(3.75deg * 19)); transform: rotateZ(calc(3.75deg * 19)); } i.bez:nth-of-type(20) { -webkit-transform: rotateZ(calc(3.75deg * 20)); transform: rotateZ(calc(3.75deg * 20)); } i.bez:nth-of-type(21) { -webkit-transform: rotateZ(calc(3.75deg * 21)); transform: rotateZ(calc(3.75deg * 21)); } i.bez:nth-of-type(22) { -webkit-transform: rotateZ(calc(3.75deg * 22)); transform: rotateZ(calc(3.75deg * 22)); } i.bez:nth-of-type(23) { -webkit-transform: rotateZ(calc(3.75deg * 23)); transform: rotateZ(calc(3.75deg * 23)); } i.bez:nth-of-type(24) { -webkit-transform: rotateZ(calc(3.75deg * 24)); transform: rotateZ(calc(3.75deg * 24)); } i.bez:nth-of-type(25) { -webkit-transform: rotateZ(calc(3.75deg * 25)); transform: rotateZ(calc(3.75deg * 25)); } i.bez:nth-of-type(26) { -webkit-transform: rotateZ(calc(3.75deg * 26)); transform: rotateZ(calc(3.75deg * 26)); } i.bez:nth-of-type(27) { -webkit-transform: rotateZ(calc(3.75deg * 27)); transform: rotateZ(calc(3.75deg * 27)); } i.bez:nth-of-type(28) { -webkit-transform: rotateZ(calc(3.75deg * 28)); transform: rotateZ(calc(3.75deg * 28)); } i.bez:nth-of-type(29) { -webkit-transform: rotateZ(calc(3.75deg * 29)); transform: rotateZ(calc(3.75deg * 29)); } i.bez:nth-of-type(30) { -webkit-transform: rotateZ(calc(3.75deg * 30)); transform: rotateZ(calc(3.75deg * 30)); } i.bez:nth-of-type(31) { -webkit-transform: rotateZ(calc(3.75deg * 31)); transform: rotateZ(calc(3.75deg * 31)); } i.bez:nth-of-type(32) { -webkit-transform: rotateZ(calc(3.75deg * 32)); transform: rotateZ(calc(3.75deg * 32)); } i.bez:nth-of-type(33) { -webkit-transform: rotateZ(calc(3.75deg * 33)); transform: rotateZ(calc(3.75deg * 33)); } i.bez:nth-of-type(34) { -webkit-transform: rotateZ(calc(3.75deg * 34)); transform: rotateZ(calc(3.75deg * 34)); } i.bez:nth-of-type(35) { -webkit-transform: rotateZ(calc(3.75deg * 35)); transform: rotateZ(calc(3.75deg * 35)); } i.bez:nth-of-type(36) { -webkit-transform: rotateZ(calc(3.75deg * 36)); transform: rotateZ(calc(3.75deg * 36)); } i.bez:nth-of-type(37) { -webkit-transform: rotateZ(calc(3.75deg * 37)); transform: rotateZ(calc(3.75deg * 37)); } i.bez:nth-of-type(38) { -webkit-transform: rotateZ(calc(3.75deg * 38)); transform: rotateZ(calc(3.75deg * 38)); } i.bez:nth-of-type(39) { -webkit-transform: rotateZ(calc(3.75deg * 39)); transform: rotateZ(calc(3.75deg * 39)); } i.bez:nth-of-type(40) { -webkit-transform: rotateZ(calc(3.75deg * 40)); transform: rotateZ(calc(3.75deg * 40)); } i.bez:nth-of-type(41) { -webkit-transform: rotateZ(calc(3.75deg * 41)); transform: rotateZ(calc(3.75deg * 41)); } i.bez:nth-of-type(42) { -webkit-transform: rotateZ(calc(3.75deg * 42)); transform: rotateZ(calc(3.75deg * 42)); } i.bez:nth-of-type(43) { -webkit-transform: rotateZ(calc(3.75deg * 43)); transform: rotateZ(calc(3.75deg * 43)); } i.bez:nth-of-type(44) { -webkit-transform: rotateZ(calc(3.75deg * 44)); transform: rotateZ(calc(3.75deg * 44)); } i.bez:nth-of-type(45) { -webkit-transform: rotateZ(calc(3.75deg * 45)); transform: rotateZ(calc(3.75deg * 45)); } i.bez:nth-of-type(46) { -webkit-transform: rotateZ(calc(3.75deg * 46)); transform: rotateZ(calc(3.75deg * 46)); } i.bez:nth-of-type(47) { -webkit-transform: rotateZ(calc(3.75deg * 47)); transform: rotateZ(calc(3.75deg * 47)); } i.bez:nth-of-type(48) { -webkit-transform: rotateZ(calc(3.75deg * 48)); transform: rotateZ(calc(3.75deg * 48)); } i.bez:nth-of-type(49) { -webkit-transform: rotateZ(calc(3.75deg * 49)); transform: rotateZ(calc(3.75deg * 49)); } i.bez:nth-of-type(50) { -webkit-transform: rotateZ(calc(3.75deg * 50)); transform: rotateZ(calc(3.75deg * 50)); } i.bez:nth-of-type(51) { -webkit-transform: rotateZ(calc(3.75deg * 51)); transform: rotateZ(calc(3.75deg * 51)); } i.bez:nth-of-type(52) { -webkit-transform: rotateZ(calc(3.75deg * 52)); transform: rotateZ(calc(3.75deg * 52)); } i.bez:nth-of-type(53) { -webkit-transform: rotateZ(calc(3.75deg * 53)); transform: rotateZ(calc(3.75deg * 53)); } i.bez:nth-of-type(54) { -webkit-transform: rotateZ(calc(3.75deg * 54)); transform: rotateZ(calc(3.75deg * 54)); } i.bez:nth-of-type(55) { -webkit-transform: rotateZ(calc(3.75deg * 55)); transform: rotateZ(calc(3.75deg * 55)); } i.bez:nth-of-type(56) { -webkit-transform: rotateZ(calc(3.75deg * 56)); transform: rotateZ(calc(3.75deg * 56)); } i.bez:nth-of-type(57) { -webkit-transform: rotateZ(calc(3.75deg * 57)); transform: rotateZ(calc(3.75deg * 57)); } i.bez:nth-of-type(58) { -webkit-transform: rotateZ(calc(3.75deg * 58)); transform: rotateZ(calc(3.75deg * 58)); } i.bez:nth-of-type(59) { -webkit-transform: rotateZ(calc(3.75deg * 59)); transform: rotateZ(calc(3.75deg * 59)); } i.bez:nth-of-type(60) { -webkit-transform: rotateZ(calc(3.75deg * 60)); transform: rotateZ(calc(3.75deg * 60)); } i.bez:nth-of-type(61) { -webkit-transform: rotateZ(calc(3.75deg * 61)); transform: rotateZ(calc(3.75deg * 61)); } i.bez:nth-of-type(62) { -webkit-transform: rotateZ(calc(3.75deg * 62)); transform: rotateZ(calc(3.75deg * 62)); } i.bez:nth-of-type(63) { -webkit-transform: rotateZ(calc(3.75deg * 63)); transform: rotateZ(calc(3.75deg * 63)); } i.bez:nth-of-type(64) { -webkit-transform: rotateZ(calc(3.75deg * 64)); transform: rotateZ(calc(3.75deg * 64)); } i.bez:nth-of-type(65) { -webkit-transform: rotateZ(calc(3.75deg * 65)); transform: rotateZ(calc(3.75deg * 65)); } i.bez:nth-of-type(66) { -webkit-transform: rotateZ(calc(3.75deg * 66)); transform: rotateZ(calc(3.75deg * 66)); } i.bez:nth-of-type(67) { -webkit-transform: rotateZ(calc(3.75deg * 67)); transform: rotateZ(calc(3.75deg * 67)); } i.bez:nth-of-type(68) { -webkit-transform: rotateZ(calc(3.75deg * 68)); transform: rotateZ(calc(3.75deg * 68)); } i.bez:nth-of-type(69) { -webkit-transform: rotateZ(calc(3.75deg * 69)); transform: rotateZ(calc(3.75deg * 69)); } i.bez:nth-of-type(70) { -webkit-transform: rotateZ(calc(3.75deg * 70)); transform: rotateZ(calc(3.75deg * 70)); } i.bez:nth-of-type(71) { -webkit-transform: rotateZ(calc(3.75deg * 71)); transform: rotateZ(calc(3.75deg * 71)); } i.bez:nth-of-type(72) { -webkit-transform: rotateZ(calc(3.75deg * 72)); transform: rotateZ(calc(3.75deg * 72)); } i.bez:nth-of-type(73) { -webkit-transform: rotateZ(calc(3.75deg * 73)); transform: rotateZ(calc(3.75deg * 73)); } i.bez:nth-of-type(74) { -webkit-transform: rotateZ(calc(3.75deg * 74)); transform: rotateZ(calc(3.75deg * 74)); } i.bez:nth-of-type(75) { -webkit-transform: rotateZ(calc(3.75deg * 75)); transform: rotateZ(calc(3.75deg * 75)); } i.bez:nth-of-type(76) { -webkit-transform: rotateZ(calc(3.75deg * 76)); transform: rotateZ(calc(3.75deg * 76)); } i.bez:nth-of-type(77) { -webkit-transform: rotateZ(calc(3.75deg * 77)); transform: rotateZ(calc(3.75deg * 77)); } i.bez:nth-of-type(78) { -webkit-transform: rotateZ(calc(3.75deg * 78)); transform: rotateZ(calc(3.75deg * 78)); } i.bez:nth-of-type(79) { -webkit-transform: rotateZ(calc(3.75deg * 79)); transform: rotateZ(calc(3.75deg * 79)); } i.bez:nth-of-type(80) { -webkit-transform: rotateZ(calc(3.75deg * 80)); transform: rotateZ(calc(3.75deg * 80)); } i.bez:nth-of-type(81) { -webkit-transform: rotateZ(calc(3.75deg * 81)); transform: rotateZ(calc(3.75deg * 81)); } i.bez:nth-of-type(82) { -webkit-transform: rotateZ(calc(3.75deg * 82)); transform: rotateZ(calc(3.75deg * 82)); } i.bez:nth-of-type(83) { -webkit-transform: rotateZ(calc(3.75deg * 83)); transform: rotateZ(calc(3.75deg * 83)); } i.bez:nth-of-type(84) { -webkit-transform: rotateZ(calc(3.75deg * 84)); transform: rotateZ(calc(3.75deg * 84)); } i.bez:nth-of-type(85) { -webkit-transform: rotateZ(calc(3.75deg * 85)); transform: rotateZ(calc(3.75deg * 85)); } i.bez:nth-of-type(86) { -webkit-transform: rotateZ(calc(3.75deg * 86)); transform: rotateZ(calc(3.75deg * 86)); } i.bez:nth-of-type(87) { -webkit-transform: rotateZ(calc(3.75deg * 87)); transform: rotateZ(calc(3.75deg * 87)); } i.bez:nth-of-type(88) { -webkit-transform: rotateZ(calc(3.75deg * 88)); transform: rotateZ(calc(3.75deg * 88)); } i.bez:nth-of-type(89) { -webkit-transform: rotateZ(calc(3.75deg * 89)); transform: rotateZ(calc(3.75deg * 89)); } i.bez:nth-of-type(90) { -webkit-transform: rotateZ(calc(3.75deg * 90)); transform: rotateZ(calc(3.75deg * 90)); } i.bez:nth-of-type(91) { -webkit-transform: rotateZ(calc(3.75deg * 91)); transform: rotateZ(calc(3.75deg * 91)); } i.bez:nth-of-type(92) { -webkit-transform: rotateZ(calc(3.75deg * 92)); transform: rotateZ(calc(3.75deg * 92)); } i.bez:nth-of-type(93) { -webkit-transform: rotateZ(calc(3.75deg * 93)); transform: rotateZ(calc(3.75deg * 93)); } i.bez:nth-of-type(94) { -webkit-transform: rotateZ(calc(3.75deg * 94)); transform: rotateZ(calc(3.75deg * 94)); } i.bez:nth-of-type(95) { -webkit-transform: rotateZ(calc(3.75deg * 95)); transform: rotateZ(calc(3.75deg * 95)); } i.bez:nth-of-type(96) { -webkit-transform: rotateZ(calc(3.75deg * 96)); transform: rotateZ(calc(3.75deg * 96)); } /* Checkered background, border shine, and gradient overlay */ .face { width: 272px; height: 272px; position: absolute; border-radius: 100%; background: linear-gradient(to bottom, #E6D8AE 0%, #A48E64 25%, #A48E64 38%, #C4AF85 60%, #DACB9E 80%, #FCFBFA 100%); box-shadow: inset 0 0 1px 1px #CEC8BB, inset 0 0 2px 3px #A28E6A, inset 0 0 2px 5px #F4EDD2, inset 0 0 1px 7px #A28E6A, inset 0 0 0 8px #D2C29C; /* Checkered BG */ /* Shine */ } .face:before { border-radius: 100%; height: 244px; width: 244px; background: #DFDCD3; box-shadow: inset 1px 1px 6px 2px rgba(0, 0, 0, 0.3); background-image: repeating-linear-gradient(45deg, transparent, transparent 4px, #B4AB99 4px, #B4AB99 7px), repeating-linear-gradient(-45deg, transparent, transparent 4px, #B4AB99 4px, #B4AB99 7px); } .face:after { border-radius: 100%; height: 250px; width: 250px; box-sizing: content-box; border-top: 4px solid rgba(250, 250, 245, 0.8); border-bottom: 4px solid rgba(250, 250, 245, 0.8); -webkit-transform: rotateZ(30deg); transform: rotateZ(30deg); -webkit-filter: blur(0.02em); filter: blur(0.02em); } .face .gradient-overlay { position: absolute; width: 244px; height: 244px; overflow: hidden; border-radius: 100%; } .face .gradient-overlay:before, .face .gradient-overlay:after { width: 135px; height: 135px; background: #FFECD9; -webkit-transform: rotateZ(45deg); transform: rotateZ(45deg); -webkit-filter: blur(15px); filter: blur(15px); mix-blend-mode: hard-light; opacity: 0.6; top: 55px; } .face .gradient-overlay:before { left: -42px; } .face .gradient-overlay:after { right: -42px; } /* Rolex text */ .content-upper { color: #100000; text-transform: uppercase; /* Crown */ } .content-upper .logo { top: 74px; position: absolute; width: 12px; height: 8px; border: 2px solid #DFD0A9; border-top-width: 3px; border-radius: 50%; left: 0; right: 0; margin: 0 auto; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.6); -webkit-filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.7)); filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.7)); /* Dots */ /* Center tip */ } .content-upper .logo:before, .content-upper .logo:after { top: -22px; } .content-upper .logo:before { left: 2px; width: 4px; height: 4px; background: #F2E5B7; border-radius: 50%; box-shadow: 7px 2px 0 #F2E5B7, 12px 6px 0 #EEDDAA, -7px 2px 0 #F2E5B7, -12px 6px 0 #EEDDAA; } .content-upper .logo:after { left: 0; right: 0; margin: auto; width: 0; height: 0; border-right: 2px solid transparent; border-left: 2px solid transparent; border-bottom: 20px solid #F2E5B7; } .content-upper .logo .logo-left, .content-upper .logo .logo-right { position: absolute; top: -20px; border-bottom: 20px solid #F2E5B7; } .content-upper .logo .logo-left:before, .content-upper .logo .logo-right:before { top: 2px; border-top: 19px solid transparent; } .content-upper .logo .logo-left { left: -3px; border-right: 2px solid transparent; border-left: 2px solid transparent; -webkit-transform: rotateZ(-15deg); transform: rotateZ(-15deg); } .content-upper .logo .logo-left:before { left: -5px; border-left: 3px solid #D5C69A; -webkit-transform: rotateZ(-5deg); transform: rotateZ(-5deg); } .content-upper .logo .logo-right { right: -3px; border-right: 2px solid transparent; border-left: 2px solid transparent; -webkit-transform: rotateZ(15deg); transform: rotateZ(15deg); } .content-upper .logo .logo-right:before { right: -5px; border-right: 3px solid #D5C69A; -webkit-transform: rotateZ(5deg); transform: rotateZ(5deg); } .content-upper .name { font-family: 'Rhodium Libre', serif; position: absolute; font-size: 0.625em; /* 10px */ letter-spacing: 0.07em; /* 16px */ text-align: center; width: 100%; top: 87px; } .content-upper .sub-name { font-family: 'Roboto', sans-serif; position: absolute; text-align: center; top: 96px; width: 100%; line-height: 0.9; font-size: 0.5625em; /* 9px */ } /* Smaller content*/ .content-lower { position: absolute; font-family: 'Roboto', sans-serif; text-align: center; top: 176px; color: #100000; width: 100%; /* Could not add Rolex logo */ } .content-lower .sub-fine { text-transform: uppercase; font-size: 5px; /* Can't use em */ letter-spacing: 0.04em; line-height: 1.3; } .content-lower .sub-swiss { position: absolute; top: 72px; width: 100%; text-transform: uppercase; font-size: 5px; /* Can't use em */ font-weight: 600; font-family: 'Montserrat', sans-serif; } .content-lower .sub-swiss span { display: inline-block; position: relative; } .content-lower .sub-swiss span:nth-child(1) { margin-right: 1px; -webkit-transform: rotateZ(4deg); transform: rotateZ(4deg); } .content-lower .sub-swiss span:nth-child(2) { margin-left: 1px; -webkit-transform: rotateZ(-4deg); transform: rotateZ(-4deg); } /* Black outlines */ .black-outline { position: absolute; height: 238px; width: 238px; border-radius: 100%; -webkit-transform: rotateZ(-3deg); transform: rotateZ(-3deg); /* Square details */ } .black-outline .outline-details { position: absolute; height: 6px; width: 13px; } .black-outline .outline-details:after, .black-outline .outline-details:before { height: inherit; width: inherit; border-top: 1px solid rgba(0, 0, 0, 0.5); border-bottom: 1px solid rgba(0, 0, 0, 0.5); border-right: 1px solid rgba(0, 0, 0, 0.5); } .black-outline .outline-details:after { top: -116px; } .black-outline .outline-details:before { top: 116px; } .black-outline .outline-details:nth-child(30):after { border-left: 1px solid rgba(0, 0, 0, 0.5); } .black-outline .outline-details:nth-child(1):before, .black-outline .outline-details:nth-child(2):before, .black-outline .outline-details:nth-child(30):before { border-top: 0 solid transparent; border-right: 0 solid transparent; } .black-outline .outline-details:nth-child(29):after { border-bottom: 0 solid transparent; border-right: 0 solid transparent; } .black-outline .outline-details:nth-of-type(0) { -webkit-transform: rotateZ(calc(6deg * 0)); transform: rotateZ(calc(6deg * 0)); } .black-outline .outline-details:nth-of-type(1) { -webkit-transform: rotateZ(calc(6deg * 1)); transform: rotateZ(calc(6deg * 1)); } .black-outline .outline-details:nth-of-type(2) { -webkit-transform: rotateZ(calc(6deg * 2)); transform: rotateZ(calc(6deg * 2)); } .black-outline .outline-details:nth-of-type(3) { -webkit-transform: rotateZ(calc(6deg * 3)); transform: rotateZ(calc(6deg * 3)); } .black-outline .outline-details:nth-of-type(4) { -webkit-transform: rotateZ(calc(6deg * 4)); transform: rotateZ(calc(6deg * 4)); } .black-outline .outline-details:nth-of-type(5) { -webkit-transform: rotateZ(calc(6deg * 5)); transform: rotateZ(calc(6deg * 5)); } .black-outline .outline-details:nth-of-type(6) { -webkit-transform: rotateZ(calc(6deg * 6)); transform: rotateZ(calc(6deg * 6)); } .black-outline .outline-details:nth-of-type(7) { -webkit-transform: rotateZ(calc(6deg * 7)); transform: rotateZ(calc(6deg * 7)); } .black-outline .outline-details:nth-of-type(8) { -webkit-transform: rotateZ(calc(6deg * 8)); transform: rotateZ(calc(6deg * 8)); } .black-outline .outline-details:nth-of-type(9) { -webkit-transform: rotateZ(calc(6deg * 9)); transform: rotateZ(calc(6deg * 9)); } .black-outline .outline-details:nth-of-type(10) { -webkit-transform: rotateZ(calc(6deg * 10)); transform: rotateZ(calc(6deg * 10)); } .black-outline .outline-details:nth-of-type(11) { -webkit-transform: rotateZ(calc(6deg * 11)); transform: rotateZ(calc(6deg * 11)); } .black-outline .outline-details:nth-of-type(12) { -webkit-transform: rotateZ(calc(6deg * 12)); transform: rotateZ(calc(6deg * 12)); } .black-outline .outline-details:nth-of-type(13) { -webkit-transform: rotateZ(calc(6deg * 13)); transform: rotateZ(calc(6deg * 13)); } .black-outline .outline-details:nth-of-type(14) { -webkit-transform: rotateZ(calc(6deg * 14)); transform: rotateZ(calc(6deg * 14)); } .black-outline .outline-details:nth-of-type(15) { -webkit-transform: rotateZ(calc(6deg * 15)); transform: rotateZ(calc(6deg * 15)); } .black-outline .outline-details:nth-of-type(16) { -webkit-transform: rotateZ(calc(6deg * 16)); transform: rotateZ(calc(6deg * 16)); } .black-outline .outline-details:nth-of-type(17) { -webkit-transform: rotateZ(calc(6deg * 17)); transform: rotateZ(calc(6deg * 17)); } .black-outline .outline-details:nth-of-type(18) { -webkit-transform: rotateZ(calc(6deg * 18)); transform: rotateZ(calc(6deg * 18)); } .black-outline .outline-details:nth-of-type(19) { -webkit-transform: rotateZ(calc(6deg * 19)); transform: rotateZ(calc(6deg * 19)); } .black-outline .outline-details:nth-of-type(20) { -webkit-transform: rotateZ(calc(6deg * 20)); transform: rotateZ(calc(6deg * 20)); } .black-outline .outline-details:nth-of-type(21) { -webkit-transform: rotateZ(calc(6deg * 21)); transform: rotateZ(calc(6deg * 21)); } .black-outline .outline-details:nth-of-type(22) { -webkit-transform: rotateZ(calc(6deg * 22)); transform: rotateZ(calc(6deg * 22)); } .black-outline .outline-details:nth-of-type(23) { -webkit-transform: rotateZ(calc(6deg * 23)); transform: rotateZ(calc(6deg * 23)); } .black-outline .outline-details:nth-of-type(24) { -webkit-transform: rotateZ(calc(6deg * 24)); transform: rotateZ(calc(6deg * 24)); } .black-outline .outline-details:nth-of-type(25) { -webkit-transform: rotateZ(calc(6deg * 25)); transform: rotateZ(calc(6deg * 25)); } .black-outline .outline-details:nth-of-type(26) { -webkit-transform: rotateZ(calc(6deg * 26)); transform: rotateZ(calc(6deg * 26)); } .black-outline .outline-details:nth-of-type(27) { -webkit-transform: rotateZ(calc(6deg * 27)); transform: rotateZ(calc(6deg * 27)); } .black-outline .outline-details:nth-of-type(28) { -webkit-transform: rotateZ(calc(6deg * 28)); transform: rotateZ(calc(6deg * 28)); } .black-outline .outline-details:nth-of-type(29) { -webkit-transform: rotateZ(calc(6deg * 29)); transform: rotateZ(calc(6deg * 29)); } /* Five minute markers 6 and 9 */ .five-minute { position: absolute; width: 8px; height: 29px; } .five-minute:before, .five-minute:after { width: inherit; height: inherit; background: #EAE8E5; border: 1px solid #F0E7CA; } .five-minute:before { top: 95px; box-shadow: inset 1px 1px 1px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 1px rgba(0, 0, 0, 0.5); border-bottom: 1px solid #705B2D; } .five-minute:after { -webkit-transform: rotateZ(-90deg); transform: rotateZ(-90deg); left: -95px; box-shadow: inset -1px 0px 1px 0 rgba(0, 0, 0, 0.3), -1px 0px 2px 1px rgba(0, 0, 0, 0.5); border-left: 1px solid #705B2D; border-top: 1px solid #705B2D; } /* Five minute markers 1, 2, 4, 5, 7, 8, 10, 11 */ .five-minute-markers { position: absolute; width: inherit; height: inherit; } .five-minute-markers:before, .five-minute-markers:after { width: inherit; height: inherit; background: #EAE8E5; box-shadow: inset -1px -1px 1px 0 rgba(0, 0, 0, 0.3), -1px -1px 2px 1px rgba(0, 0, 0, 0.5); border: 1px solid #F0E7CA; border-top: 1px solid #705B2D; border-left: 1px solid #705B2D; } .five-minute-markers:before { top: -95px; } .five-minute-markers:after { top: 95px; } .five-minute-markers:nth-child(1):before, .five-minute-markers:nth-child(2):before, .five-minute-markers:nth-child(1):after, .five-minute-markers:nth-child(2):after { border-top: 1px solid #F0E7CA; border-bottom: 1px solid #705B2D; border-left: 1px solid #705B2D; box-shadow: inset -1px 1px 1px 0 rgba(0, 0, 0, 0.3), -1px 1px 2px 1px rgba(0, 0, 0, 0.5); } .five-minute-markers:nth-of-type(3) { display: none; } .five-minute-markers:nth-of-type(0) { -webkit-transform: rotateZ(calc(-30deg * 0)); transform: rotateZ(calc(-30deg * 0)); } .five-minute-markers:nth-of-type(1) { -webkit-transform: rotateZ(calc(-30deg * 1)); transform: rotateZ(calc(-30deg * 1)); } .five-minute-markers:nth-of-type(2) { -webkit-transform: rotateZ(calc(-30deg * 2)); transform: rotateZ(calc(-30deg * 2)); } .five-minute-markers:nth-of-type(3) { -webkit-transform: rotateZ(calc(-30deg * 3)); transform: rotateZ(calc(-30deg * 3)); } .five-minute-markers:nth-of-type(4) { -webkit-transform: rotateZ(calc(-30deg * 4)); transform: rotateZ(calc(-30deg * 4)); } .five-minute-markers:nth-of-type(5) { -webkit-transform: rotateZ(calc(-30deg * 5)); transform: rotateZ(calc(-30deg * 5)); } /* Border, glass, bg, day */ [class^="date-window"] { width: 58px; height: 48px; top: -3px; bottom: 0; margin: auto; right: 24px; position: absolute; border-radius: 26px / 36px; overflow: hidden; } .date-window { border: 2px solid #C3BEB8; border-left: 0 solid transparent; box-shadow: inset 2px -2px 12px 2px rgba(255, 255, 255, 0.3), -2px 0 1px 0 rgba(0, 0, 0, 0.3); z-index: 1; /* Shine */ } .date-window:after { top: -120px; left: -80px; width: 172px; height: 420px; -webkit-transform: rotateZ(-18deg); transform: rotateZ(-18deg); background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 48%, rgba(255, 255, 255, 0.8) 48%, rgba(255, 255, 255, 0) 68%); } /* BG pattern */ .date-window-texture { background: #F8F8F5; background-image: repeating-linear-gradient(45deg, transparent, transparent 4px, #E8E6DF 6px, #E8E6DF 8px), repeating-linear-gradient(-45deg, transparent, transparent 4px, #E8E6DF 6px, #E8E6DF 8px); z-index: 0; } /* Date number */ #date { font-family: 'Krona One', sans-serif; position: absolute; top: 6px; bottom: 0; margin: auto; right: 30px; text-align: center; text-indent: -1px; letter-spacing: -0.06em; font-size: 1.5em; /* 24px */ line-height: 1.3; color: #414242; height: 36px; width: 48px; background: #F8F8FA; border-top: 6px solid #C9C5BD; border-bottom: 2px solid #C9C5BD; border-left: 4px solid #A09891; border-right: 4px solid #A09891; box-shadow: inset -1px 1px 2px 0 rgba(0, 0, 0, 0.5); z-index: 0; } /* Second hand */ .hand-sec { position: absolute; width: 12px; height: 12px; border-radius: 50%; -webkit-transform: rotateZ(88deg); transform: rotateZ(88deg); /* Circles */ /* Hand */ } .hand-sec:after { .........完整代码请登录后点击上方下载按钮下载查看
网友评论0