Daniel@0: @import "../config.less"; Daniel@0: Daniel@0: .notification { Daniel@0: position: relative; Daniel@0: padding-top: 10px; Daniel@0: cursor: default; Daniel@0: z-index: @z-index_notifications + 1; Daniel@0: Daniel@0: Daniel@0: &_state_pre-shown { Daniel@0: } Daniel@0: Daniel@0: &_state_shown { Daniel@0: } Daniel@0: Daniel@0: &_state_pre-hidden { Daniel@0: Daniel@0: } Daniel@0: Daniel@0: &_state_hidden { Daniel@0: Daniel@0: } Daniel@0: Daniel@0: // ================================== Daniel@0: &__body { Daniel@0: .font_small(); Daniel@0: Daniel@0: position: absolute; Daniel@0: bottom: 0; Daniel@0: right: 0; Daniel@0: Daniel@0: background: #eee; Daniel@0: border: 1px solid #ccc; Daniel@0: border-top-left-radius: @--border-radius; Daniel@0: border-bottom-left-radius: @--border-radius; Daniel@0: width: @notification--width; Daniel@0: z-index: @z-index_notifications + 2; Daniel@0: } Daniel@0: Daniel@0: &_state_shown &__body { Daniel@0: } Daniel@0: Daniel@0: // ================================== Daniel@0: &__closer { Daniel@0: position: absolute; Daniel@0: right: 0; Daniel@0: top: 0; Daniel@0: bottom: 0; Daniel@0: width: @notification--closer-width; Daniel@0: Daniel@0: background: #F5F5F5; Daniel@0: color: #ccc; Daniel@0: cursor: default; Daniel@0: z-index: @z-index_notifications + 3; Daniel@0: } Daniel@0: &__closer::before { Daniel@0: content: "x"; Daniel@0: display: block; Daniel@0: margin-top: 6px; Daniel@0: text-align: center; Daniel@0: } Daniel@0: &__closer:hover { Daniel@0: color: #999; Daniel@0: background: #fff; Daniel@0: } Daniel@0: // ttl = time to live Daniel@0: &_ttl_5 &__closer::before {content: "5"} Daniel@0: &_ttl_4 &__closer::before {content: "4"} Daniel@0: &_ttl_3 &__closer::before {content: "3"} Daniel@0: &_ttl_2 &__closer::before {content: "2"} Daniel@0: &_ttl_1 &__closer::before {content: "1"} Daniel@0: &_ttl_0 &__closer::before {content: "0"} Daniel@0: Daniel@0: &_ttl-frozen:hover &__closer::before { Daniel@0: content: "x" !important; Daniel@0: } Daniel@0: Daniel@0: // Things look differently for warning messages Daniel@0: &_type_warning &__body { Daniel@0: background: #FFEED0; Daniel@0: } Daniel@0: &_type_warning &__closer { Daniel@0: background: #FFF8F5; Daniel@0: } Daniel@0: &_type_warning &__closer:hover { Daniel@0: color: #CA9; Daniel@0: } Daniel@0: Daniel@0: // Things look differently for error messages Daniel@0: &_type_error &__body { Daniel@0: background: #FFD5D5; Daniel@0: } Daniel@0: &_type_error &__closer { Daniel@0: background: #FFF5F5; Daniel@0: } Daniel@0: &_type_error &__closer:hover { Daniel@0: color: #C88; Daniel@0: } Daniel@0: Daniel@0: // ================================== Daniel@0: &__content { Daniel@0: padding: 6px 10px; Daniel@0: margin-right: @notification--closer-width; Daniel@0: } Daniel@0: Daniel@0: &_no-padding &__content { Daniel@0: padding: 0px; Daniel@0: } Daniel@0: Daniel@0: &__content b { Daniel@0: font-weight: bold; Daniel@0: } Daniel@0: }