Files

618 lines
10 KiB
CSS
Raw Permalink Normal View History

2019-05-05 11:41:35 +08:00
:root {
--theme-color: hsl(204, 90%, 45%);
}
2018-12-25 16:04:58 +08:00
2019-06-18 21:16:27 +08:00
.markdown-section {
2019-07-18 19:23:22 +08:00
max-width: 80%;
margin-top: 50px;
2019-06-18 21:16:27 +08:00
}
2018-12-25 16:04:58 +08:00
.markdown-section a {
2019-05-05 11:41:35 +08:00
color: var(--theme-color, #42b983);
2018-12-25 16:04:58 +08:00
}
.markdown-section iframe[src*="buttons.github.io"] {
margin: 0;
}
2019-03-15 22:00:25 +08:00
/* en */
2019-05-05 11:41:35 +08:00
body[data-page="index.md"] article.markdown-section {
2019-07-18 19:23:22 +08:00
max-width: 80%;
margin-top: 50px;
2019-03-15 22:00:25 +08:00
}
2019-05-05 11:41:35 +08:00
body[data-page="index.md"] article.markdown-section .item {
2019-03-15 22:00:25 +08:00
width: 150px;
margin-right: 10px;
2019-07-12 17:25:35 +08:00
margin-top: 10px;
2019-07-12 19:10:54 +08:00
margin-bottom: 10px;
2019-03-15 22:00:25 +08:00
display: inline-block;
position:relative;
2019-07-18 19:23:22 +08:00
cursor: pointer;
transition: box-shadow 0.3s;
text-decoration:none;
2019-03-15 22:00:25 +08:00
}
2019-05-05 11:41:35 +08:00
body[data-page="index.md"] article.markdown-section p.item-title {
2019-03-15 22:00:25 +08:00
text-align: center;
margin-top: 10px;
margin-bottom: 10px;
2019-03-15 22:00:25 +08:00
}
/* zh_CN */
body[data-page="zh_CN/README.md"] article.markdown-section {
2019-07-18 19:23:22 +08:00
max-width: 80%;
margin-top: 50px;
2019-03-15 22:00:25 +08:00
}
body[data-page="zh_CN/README.md"] article.markdown-section .item {
width: 150px;
margin-right: 10px;
2019-07-12 17:25:35 +08:00
margin-top: 10px;
2019-07-12 19:10:54 +08:00
margin-bottom: 10px;
2019-03-15 22:00:25 +08:00
display: inline-block;
position:relative;
transition: box-shadow 0.3s;
2019-07-18 19:23:22 +08:00
/* box-shadow: 5px 5px 5px #888888; */
2019-03-15 22:00:25 +08:00
}
.item a{
color: black;
text-decoration: none;
}
.item a:hover{
text-decoration: none;
}
2019-03-15 22:00:25 +08:00
body[data-page="zh_CN/README.md"] article.markdown-section p.item-title {
text-align: center;
2019-07-12 17:25:35 +08:00
margin-top: 10px;
margin-bottom: 10px;
/* background-color: #007BFF;
color: white; */
2019-03-15 22:00:25 +08:00
}
/* ja */
body[data-page="ja/README.md"] article.markdown-section {
2019-07-18 19:23:22 +08:00
max-width: 80%;
2019-03-15 22:00:25 +08:00
}
body[data-page="ja/README.md"] article.markdown-section .item {
width: 150px;
margin-right: 10px;
display: inline-block;
}
body[data-page="ja/README.md"] article.markdown-section p.item-title {
text-align: center;
}
2018-12-25 16:04:58 +08:00
figure.thumbnails img {
margin: 0.75em 0;
border-radius: 3px;
2019-05-05 11:41:35 +08:00
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.15);
2018-12-25 16:04:58 +08:00
}
@media (min-width: 30em) {
figure.thumbnails:after {
content: "";
display: table;
clear: both;
}
figure.thumbnails img {
float: left;
width: calc(50% - 0.75em);
}
figure.thumbnails img:nth-child(even) {
margin-left: 1.5em;
}
@supports (display: flex) {
figure.thumbnails {
display: flex;
align-items: center;
}
figure.thumbnails img {
flex-grow: 1;
width: 0;
}
2019-05-05 11:41:35 +08:00
figure.thumbnails img+img {
2018-12-25 16:04:58 +08:00
margin: 0 0 0 1.5em;
}
}
2019-04-12 21:37:04 +08:00
}
2019-04-16 16:18:13 +08:00
#core {
2019-04-15 11:23:11 +08:00
width: 0;
height: 0;
overflow: hidden;
margin: 0;
}
2019-05-05 11:41:35 +08:00
body[data-page="index.md"] #basic,
body[data-page="zh_CN/README.md"] #basic,
body[data-page="ja/README.md"] #basic {
2019-04-15 11:23:11 +08:00
width: 0;
height: 0;
overflow: hidden;
margin: 0;
}
2019-05-05 11:41:35 +08:00
body[data-page="index.md"] #gray,
body[data-page="zh_CN/README.md"] #gray,
body[data-page="ja/README.md"] #gray {
2019-04-15 11:23:11 +08:00
width: 0;
height: 0;
overflow: hidden;
margin: 0;
}
2019-05-05 11:41:35 +08:00
body[data-page="index.md"] #fire,
body[data-page="zh_CN/README.md"] #fire,
body[data-page="ja/README.md"] #fire {
2019-04-16 16:18:13 +08:00
width: 0;
height: 0;
overflow: hidden;
margin: 0;
}
2019-05-05 11:41:35 +08:00
body[data-page="index.md"] #m5stickc,
body[data-page="zh_CN/README.md"] #m5stickc,
body[data-page="ja/README.md"] #m5stickc {
2019-04-16 16:18:13 +08:00
width: 0;
height: 0;
overflow: hidden;
margin: 0;
}
2019-07-08 17:36:23 +08:00
2019-07-08 17:56:51 +08:00
body[data-page="index.md"] #m5stickv,
body[data-page="zh_CN/README.md"] #m5stickv,
body[data-page="ja/README.md"] #m5stickv {
2019-07-08 17:36:23 +08:00
width: 0;
height: 0;
overflow: hidden;
margin: 0;
}
2019-05-05 11:41:35 +08:00
body[data-page="index.md"] #m5stick,
body[data-page="zh_CN/README.md"] #m5stick,
body[data-page="ja/README.md"] #m5stick {
2019-04-16 16:18:13 +08:00
width: 0;
height: 0;
overflow: hidden;
margin: 0;
}
2019-05-05 11:41:35 +08:00
body[data-page="index.md"] #m5go-lite,
body[data-page="zh_CN/README.md"] #m5go-lite,
body[data-page="ja/README.md"] #m5go-lite {
2019-04-16 16:18:13 +08:00
width: 0;
height: 0;
overflow: hidden;
margin: 0;
}
2019-05-05 11:41:35 +08:00
body[data-page="index.md"] #m5go-kit,
body[data-page="zh_CN/README.md"] #m5go-kit,
body[data-page="ja/README.md"] #m5go-kit {
2019-04-16 16:18:13 +08:00
width: 0;
height: 0;
overflow: hidden;
margin: 0;
}
2019-05-05 11:41:35 +08:00
body[data-page="index.md"] #faces-kit,
body[data-page="zh_CN/README.md"] #faces-kit,
body[data-page="ja/README.md"] #faces-kit {
2019-04-12 21:37:04 +08:00
width: 0;
height: 0;
overflow: hidden;
margin: 0;
}
2019-05-05 11:41:35 +08:00
#module,
#gps,
#lora,
#lorawan,
#sim800l,
#commu,
#battery,
#proto,
2019-05-16 20:44:00 +08:00
#proto-kit,
2019-05-05 11:41:35 +08:00
#plus,
#usb,
#bus,
2019-05-10 14:01:55 +08:00
#goplus,
2019-05-05 11:41:35 +08:00
#stepmotor,
#servo,
2019-05-16 20:44:00 +08:00
#lego_plus,
2019-05-05 11:41:35 +08:00
#encoder,
2019-06-06 11:40:24 +08:00
#joystick-1,
#fan ,
#faces-rfid,
#faces-finger{
2019-04-12 21:37:04 +08:00
width: 0;
height: 0;
overflow: hidden;
margin: 0;
padding: 0;
}
2019-05-05 11:41:35 +08:00
#base,
#lan,
#node,
#btc,
#plc,
#core-bottom,
#m5go-bottom,
#m5go-rfid,
2019-05-20 14:59:38 +08:00
#m5go-charger,
2019-06-06 21:34:35 +08:00
#pm2_5,
#base15,
#base26 {
2019-04-12 21:37:04 +08:00
width: 0;
height: 0;
overflow: hidden;
margin: 0;
padding: 0;
}
2019-05-05 11:41:35 +08:00
#unit,
#esp32cam,
#m5camera,
#m5cameraf,
2019-05-23 10:35:12 +08:00
#m5camerax,
2019-05-05 11:41:35 +08:00
#env,
#earth,
#light,
#angle,
#ir,
#pir,
#ncir,
#thermal,
#button,
#dual-button,
#joystick,
#cardkb,
#color,
#tof,
#heart,
#rfid,
#adc,
#dac,
#makey,
#rgb,
#relay,
#hub,
2019-05-10 18:22:09 +08:00
#pahub,
#pbhub,
2019-05-05 11:41:35 +08:00
#_396port,
#proto-1,
#extio,
#rs485,
#gps-1,
#finger,
#weight,
#trace,
2019-06-06 10:14:55 +08:00
#rgb_led,
2019-05-05 11:41:35 +08:00
#catear,
#hex,
#neoflash,
2019-05-10 14:01:55 +08:00
#butterfly,
#pahub,
2019-05-23 11:27:02 +08:00
#pbhub,
#m5-bit,
#vibrator-motor,
#unit-fan,
#op90,
#op180,
2019-07-02 17:28:25 +08:00
#accel,
#laser-rx,
#laser-tx,
#mini-proto {
2019-04-12 21:37:04 +08:00
width: 0;
height: 0;
overflow: hidden;
margin: 0;
padding: 0;
}
2019-05-05 11:41:35 +08:00
body[data-page="index.md"] #application {
width: 0;
height: 0;
overflow: hidden;
margin: 0;
}
body[data-page="zh_CN/README.md"] #application {
width: 0;
height: 0;
overflow: hidden;
margin: 0;
}
body[data-page="ja/README.md"] #application {
width: 0;
height: 0;
overflow: hidden;
margin: 0;
}
2019-05-05 11:41:35 +08:00
#bala,
2019-05-20 21:05:04 +08:00
#m5iotkit,
2019-05-05 11:41:35 +08:00
#lidarbot,
#piano,
2019-05-17 17:04:13 +08:00
#flir,
2019-05-30 09:31:19 +08:00
#demo-board {
2019-04-12 21:37:04 +08:00
width: 0;
height: 0;
overflow: hidden;
margin: 0;
padding: 0;
}
2019-05-05 11:41:35 +08:00
#accessory,
#grove-t,
#grove-cable,
2019-05-10 14:01:55 +08:00
#screw,
2019-05-16 20:44:00 +08:00
#grove2grove,
2019-05-28 18:05:02 +08:00
#bus-socket,
#frame {
2019-05-16 20:44:00 +08:00
width: 0;
height: 0;
overflow: hidden;
margin: 0;
padding: 0;
}
2019-06-06 21:34:35 +08:00
#hat,
#hat-env,
#hat-pir,
2019-06-27 11:48:14 +08:00
#hat-spk,
#hat-proto,
#hat-ncir,
2019-07-02 17:28:25 +08:00
#hat-thermal,
#hat-adc,
#hat-dac,
#hat-rs485 {
2019-06-06 21:34:35 +08:00
width: 0;
height: 0;
overflow: hidden;
margin: 0;
padding: 0;
}
2019-05-16 20:44:00 +08:00
#tools,
#usb-downloader,
#usb-isp {
width: 0;
height: 0;
overflow: hidden;
margin: 0;
padding: 0;
}
2019-07-18 19:23:22 +08:00
#aluminium,
2019-05-16 20:44:00 +08:00
#aluminium-profile,
2019-05-22 11:47:28 +08:00
#aluminium-profile-1515,
2019-05-16 20:44:00 +08:00
#nut,
2019-05-22 11:47:28 +08:00
#connector,
2019-05-16 20:44:00 +08:00
#corner {
2019-04-12 21:37:04 +08:00
width: 0;
height: 0;
overflow: hidden;
margin: 0;
padding: 0;
2019-05-05 11:41:35 +08:00
}
2019-07-18 19:23:22 +08:00
/* .mask {
position: absolute;
top: 0;
left: 0;
width: 150px;
height: 150px;
background: rgba(0, 0, 0, 0.7);
color: #ffffff;
opacity: 0;
}
.mask h3 {
text-align: center;
}
.item a:hover .mask {
2019-07-18 19:23:22 +08:00
opacity: 1;
} */
.product_list div.btn-group-vertical {
display: none;
}
.product_list:hover div.btn-group-vertical {
position: fixed;
display: block;
margin: 0px;
z-index: 9999;
}
.item:hover {
/* box-shadow: 5px 5px 5px #888888; */
box-shadow: 0px 0px 10px #888888;
}
main>.content {
margin: 0px;
}
.banner {
width: 300px;
margin-right: 10px;
margin-left: 20px;
margin-top: 10px;
margin-bottom: 10px;
display: inline-block;
position:relative;
box-shadow: 5px 5px 5px #888888;
cursor: pointer;
transition: all 0.1s;
}
div.card-img-overlay{
background-color: rgba(0, 0, 0, 0.6);
}
div.card-img-overlay:hover{
background-color: rgba(0, 0, 0, 0.25);
color:blue !important;
}
.banner div.card-img-overlay h4{
font-size: 3em;
color: #fff;
}
.banner div.card-img-overlay:hover h4{
display: none;
}
.banner:hover {
transform: scale(1.1);
z-index: 1;
}
2019-07-22 21:11:52 +08:00
.d-flex{
z-index: 9999;
position: fixed;
top: 0;
right: 0;
left: 0;
}
2019-07-18 19:23:22 +08:00
.btn-toggle {
display: none;
}
2019-07-22 21:11:52 +08:00
.back_top{
position: fixed;
right: 150px;
bottom: 150px;
}
2019-07-18 19:23:22 +08:00
@media screen and (max-width: 768px){
.d-flex {
display: none !important;
}
.d-flex.open {
display: block !important;
position: fixed;
top: 50px;
right: 0;
width: 50%;
background-color: white;
z-index: 9999;
left: inherit;
}
.d-flex.open>h5 {
display: none;
}
.d-flex.open nav a {
display: block;
}
.btn-toggle {
display: block;
position: fixed;
right: 0;
top: 0;
width: 50px;
height: 50px;
z-index: 9999;
}
.btn-toggle::before, .btn-toggle::after {
content: "";
position: absolute;
transition: all .25s ease;
width: 30px;
height: 2px;
background-color: gray;
}
.btn-toggle::before {
top: 10px;
left: 10px;
box-shadow: 0 12px 0 gray;
}
.btn-toggle::after {
top: 34px;
left: 10px;
}
.btn-toggle.open::before {
top: 25px;
left: 10px;
transform: rotate(45deg);
box-shadow: none;
}
.btn-toggle.open::after {
top: 25px;
left: 10px;
transform: rotate(-45deg);
}
body[data-page="index.md"] article.markdown-section {
max-width: 80%;
margin-top: 0px;
}
body[data-page="zh_CN/README.md"] article.markdown-section {
max-width: 80%;
margin-top: 0px;
}
2019-07-22 21:11:52 +08:00
.markdown-section {
max-width: 100%;
margin-top: 50px;
}
2019-07-18 19:23:22 +08:00
.banner div.card-img-overlay h4{
font-size: 2em;
color: #fff;
text-align: center;
}
.banner {
margin-left: 0px;
}
2019-07-22 21:11:52 +08:00
.back_top{
position: fixed;
right: 10px;
bottom: 150px;
}
2019-07-18 19:23:22 +08:00
}