Skip to content

Instantly share code, notes, and snippets.

@lazyTai
Created September 22, 2017 02:12
Show Gist options
  • Save lazyTai/74445dc7630fb67dba0e7d5cfaad2199 to your computer and use it in GitHub Desktop.
Save lazyTai/74445dc7630fb67dba0e7d5cfaad2199 to your computer and use it in GitHub Desktop.
all width heigth 100%
.page_add {
width: 100%;
height: 100%;
background: #eee;
}
.active_select {
background: orange;
color: aliceblue;
}
.fade-enter {
opacity: 0.1;
}
.fade-enter.fade-enter-active {
opacity: 1;
transition: all 300ms ease-out;
}
.translateX-enter {
transform: translateX(100%);
}
.translateX-enter.translateX-enter-active {
transform: translateX(0%);
transition: all 300ms ease-out;
}
.bottom2top-enter {
transform: translateY(100%);
}
.bottom2top-enter.bottom2top-enter-active {
transform: translateY(0%);
transition: all 300ms ease-out;
}
.toleft-enter {
transform: translateX(100%);
}
.toleft-enter.toleft-enter-active {
transform: translateX(0%);
transition: all 500ms ease-out;
}
.toright-enter {
transform: translateX(-100%);
}
.toright-enter.toright-enter-active {
transform: translateX(0%);
transition: all 500ms ease-out;
}
.fade-leave, .translateX-leave, .translateY-enter, .toRight-enter, .toLeft-enter {
opacity: 0;
}
/*drawer*/
:global(html) {
padding: 0;
margin: 0;
}
:global(body) {
padding: 0;
margin: 0;
}
:global(.drawer) {
transform: translateX(-100%);
position: absolute;
top: 0;
width: 30%;
background: #fff;
height: 100%;
z-index: 10;
}
:global(.backMark) {
transform: translateX(-100%);
background: #222;
position: absolute;
opacity: 0.5;
top: 0;
z-index: 8;
width: 100%;
height: 100%;
}
:global(.backMark.active) {
transform: translateX(0%);
}
:global(.drawer.active_in) {
transform: translateX(0%);
transition: all 300ms ease-in-out
}
:global(.drawer.active_out) {
transform: translateX(-100%);
transition: all 300ms ease-in-out
}
.src_page_component_app_content_js_wrapper {
box-sizing: border-box;
margin-top: 10px;
position: relative;
}
.src_page_component_app_content_js_wrapper:after {
content: "";
width: 100%;
height: 1px;
position: absolute;
bottom: -10px;
background: #eee;
}
.src_page_component_app_content_js_artitle{
width: 100%;
overflow: hidden;
padding: 10px;
box-sizing: border-box;
}
.src_page_component_app_content_js_content {
width: 100%;
overflow: hidden;
height: 62px;
}
.src_page_component_app_content_js_title {
font-size: 20px;
}
.src_page_component_app_content_js_title small {
font-size: 12px;
}
.src_page_home_content_wrapper {
margin-bottom: 100px;
}
.src_page_home_js_typewrapper {
display: flex;
padding: 20px 0;
border-bottom: 1px dashed #eee;
border-top: 1px dashed #eee;
}
.src_page_component_app_type_js_label {
padding: 10px;
border: 1px solid #eee;
background: rgba(238, 238, 238, 0.18);
margin-left: 10px;
}
/* header */
.src_page_home_js_header {
position: fixed;
display: flex;
color: #fff;
background-color: #2185d0;
box-shadow: #1e6ead 0px 3px;
margin-bottom: 4px;
position: fixed;
top: 0;
width: 100%;
max-width: 700px;
box-sizing: border-box;
z-index: 9;
line-height: 40px;
}
.src_page_home_js_header_left,.src_page_home_js_header_title,
.src_page_home_js_header_right
{
display: flex;
flex: 1;
/* text-align: center;
justify-content: center; */
align-items: center;
}
.src_page_home_js_header_left{
justify-content: start;
padding-left: 10px;
}
.src_page_home_js_header_right{
justify-content: flex-end;
padding-right: 10px;
}
.src_page_App_js_bottom {
position: fixed;
bottom: 0;
flex: 1;
display: flex;
background: #fff;
width: 100%;
z-index: 9;
border:1px solid #eee;
}
@media screen and (min-width: 700px) {
.src_page_App_js_bottom {
width: 700px; /*这是重点,pc居中*/
}
}
.active_select {
padding-top: 5px;
width: 33.33%;
text-align: center;
justify-items: center;
}
.active_select_no {
padding-top: 5px;
width: 33.33%;
text-align: center;
justify-items: center;
}
.page_home,.page_add,.page_mine{
z-index: 8;
}
* {
box-sizing: border-box;
}
html, .App, #root, body {
padding: 0;
width: 100%;
height: 100%;
}
body {
margin: 0 auto !important;
overflow-x: hidden;
}
@media screen and (min-width: 700px) {
body {
width: 700px; /*这是重点,pc居中*/
}
}
/*bottom*/
._navItem {
transition: all 500ms ease-out;
}
._navItem.active {
background: rgb(33, 133, 208) !important;
}
.page_mine {
width: 100%;
height: 100%;
background: #eee;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment