orbit_demo_new_old4/assets/stylesheets/template/template.scss

506 lines
10 KiB
SCSS

@import url("http://fonts.googleapis.com/css?family=Droid+Sans:400,700");
// Base
@import "base/orbitbar-override";
@import "base/sitemap-override";
@import "base/global";
@import "base/unity";
@import "base/utilities";
@import "base/pagination";
@import "base/accesskey";
@import "base/go_back_top";
@import "base/ckeditor-reset";
// Layout
@import "layout/*";
// Modules
@import "modules/*";
// Widget
@import "widget/*";
//RWD
@import "RWD";
.dropdown-toggle:focus {
// outline: 2px solid #43B5FC;
outline: transparent;
}
.container{
margin: auto;
}
.layout-content{
.response-container{
@media (min-width: 769px)and(max-width: 820px) {
width: 768px!important;
}
}
}
// container setting
.response-container {
position: relative;
margin: auto;
@media (max-width: $screen-xs) {
width: 100%;
}
@media (min-width: $screen-sm) {
width: 100%;
}
@media (min-width: $screen-md) {
width: 100%;
}
@media (min-width: $screen-lg) {
max-width:1200px;
padding: 0;
}
}
.dropdowns{
@media (min-width: $screen-md) {
margin: auto;
}
}
.header-buttom{
@media (min-width: $screen-md) {
padding: 12px 0;
}
}
.background {
width: 100%;
left: 0;
top: 30px;
z-index: -1;
}
.extra { clear: both; }
//公告頁籤
ul.tab_nav {
list-style-type: none;
padding: 0;
display: flex;
flex-wrap: wrap;
justify-content: center;
font-family: $main-font;
li {
list-style: none;
position: relative;
padding: 0.5em 1em;
margin: 0.2em;
cursor: pointer;
transition: all 0.5s;
-moz-transition: all 0.5s;
-webkit-transition: all 0.5s;
-o-transition: all 0.5s;
color: #5e5e5e;
background: none;
border-radius: 0;
border: none;
@media(max-width:$screen-xs){
width: 130px;
text-align: center;
}
&:before,
&:after{
content:'';
position:absolute;
top:0;
right:0;
height:2px;
width:0;
background: $theme-color-second;
transition: all 0.3s;
}
&:after{
right:inherit;
top:inherit;
left:0;
bottom:2px;
}
&:hover{
color: $theme-color-second;
background: transparent;
box-shadow:none;
&:after,&:before{
width:100%;
transition: all 0.3s;
}
}
&.active {
color: $theme-color-second;
background: none;
&:before,
&:after{
width:100%;
transition: all 0.3s;
}
}
}
}
.noscroll { overflow: hidden; position: fixed; }
//覆蓋bootstrap 設定
.row { margin: 0; }
.container>.navbar-collapse {
@media (max-width: 767px) {
margin-left: 0;
margin-right: 0;
}
}
//共用樣式
.title {
@extend .unity-title;
}
.superBtn {
a.btn-primary {
color: $theme-white;
border-color: #990000;
background-color: #990000;
font-size: 0.8125rem;
padding: 0.3em 0.5em;
&:hover {
background-color: darken(#990000, 10%);
border-color: darken(#990000, 10%);
}
}
}
.video_data{
width: 100%;
}
.black-screen-social-window.reactable.right .content-social .social_wrap > div{
background-color: #ffffffc2;
}
.black-screen-social-window.reactable .content-social .social_wrap span{
padding: 0.5em;
}
.black-screen-social-window .content-social .social_wrap i{
font-size: 2em;
}
.black-screen-social-window.reactable .content-social .social_wrap > div{
width: 3.3em;
line-height: unset;
}
.black-screen-social-window.reactable .content-social .social_wrap > div:hover, .black-screen-social-window.reactable .content-social .social_wrap > div.hover-class{
border-radius: 30px 0 0 30px;
background: #fff;
}
.hide_sharer_button{
width: 1.65em;
}
.black-screen-social-window.reactable .content-social .social_wrap i, .black-screen-social-window.reactable .content-social .social_wrap img{
margin-right: 0.5em;
padding-bottom:0;
}
.black-screen-social-window{
min-width: fit-content;
}
.table-bordered{
border: 0;
}
.internal-page{
table{
tr{
@media(max-width:$screen-xs){
display: flex;
flex-wrap: wrap;
width: 100%;
}
}
td,th{
@media(max-width: $screen-xs){
width:100%;
}
}
}
}
//td有rwd
#tdstyle1{
tr{
&:nth-child(even){
background-color:#e0e5eb;
}
}
tr{
@media(max-width: $screen-xs){
display: flex;
flex-wrap: wrap;
width: 100%!important;
}
}
td,th{
@media(max-width: $screen-xs){
width:100%!important;
}
}
}
//td無rwd
#tdstyle2{
table td{
border: 1px solid #ddd!important;
@media (max-width: 480px) {
width: auto;
}
}
td,th{
@media(max-width: $screen-xs){
width: auto ;
}
}
tr{
display: table-row;
}
}
//td有rwd灰底色
#tdstyle3{
tr{
background: #efefef !important;
margin-bottom: 10px;
border: 1px solid #ccc;
}
td{
border-bottom: #cacaca 1px solid !important;
}
}
//td無rwd跳色
#tdstyle4{
table td{
border: 1px solid #ddd!important;
@media (max-width: 480px) {
width: auto;
}
}
td,th{
@media(max-width: $screen-xs){
width: auto ;
}
}
tr{
display: table-row;
}
tr{
&:nth-child(even){
background-color:#e0e5eb;
}
}
}
// //取消內頁tdrwd可加在內頁編輯
// .internal-page table td{
// border: 1px solid #ddd!important;
// @media (max-width: 480px) {
// width: auto !important;
// }
// }
// tr{
// display: table-row!important;
// }
table.dataTable>tbody>tr.child{
padding:0;
}
#orbit_calendar{
width: 100% !important;
}
//預約系統
.fc-direction-ltr .fc-daygrid-event .fc-event-time{
white-space: nowrap;
}
.fc-daygrid-dot-event .fc-event-title{
white-space: nowrap;
}
.fc .fc-daygrid-event{
margin-top: 4px;
}
.modal-content{
box-shadow: 0 24px 38px 3px #00000024, 0 9px 46px 8px #0000001f, 0 11px 15px -7px #00000033;
border-radius: 8px;
border: 0;
}
.fc .fc-daygrid-day.fc-day-today{
background-color:transparent!important;
.fc-daygrid-day-number{
color: #fff;
background-color: #858585;
border-radius: 0.65em;
}
}
.calendar-modal .event_summary{
font-size: 1.2em;
letter-spacing: 1px;
}
.calendar-modal > .modal-content h3{
font-weight: bold;
}
.fc .fc-daygrid-event-harness{
font-weight: bold;
}
.fc .fc-daygrid-day-number{
margin-top: 0.3em;
}
.table-striped{
a.btn-primary{
margin: 0;
}
}
.form-horizontal .form-group{
margin-right: 0;
margin-left: 0;
}
#calendar{
td{
border: 1px solid #dee2e6;
}
@media(max-width: $screen-xs){
tr{
display: table-row!important;
}
}
}
.w-calendar{
@media(max-width: $screen-xs){
tr{
display: table-row!important;
}
}
}
//動畫往上
.hide0{
opacity: 0;
-webkit-transform: translateY(15%) translateZ(0);
-moz-transform: translateY(15%) translateZ(0);
-o-transform: translateY(15%) translateZ(0);
-ms-transform: translateY(15%) translateZ(0);
transform: translateY(15%) translateZ(0);
-webkit-transition: transform 0.8s ease-out, opacity 0.4s ease;
-moz-transition: transform 0.8s ease-out, opacity 0.4s ease;
-o-transition: transform 0.8s ease-out, opacity 0.4s ease;
-ms-transition: transform 0.8s ease-out, opacity 0.4s ease;
transition: transform 0.8s ease-out, opacity 0.4s cubic-bezier(0.63, 0.01, 0, 1.02);
}
.animationvisible{
opacity: 1;
-webkit-transform: translateY(0) translateZ(0);
-moz-transform: translateY(0) translateZ(0);
-o-transform: translateY(0) translateZ(0);
-ms-transform: translateY(0) translateZ(0);
transform: translateY(0) translateZ(0);
}
//動畫往右
.hide1{
opacity: 0;
transform: translate3d(-120px, 0, 0);
-webkit-transition: transform 0.8s ease-out, opacity 0.4s ease;
-moz-transition: transform 0.8s ease-out, opacity 0.4s ease;
-o-transition: transform 0.8s ease-out, opacity 0.4s ease;
-ms-transition: transform 0.8s ease-out, opacity 0.4s ease;
transition: transform 0.8s ease-out, opacity 0.4s cubic-bezier(0.63, 0.01, 0, 1.02);
}
.animationvisible1{
opacity: 1;
transform: translateZ(0);
}
// 動畫往左
.hide2{
opacity: 0;
transform: translate3d(120px, 0, 0);
-webkit-transition: transform 0.8s ease-out, opacity 0.4s ease;
-moz-transition: transform 0.8s ease-out, opacity 0.4s ease;
-o-transition: transform 0.8s ease-out, opacity 0.4s ease;
-ms-transition: transform 0.8s ease-out, opacity 0.4s ease;
transition: transform 0.8s ease-out, opacity 0.4s cubic-bezier(0.63, 0.01, 0, 1.02);
}
.animationvisible2{
opacity: 1;
transform: translatez(0);
}
// 動畫往下
.hide3{
opacity: 0;
transform: translate3d(0, -100px, 0);
-webkit-transition: transform 0.8s ease-out, opacity 0.4s ease;
-moz-transition: transform 0.8s ease-out, opacity 0.4s ease;
-o-transition: transform 0.8s ease-out, opacity 0.4s ease;
-ms-transition: transform 0.8s ease-out, opacity 0.4s ease;
transition: transform 0.8s ease-out, opacity 0.4s cubic-bezier(0.63, 0.01, 0, 1.02);
}
.animationvisible3{
opacity: 1;
transform: translatez(0);
}
//動畫選轉
.rotate0{
transform: perspective(2500px) rotateY(-100deg);
overflow: hidden;
position: relative;
}
.animationrotate0{
transform: perspective(2500px) rotateY(0);
transition-timing-function: ease;
transition-duration: 1s;
}
// 放大
.zoomin{
opacity: 0;
transform: scale(.6);
-webkit-transition: transform 0.8s ease-out, opacity 0.4s ease;
-moz-transition: transform 0.8s ease-out, opacity 0.4s ease;
-o-transition: transform 0.8s ease-out, opacity 0.4s ease;
-ms-transition: transform 0.8s ease-out, opacity 0.4s ease;
transition: transform 0.8s ease-out, opacity 0.4s cubic-bezier(0.63, 0.01, 0, 1.02);
}
.animationvisible5{
opacity: 1;
transform: translatez(0) scale(1);
}
//研討會
.seminar-index,.survey-index,.application_form-index{
th{
white-space: nowrap;
@media(max-width: $screen-xs){
width: 100%;
}
}
}
input.search_box{
background: #fff!important;
border: 1px solid #bbb!important;
border-radius: 0!important;
color: #333!important;
}
::placeholder {
color: #333!important;
}
#category_select_box{
background: #fff!important;
color: #333!important;
border-radius: 0!important;
margin-right: 0.5em!important;
}
#category_select_box>option{
background: #fff!important;
color: #333!important;
}
.search_widget{
padding-top: 1em;
}
.flexwrap{
display: flex;
flex-wrap: wrap;
}
.flexreverse{
@media(max-width: 768px){
display: flex;
flex-wrap: wrap-reverse!important;
}
}