theme_nin/sass/layout/_modal.sass

283 lines
4.5 KiB
Sass
Raw Normal View History

2015-07-27 12:15:24 +02:00
/*********** POPUP MODAL **************/
// vars modal
$header-modal-height : $menu-height
2015-07-31 10:58:25 +02:00
// style
.modal-blackout
display: none
2015-07-27 12:15:24 +02:00
.modal-wrapper
2015-07-28 10:40:52 +02:00
background: $bloc-background-color
2015-08-03 19:36:37 +02:00
z-index: 100
2015-07-31 10:58:25 +02:00
width: 34%
2015-07-27 12:15:24 +02:00
position: fixed
+box-sizing(border-box)
@extend .box-shadow
2015-07-27 14:53:52 +02:00
height: 100vh
2015-07-27 12:15:24 +02:00
right: 0
bottom: 0
overflow: hidden
2015-07-31 10:58:25 +02:00
+box-shadow(-8px 0 13px rgba(#111, 0.2))
2015-08-01 22:52:31 +02:00
+transition-property(top, bottom)
+transition-duration(1s)
&.remove
bottom: 300%
2015-07-31 10:58:25 +02:00
// NEW USER MODAL //
2015-07-27 12:15:24 +02:00
2015-07-31 10:58:25 +02:00
&.new-user
2015-07-27 12:15:24 +02:00
2015-07-31 10:58:25 +02:00
.modal-content
padding: 25px
.modal-close
display: none
.text
margin: 0 0 15px 0
.emphasis
text-align: center
.secret-key
display: block
margin-top: 8px
color: rgba(0.5, 0, 0, 1)
font-weight: bold
font-size: 80%
2015-07-31 10:58:25 +02:00
// FOLOWING MODAL //
&.following-modal
h2
display: none
.mini-following-info
border-bottom: 1px solid $main-background-color
line-height: $mini-usr-img
a
display: block
padding: 10px
width: 100%
@extend .clear-fix
color: $defaut-font-color
background: $bloc-light-color
&:hover
background: white
text-decoration: none
font-weight: 500
.mini-profile-photo
width: $mini-usr-img
min-height: $mini-usr-img
overflow-x: hidden
line-height: 0
margin: 0 $space 0 0
float: left
.mini-following-name
&:after
line-height: 20px
.mini-screen-name
display: none
&.who-to-follow-modal
a
color: $main-color-dark
&.twister-user-name
&:hover
text-decoration: none
.twister-user-info
text-align: left
font-size: .8rem
line-height: 1rem
width: 80%
padding-left: $mini-usr-img + 20
button
position: absolute
right: 10px
top: 10px
@extend .small
.bio
color: rgba(0, 0, 0, 0.6)
font-style: italic
padding: .25rem 0
.modal-content
width: 100%
@extend .clear-fix
overflow: hidden
overflow-y: auto
.postboard
padding: 0
clear: none!important
position: relative
width: 100%
margin: auto
h2
display: block
span
display: none
.postboard-news
position: fixed
display: block
right: 2px
top: $header-modal-height +2
z-index: 2000
@extend .color-1
2016-11-27 19:03:31 +05:00
&.new-users-modal
a
color: $main-color-dark
&.twister-user-name
&:hover
text-decoration: none
.twister-user-info
text-align: left
font-size: .8rem
line-height: 1rem
width: 80%
padding-left: $mini-usr-img + 20
button
position: absolute
right: 10px
top: 10px
@extend .small
.bio
color: rgba(0, 0, 0, 0.6)
font-style: italic
padding: .25rem 0
2015-07-27 12:15:24 +02:00
.modal-header
position: relative
2015-07-31 10:58:25 +02:00
background: darken($main-color-dark,.3)
2015-07-27 14:53:52 +02:00
height: $header-modal-height
2015-07-27 12:15:24 +02:00
+box-sizing(border-box)
@extend .clear-fix
h3
padding-left: 20px
line-height: $header-modal-height
font-weight: 500
font-size: 1rem
2015-08-03 16:20:22 +02:00
float: left
2015-07-27 12:15:24 +02:00
color: white
2015-08-10 13:43:22 +02:00
span
position: relative
2015-07-27 17:11:18 +02:00
span
2015-08-01 22:52:31 +02:00
@extend .ion
2015-07-27 17:11:18 +02:00
position: absolute
top: 0
line-height: $header-modal-height
font-size: 1rem
cursor: pointer
color: rgba(white , 0.7)
transition: color .1s linear
&:hover
color: white
2015-07-27 12:15:24 +02:00
2015-07-27 17:11:18 +02:00
b
display: none
2015-07-27 12:15:24 +02:00
2015-07-27 17:11:18 +02:00
&.modal-close
2015-08-01 22:52:31 +02:00
@extend .ion-close
2015-07-27 17:11:18 +02:00
right: 10px
&.mark-all-as-read
2015-08-01 22:52:31 +02:00
@extend .ion-checkmark
2015-08-03 16:20:22 +02:00
position: static
float: left
margin-left: 10px
display: none
2015-07-27 17:11:18 +02:00
&.modal-back
2015-08-01 22:52:31 +02:00
@extend .ion-back
2016-01-28 09:24:29 +01:00
right: 70px
2015-07-27 12:15:24 +02:00
2015-07-31 10:58:25 +02:00
/* Composants */
2015-07-27 12:15:24 +02:00
2015-07-31 10:58:25 +02:00
.twister-user
position: relative
box-sizing: border-box
2015-07-28 13:14:22 +02:00
background: $bloc-light-color
2015-07-31 10:58:25 +02:00
@extend .clear-fix
2015-08-01 22:52:31 +02:00
border-bottom: 1px solid $main-background-color
2015-07-31 10:58:25 +02:00
width: 100%
min-height: auto
padding: 7px
clear: left
2015-08-01 22:52:31 +02:00
&:first-child
border-top: 1px solid $main-background-color
border-bottom: 1px solid $main-background-color !important
&:last-child
border-bottom: 0
small
display: none
2015-07-27 12:15:24 +02:00
2016-01-28 09:24:29 +01:00
/* Minimized */
.minimize-modal
@extend .ion
@extend .ion-minus
position: absolute
top: 0
line-height: $header-modal-height
font-size: 1rem
cursor: pointer
color: rgba(white , 0.7)
transition: color .1s linear
right: 35px!important
&:hover
color: white
b
display: none
#modals-minimized
position: fixed
z-index: 2000
left: 0
bottom: 0
width: $leftWidth
text-align: right
li
background: $dark-grey
cursor: pointer
margin-right: 10px
font-weight: 600
font-size: .8rem
2016-01-28 16:46:49 +01:00
padding: .5rem
2016-01-28 09:24:29 +01:00
margin-bottom: 10px
color: rgba(white, .8)
+transition(margin .2s)
&:hover
color: white
margin-right: 0
2015-07-31 10:58:25 +02:00
/*********** POPUP PROMPT *************/
2015-07-27 12:15:24 +02:00
2015-07-31 10:58:25 +02:00
@import '_prompt'
2015-07-27 12:15:24 +02:00
2015-07-27 17:11:18 +02:00
/********* DIRECT MESSAGES MODAL ***********/
2015-07-27 12:15:24 +02:00
2015-07-27 17:11:18 +02:00
@import '_dm'
2015-07-27 12:15:24 +02:00