123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288 |
- import styled from "styled-components";
- export const LinksWrapper = styled.div`
- .pattern-center-blank{
- padding-top: 75px;
- background-color: #fff;
- }
- @media(max-width:768px){
- .pattern-center-blank{
- padding-top: 50px;
- }
- }
- `;
- export const LinksTop = styled.div`
- position: relative;
- top: 0;
- left: 0;
- width: 100%;
- overflow: hidden;
- &:before{
- content: "";
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- background-color: rgba(0,0,0,.3);
- }
- &:after{
- content: '';
- width: 150%;
- height: 4.375rem;
- background: #fff;
- left: -25%;
- bottom: -2.875rem;
- border-radius: 100%;
- position: absolute;
- }
- .pattern-attachment-img{
- background-repeat: no-repeat;
- background-size: cover;
- background-position: center center;
- background-origin: border-box;
- width: 100%;
- height: 400px;
- img{
- width: 100%;
- height: 100%;
- object-fit: cover;
- pointer-events: none;
- }
- }
- .pattern-header {
- position: absolute;
- top: 45%;
- left: 0;
- right: 0;
- text-align: center;
- color: #fff;
- z-index: 1;
- h1{
- color: #fff;
- font-size: 40px;
- font-weight: 500;
- width: 80%;
- margin: auto;
- padding: 0;
- border: 0;
- }
- }
- @media(max-width:768px){
- .pattern-attachment-img{
- height:280px;
- }
- .pattern-header {
- top:40%;
- h1{
- font-size:24px;
- }
- }
- }
- `;
- export const MainWrapper = styled.div`
- min-height:600px;
- max-width: 900px;
- padding: 0 10px;
- margin-left: auto;
- margin-right: auto;
- padding-top:50px;
- background-color: rgba(255,255,255,.8);
- animation: main 1s;
- .flex-items{
- align-items: start;
- }
- .toc{
- .ant-anchor-link-active > .ant-anchor-link-title{
- color: #FE9600;
- }
- .ant-anchor-link-title:hover{
- color: #FE9600;
- }
- .ant-anchor-ink-ball{
- border: 2px solid #FE9600;
- }
- }
- @keyframes main {
- 0% {
- opacity: 0;
- transform: translateY(50px)
- }
- 100% {
- opacity: 1;
- transform: translateY(0)
- }
- }
- .example{
- height:52px;
- line-height:52px;
- text-align: center;
- i{
- background-color: #FE9600;
- }
- }
- .links>p{
- width: 100%;
- padding: 20px 0;
- text-align: center;
- margin: 40px 0 80px;
- display: inline-block;
- color: #989898;
- font-size: 15px;
- }
- .links .link-title {
- padding-left: 0;
- border-left: none;
- margin: 50px 0 20px;
- .fake-title {
- font-weight: 400;
- color: #6d6d6d;
- padding-left: 10px;
- border-left: 3px solid orange;
- }
- }
- .links ul {
- margin: 0;
- list-style: none;
- padding: 0;
- width: 100%;
- display: inline-block;
- }
- .links ul li {
- width: 32%;
- float: left;
- border: 1px solid #ececec;
- padding: 10px 30px;
- margin: 10px 4px;
- position: relative;
- overflow: hidden;
- -webkit-transition: all .3s;
- transition: all .3s;
- border-radius: 10px;
- }
- .links ul li:before {
- content: "";
- background-color: #FE9600;
- -webkit-transform: skew(45deg,0);
- transform: skew(45deg,0);
- width: 0;
- height: 100%;
- position: absolute;
- top: 0;
- left: -60px;
- z-index: -1;
- -webkit-transition: all .5s;
- transition: all .5s;
- }
- .links ul li img {
- float: right;
- box-shadow: inset 0 0 10px #000;
- padding: 5px;
- opacity: 1;
- transform: rotate(0deg);
- -webkit-transform: rotate(0deg);
- -moz-transform: rotate(0deg);
- -o-transform: rotate(0deg);
- -ms-transform: rotate(0deg);
- transition: all ease 1s;
- -webkit-transition: all ease 1s;
- -moz-transition: all ease 1s;
- -o-transition: all ease 1s;
- margin-top: 5px;
- width: 65px;
- height: 65px;
- padding: 2px;
- border-radius: 100%;
- }
- .links ul li .sitename {
- color: #FE9600;
- padding-bottom: 10px;
- display: block;
- -webkit-transition: all .3s;
- transition: all .3s;
- overflow: hidden;
- text-overflow: ellipsis;
- -o-text-overflow: ellipsis;
- white-space: nowrap;
- }
- .linkdes {
- color: #949494;
- font-size: 13px;
- padding: 10px 0;
- min-height:46px;
- border-top: 1px dashed #ddd;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- line-height: 25px;
- -webkit-transition: all .5s;
- transition: all .5s;
- }
- .post-list-show {
- animation: post-list-show .5s;
- -webkit-animation: post-list-show .5s;
- opacity: 1;
- }
- @keyframes post-list-show {
- 0% {
- opacity: 0;
- -webkit-transform: translateY(80px);
- transform: translateY(80px)
- }
- 100% {
- opacity: 1;
- -webkit-transform: translateY(0);
- transform: translateY(0)
- }
- }
- @media(min-width:768px){
- .links ul li:hover {
- color: #27323a;
- border-color: #FE9600;
- border: 1px solid #FE9600;
- }
- .links ul li:hover:before {
- width: 180%;
- }
- .links ul li:hover img {
- transform: rotate(360deg);
- -webkit-transform: rotate(360deg);
- -moz-transform: rotate(360deg);
- -o-transform: rotate(360deg);
- -ms-transform: rotate(360deg);
- }
- .links ul li:hover .linkdes {
- border-top: 1px dashed #fff;
- }
- }
- @media(max-width:768px){
- padding-top:30px;
- min-height:400px;
- .toc-box{
- display: none;
- }
- .page-header{
- margin-bottom: 30px;
- h1{
- font-size: 16px;
- font-weight: 400;
- border: 1px dashed #ddd;
- padding:10px;
- color: #828282;
- }
- }
- }
- @media (max-width: 768px){
- .links ul li {
- width: 48.6%;
- }
- }
- @media (max-width: 630px){
- .links ul li {
- width: 100%;
- margin:10px 0;
- }
- }
- `;
|