Change design of compose form in web UI (#28119)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
		
					parent
					
						
							
								42ab855b23
							
						
					
				
			
			
				commit
				
					
						6936e5aa69
					
				
			
		
					 71 changed files with 1574 additions and 1790 deletions
				
			
		|  | @ -1,20 +1,7 @@ | |||
| .compose-form { | ||||
|   .compose-form__modifiers { | ||||
|     .compose-form__upload { | ||||
|       &-description { | ||||
|         input { | ||||
|           &::placeholder { | ||||
|             opacity: 1; | ||||
|           } | ||||
|         } | ||||
|       } | ||||
|     } | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| .status__content a, | ||||
| .link-footer a, | ||||
| .reply-indicator__content a, | ||||
| .edit-indicator__content a, | ||||
| .link-footer a, | ||||
| .status__content__read-more-button, | ||||
| .status__content__translate-button { | ||||
|   text-decoration: underline; | ||||
|  | @ -42,7 +29,9 @@ | |||
|   } | ||||
| } | ||||
| 
 | ||||
| .status__content a { | ||||
| .status__content a, | ||||
| .reply-indicator__content a, | ||||
| .edit-indicator__content a { | ||||
|   color: $highlight-text-color; | ||||
| } | ||||
| 
 | ||||
|  | @ -50,24 +39,10 @@ | |||
|   color: $darker-text-color; | ||||
| } | ||||
| 
 | ||||
| .compose-form__poll-wrapper .button.button-secondary, | ||||
| .compose-form .autosuggest-textarea__textarea::placeholder, | ||||
| .compose-form .spoiler-input__input::placeholder, | ||||
| .report-dialog-modal__textarea::placeholder, | ||||
| .language-dropdown__dropdown__results__item__common-name, | ||||
| .compose-form .icon-button { | ||||
| .report-dialog-modal__textarea::placeholder { | ||||
|   color: $inverted-text-color; | ||||
| } | ||||
| 
 | ||||
| .text-icon-button.active { | ||||
|   color: $ui-highlight-color; | ||||
| } | ||||
| 
 | ||||
| .language-dropdown__dropdown__results__item.active { | ||||
|   background: $ui-highlight-color; | ||||
|   font-weight: 500; | ||||
| } | ||||
| 
 | ||||
| .link-button:disabled { | ||||
|   cursor: not-allowed; | ||||
| 
 | ||||
|  |  | |||
|  | @ -145,10 +145,6 @@ html { | |||
|   } | ||||
| } | ||||
| 
 | ||||
| .compose-form__autosuggest-wrapper, | ||||
| .poll__option input[type='text'], | ||||
| .compose-form .spoiler-input__input, | ||||
| .compose-form__poll-wrapper select, | ||||
| .search__input, | ||||
| .setting-text, | ||||
| .report-dialog-modal__textarea, | ||||
|  | @ -172,28 +168,11 @@ html { | |||
|   border-bottom: 0; | ||||
| } | ||||
| 
 | ||||
| .compose-form__poll-wrapper select { | ||||
|   background: $simple-background-color | ||||
|     url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14.933 18.467' height='19.698' width='15.929'><path d='M3.467 14.967l-3.393-3.5H14.86l-3.392 3.5c-1.866 1.925-3.666 3.5-4 3.5-.335 0-2.135-1.575-4-3.5zm.266-11.234L7.467 0 11.2 3.733l3.733 3.734H0l3.733-3.734z' fill='#{hex-color(lighten($ui-base-color, 8%))}'/></svg>") | ||||
|     no-repeat right 8px center / auto 16px; | ||||
| } | ||||
| 
 | ||||
| .compose-form__poll-wrapper, | ||||
| .compose-form__poll-wrapper .poll__footer { | ||||
|   border-top-color: lighten($ui-base-color, 8%); | ||||
| } | ||||
| 
 | ||||
| .notification__filter-bar { | ||||
|   border: 1px solid lighten($ui-base-color, 8%); | ||||
|   border-top: 0; | ||||
| } | ||||
| 
 | ||||
| .compose-form .compose-form__buttons-wrapper { | ||||
|   background: $ui-base-color; | ||||
|   border: 1px solid lighten($ui-base-color, 8%); | ||||
|   border-top: 0; | ||||
| } | ||||
| 
 | ||||
| .drawer__header, | ||||
| .drawer__inner { | ||||
|   background: $white; | ||||
|  | @ -206,52 +185,6 @@ html { | |||
|     no-repeat bottom / 100% auto; | ||||
| } | ||||
| 
 | ||||
| // Change the colors used in compose-form | ||||
| .compose-form { | ||||
|   .compose-form__modifiers { | ||||
|     .compose-form__upload__actions .icon-button, | ||||
|     .compose-form__upload__warning .icon-button { | ||||
|       color: lighten($white, 7%); | ||||
| 
 | ||||
|       &:active, | ||||
|       &:focus, | ||||
|       &:hover { | ||||
|         color: $white; | ||||
|       } | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
|   .compose-form__buttons-wrapper { | ||||
|     background: darken($ui-base-color, 6%); | ||||
|   } | ||||
| 
 | ||||
|   .autosuggest-textarea__suggestions { | ||||
|     background: darken($ui-base-color, 6%); | ||||
|   } | ||||
| 
 | ||||
|   .autosuggest-textarea__suggestions__item { | ||||
|     &:hover, | ||||
|     &:focus, | ||||
|     &:active, | ||||
|     &.selected { | ||||
|       background: lighten($ui-base-color, 4%); | ||||
|     } | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| .emoji-mart-bar { | ||||
|   border-color: lighten($ui-base-color, 4%); | ||||
| 
 | ||||
|   &:first-child { | ||||
|     background: darken($ui-base-color, 6%); | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| .emoji-mart-search input { | ||||
|   background: rgba($ui-base-color, 0.3); | ||||
|   border-color: $ui-base-color; | ||||
| } | ||||
| 
 | ||||
| .upload-progress__backdrop { | ||||
|   background: $ui-base-color; | ||||
| } | ||||
|  | @ -283,46 +216,11 @@ html { | |||
|   background: $ui-base-color; | ||||
| } | ||||
| 
 | ||||
| .privacy-dropdown.active .privacy-dropdown__value.active .icon-button { | ||||
|   color: $white; | ||||
| } | ||||
| 
 | ||||
| .account-gallery__item a { | ||||
|   background-color: $ui-base-color; | ||||
| } | ||||
| 
 | ||||
| // Change the colors used in the dropdown menu | ||||
| .dropdown-menu { | ||||
|   background: $white; | ||||
| 
 | ||||
|   &__arrow::before { | ||||
|     background-color: $white; | ||||
|   } | ||||
| 
 | ||||
|   &__item { | ||||
|     color: $darker-text-color; | ||||
| 
 | ||||
|     &--dangerous { | ||||
|       color: $error-value-color; | ||||
|     } | ||||
| 
 | ||||
|     a, | ||||
|     button { | ||||
|       background: $white; | ||||
|     } | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| // Change the text colors on inverted background | ||||
| .privacy-dropdown__option.active, | ||||
| .privacy-dropdown__option:hover, | ||||
| .privacy-dropdown__option.active .privacy-dropdown__option__content, | ||||
| .privacy-dropdown__option.active .privacy-dropdown__option__content strong, | ||||
| .privacy-dropdown__option:hover .privacy-dropdown__option__content, | ||||
| .privacy-dropdown__option:hover .privacy-dropdown__option__content strong, | ||||
| .dropdown-menu__item:not(.dropdown-menu__item--dangerous) a:active, | ||||
| .dropdown-menu__item:not(.dropdown-menu__item--dangerous) a:focus, | ||||
| .dropdown-menu__item:not(.dropdown-menu__item--dangerous) a:hover, | ||||
| .actions-modal ul li:not(:empty) a.active, | ||||
| .actions-modal ul li:not(:empty) a.active button, | ||||
| .actions-modal ul li:not(:empty) a:active, | ||||
|  | @ -331,7 +229,6 @@ html { | |||
| .actions-modal ul li:not(:empty) a:focus button, | ||||
| .actions-modal ul li:not(:empty) a:hover, | ||||
| .actions-modal ul li:not(:empty) a:hover button, | ||||
| .language-dropdown__dropdown__results__item.active, | ||||
| .admin-wrapper .sidebar ul .simple-navigation-active-leaf a, | ||||
| .simple_form .block-button, | ||||
| .simple_form .button, | ||||
|  | @ -339,19 +236,6 @@ html { | |||
|   color: $white; | ||||
| } | ||||
| 
 | ||||
| .language-dropdown__dropdown__results__item | ||||
|   .language-dropdown__dropdown__results__item__common-name { | ||||
|   color: lighten($ui-base-color, 8%); | ||||
| } | ||||
| 
 | ||||
| .language-dropdown__dropdown__results__item.active | ||||
|   .language-dropdown__dropdown__results__item__common-name { | ||||
|   color: darken($ui-base-color, 12%); | ||||
| } | ||||
| 
 | ||||
| .dropdown-menu__separator, | ||||
| .dropdown-menu__item.edited-timestamp__history__item, | ||||
| .dropdown-menu__container__header, | ||||
| .compare-history-modal .report-modal__target, | ||||
| .report-dialog-modal .poll__option.dialog-option { | ||||
|   border-bottom-color: lighten($ui-base-color, 4%); | ||||
|  | @ -385,10 +269,7 @@ html { | |||
| 
 | ||||
| .reactions-bar__item:hover, | ||||
| .reactions-bar__item:focus, | ||||
| .reactions-bar__item:active, | ||||
| .language-dropdown__dropdown__results__item:hover, | ||||
| .language-dropdown__dropdown__results__item:focus, | ||||
| .language-dropdown__dropdown__results__item:active { | ||||
| .reactions-bar__item:active { | ||||
|   background-color: $ui-base-color; | ||||
| } | ||||
| 
 | ||||
|  | @ -631,11 +512,6 @@ html { | |||
|   } | ||||
| } | ||||
| 
 | ||||
| .reply-indicator { | ||||
|   background: transparent; | ||||
|   border: 1px solid lighten($ui-base-color, 8%); | ||||
| } | ||||
| 
 | ||||
| .status__content, | ||||
| .reply-indicator__content { | ||||
|   a { | ||||
|  | @ -675,3 +551,30 @@ html { | |||
|     background-color: rgba($ui-highlight-color, 0.15); | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| .compose-form__actions .icon-button.active, | ||||
| .dropdown-button.active, | ||||
| .privacy-dropdown__option.active, | ||||
| .privacy-dropdown__option:focus, | ||||
| .language-dropdown__dropdown__results__item:focus, | ||||
| .language-dropdown__dropdown__results__item.active, | ||||
| .privacy-dropdown__option:focus .privacy-dropdown__option__content, | ||||
| .privacy-dropdown__option:focus .privacy-dropdown__option__content strong, | ||||
| .privacy-dropdown__option.active .privacy-dropdown__option__content, | ||||
| .privacy-dropdown__option.active .privacy-dropdown__option__content strong, | ||||
| .language-dropdown__dropdown__results__item:focus | ||||
|   .language-dropdown__dropdown__results__item__common-name, | ||||
| .language-dropdown__dropdown__results__item.active | ||||
|   .language-dropdown__dropdown__results__item__common-name { | ||||
|   color: $white; | ||||
| } | ||||
| 
 | ||||
| .compose-form .spoiler-input__input { | ||||
|   color: lighten($ui-highlight-color, 8%); | ||||
| } | ||||
| 
 | ||||
| .compose-form .autosuggest-textarea__textarea, | ||||
| .compose-form__highlightable, | ||||
| .poll__option input[type='text'] { | ||||
|   background: darken($ui-base-color, 10%); | ||||
| } | ||||
|  |  | |||
|  | @ -5,7 +5,7 @@ $white: #ffffff; | |||
| $classic-base-color: #282c37; | ||||
| $classic-primary-color: #9baec8; | ||||
| $classic-secondary-color: #d9e1e8; | ||||
| $classic-highlight-color: #858afa; | ||||
| $classic-highlight-color: #6364ff; | ||||
| 
 | ||||
| $blurple-600: #563acc; // Iris | ||||
| $blurple-500: #6364ff; // Brand purple | ||||
|  | @ -34,7 +34,7 @@ $ui-button-tertiary-border-color: $blurple-500 !default; | |||
| 
 | ||||
| $primary-text-color: $black !default; | ||||
| $darker-text-color: $classic-base-color !default; | ||||
| $highlight-text-color: darken($ui-highlight-color, 8%) !default; | ||||
| $highlight-text-color: $ui-highlight-color !default; | ||||
| $dark-text-color: #444b5d; | ||||
| $action-button-color: #606984; | ||||
| 
 | ||||
|  | @ -55,3 +55,8 @@ $account-background-color: $white !default; | |||
| } | ||||
| 
 | ||||
| $emojis-requiring-inversion: 'chains'; | ||||
| 
 | ||||
| .theme-mastodon-light { | ||||
|   --dropdown-border-color: #d9e1e8; | ||||
|   --dropdown-background-color: #fff; | ||||
| } | ||||
|  |  | |||
|  | @ -15,13 +15,14 @@ | |||
|   outline: 0; | ||||
|   box-sizing: border-box; | ||||
|   width: 100%; | ||||
|   border: 0; | ||||
|   box-shadow: none; | ||||
|   font-family: inherit; | ||||
|   background: $ui-base-color; | ||||
|   color: $darker-text-color; | ||||
|   border-radius: 4px; | ||||
|   font-size: 14px; | ||||
|   border: 1px solid lighten($ui-base-color, 8%); | ||||
|   font-size: 17px; | ||||
|   line-height: normal; | ||||
|   margin: 0; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -1314,6 +1314,9 @@ a.sparkline { | |||
| 
 | ||||
|     &__label { | ||||
|       padding: 15px; | ||||
|       display: flex; | ||||
|       gap: 8px; | ||||
|       align-items: center; | ||||
|     } | ||||
| 
 | ||||
|     &__rules { | ||||
|  | @ -1324,6 +1327,9 @@ a.sparkline { | |||
|   &__rule { | ||||
|     cursor: pointer; | ||||
|     padding: 15px; | ||||
|     display: flex; | ||||
|     gap: 8px; | ||||
|     align-items: center; | ||||
|   } | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -8,7 +8,7 @@ | |||
| 
 | ||||
| body { | ||||
|   font-family: $font-sans-serif, sans-serif; | ||||
|   background: darken($ui-base-color, 7%); | ||||
|   background: darken($ui-base-color, 8%); | ||||
|   font-size: 13px; | ||||
|   line-height: 18px; | ||||
|   font-weight: 400; | ||||
|  |  | |||
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							|  | @ -40,13 +40,12 @@ | |||
|   .compose-form { | ||||
|     width: 400px; | ||||
|     margin: 0 auto; | ||||
|     padding: 20px 0; | ||||
|     margin-top: 40px; | ||||
|     padding: 10px 0; | ||||
|     padding-bottom: 20px; | ||||
|     box-sizing: border-box; | ||||
| 
 | ||||
|     @media screen and (width <= 400px) { | ||||
|       width: 100%; | ||||
|       margin-top: 0; | ||||
|       padding: 20px; | ||||
|     } | ||||
|   } | ||||
|  | @ -56,13 +55,15 @@ | |||
|   width: 400px; | ||||
|   margin: 0 auto; | ||||
|   display: flex; | ||||
|   font-size: 13px; | ||||
|   line-height: 18px; | ||||
|   align-items: center; | ||||
|   gap: 10px; | ||||
|   font-size: 14px; | ||||
|   line-height: 20px; | ||||
|   box-sizing: border-box; | ||||
|   padding: 20px 0; | ||||
|   margin-top: 40px; | ||||
|   margin-bottom: 10px; | ||||
|   border-bottom: 1px solid $ui-base-color; | ||||
|   border-bottom: 1px solid lighten($ui-base-color, 8%); | ||||
| 
 | ||||
|   @media screen and (width <= 440px) { | ||||
|     width: 100%; | ||||
|  | @ -71,9 +72,9 @@ | |||
|   } | ||||
| 
 | ||||
|   .avatar { | ||||
|     width: 40px; | ||||
|     height: 40px; | ||||
|     margin-inline-end: 10px; | ||||
|     width: 48px; | ||||
|     height: 48px; | ||||
|     flex: 0 0 auto; | ||||
| 
 | ||||
|     img { | ||||
|       width: 100%; | ||||
|  | @ -87,13 +88,14 @@ | |||
|   .name { | ||||
|     flex: 1 1 auto; | ||||
|     color: $secondary-text-color; | ||||
|     width: calc(100% - 90px); | ||||
| 
 | ||||
|     .username { | ||||
|       display: block; | ||||
|       font-weight: 500; | ||||
|       font-size: 16px; | ||||
|       line-height: 24px; | ||||
|       text-overflow: ellipsis; | ||||
|       overflow: hidden; | ||||
|       color: $primary-text-color; | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
|  | @ -101,7 +103,7 @@ | |||
|     display: block; | ||||
|     font-size: 32px; | ||||
|     line-height: 40px; | ||||
|     margin-inline-start: 10px; | ||||
|     flex: 0 0 auto; | ||||
|   } | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,6 @@ | |||
| .emoji-mart { | ||||
|   font-size: 13px; | ||||
|   display: inline-block; | ||||
|   color: $inverted-text-color; | ||||
| 
 | ||||
|   &, | ||||
|   * { | ||||
|  | @ -15,13 +14,13 @@ | |||
| } | ||||
| 
 | ||||
| .emoji-mart-bar { | ||||
|   border: 0 solid darken($ui-secondary-color, 8%); | ||||
|   border: 0 solid var(--dropdown-border-color); | ||||
| 
 | ||||
|   &:first-child { | ||||
|     border-bottom-width: 1px; | ||||
|     border-top-left-radius: 5px; | ||||
|     border-top-right-radius: 5px; | ||||
|     background: $ui-secondary-color; | ||||
|     background: var(--dropdown-border-color); | ||||
|   } | ||||
| 
 | ||||
|   &:last-child { | ||||
|  | @ -36,7 +35,6 @@ | |||
|   display: flex; | ||||
|   justify-content: space-between; | ||||
|   padding: 0 6px; | ||||
|   color: $lighter-text-color; | ||||
|   line-height: 0; | ||||
| } | ||||
| 
 | ||||
|  | @ -50,9 +48,10 @@ | |||
|   cursor: pointer; | ||||
|   background: transparent; | ||||
|   border: 0; | ||||
|   color: $darker-text-color; | ||||
| 
 | ||||
|   &:hover { | ||||
|     color: darken($lighter-text-color, 4%); | ||||
|     color: lighten($darker-text-color, 4%); | ||||
|   } | ||||
| } | ||||
| 
 | ||||
|  | @ -60,7 +59,7 @@ | |||
|   color: $highlight-text-color; | ||||
| 
 | ||||
|   &:hover { | ||||
|     color: darken($highlight-text-color, 4%); | ||||
|     color: lighten($highlight-text-color, 4%); | ||||
|   } | ||||
| 
 | ||||
|   .emoji-mart-anchor-bar { | ||||
|  | @ -95,7 +94,7 @@ | |||
|   height: 270px; | ||||
|   max-height: 35vh; | ||||
|   padding: 0 6px 6px; | ||||
|   background: $simple-background-color; | ||||
|   background: var(--dropdown-background-color); | ||||
|   will-change: transform; | ||||
| 
 | ||||
|   &::-webkit-scrollbar-track:hover, | ||||
|  | @ -107,7 +106,7 @@ | |||
| .emoji-mart-search { | ||||
|   padding: 10px; | ||||
|   padding-inline-end: 45px; | ||||
|   background: $simple-background-color; | ||||
|   background: var(--dropdown-background-color); | ||||
|   position: relative; | ||||
| 
 | ||||
|   input { | ||||
|  | @ -118,9 +117,9 @@ | |||
|     font-family: inherit; | ||||
|     display: block; | ||||
|     width: 100%; | ||||
|     background: rgba($ui-secondary-color, 0.3); | ||||
|     color: $inverted-text-color; | ||||
|     border: 1px solid $ui-secondary-color; | ||||
|     background: $ui-base-color; | ||||
|     color: $darker-text-color; | ||||
|     border: 1px solid lighten($ui-base-color, 8%); | ||||
|     border-radius: 4px; | ||||
| 
 | ||||
|     &::-moz-focus-inner { | ||||
|  | @ -155,11 +154,10 @@ | |||
|   &:disabled { | ||||
|     cursor: default; | ||||
|     pointer-events: none; | ||||
|     opacity: 0.3; | ||||
|   } | ||||
| 
 | ||||
|   svg { | ||||
|     fill: $action-button-color; | ||||
|     fill: $darker-text-color; | ||||
|   } | ||||
| } | ||||
| 
 | ||||
|  | @ -180,7 +178,7 @@ | |||
|     inset-inline-start: 0; | ||||
|     width: 100%; | ||||
|     height: 100%; | ||||
|     background-color: rgba($ui-secondary-color, 0.7); | ||||
|     background-color: var(--dropdown-border-color); | ||||
|     border-radius: 100%; | ||||
|   } | ||||
| } | ||||
|  | @ -197,7 +195,7 @@ | |||
|     width: 100%; | ||||
|     font-weight: 500; | ||||
|     padding: 5px 6px; | ||||
|     background: $simple-background-color; | ||||
|     background: var(--dropdown-background-color); | ||||
|   } | ||||
| } | ||||
| 
 | ||||
|  | @ -241,7 +239,7 @@ | |||
| 
 | ||||
| .emoji-mart-no-results { | ||||
|   font-size: 14px; | ||||
|   color: $light-text-color; | ||||
|   color: $dark-text-color; | ||||
|   text-align: center; | ||||
|   padding: 5px 6px; | ||||
|   padding-top: 70px; | ||||
|  |  | |||
|  | @ -1,5 +1,5 @@ | |||
| .modal-layout { | ||||
|   background: $ui-base-color | ||||
|   background: darken($ui-base-color, 4%) | ||||
|     url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 234.80078 31.757813" width="234.80078" height="31.757812"><path d="M19.599609 0c-1.05 0-2.10039.375-2.90039 1.125L0 16.925781v14.832031h234.80078V17.025391l-16.5-15.900391c-1.6-1.5-4.20078-1.5-5.80078 0l-13.80078 13.099609c-1.6 1.5-4.19883 1.5-5.79883 0L179.09961 1.125c-1.6-1.5-4.19883-1.5-5.79883 0L159.5 14.224609c-1.6 1.5-4.20078 1.5-5.80078 0L139.90039 1.125c-1.6-1.5-4.20078-1.5-5.80078 0l-13.79883 13.099609c-1.6 1.5-4.20078 1.5-5.80078 0L100.69922 1.125c-1.600001-1.5-4.198829-1.5-5.798829 0l-13.59961 13.099609c-1.6 1.5-4.200781 1.5-5.800781 0L61.699219 1.125c-1.6-1.5-4.198828-1.5-5.798828 0L42.099609 14.224609c-1.6 1.5-4.198828 1.5-5.798828 0L22.5 1.125C21.7.375 20.649609 0 19.599609 0z" fill="#{hex-color($ui-base-lighter-color)}33"/></svg>') | ||||
|     repeat-x bottom fixed; | ||||
|   display: flex; | ||||
|  |  | |||
|  | @ -52,6 +52,8 @@ | |||
|   &__option { | ||||
|     position: relative; | ||||
|     display: flex; | ||||
|     align-items: flex-start; | ||||
|     gap: 8px; | ||||
|     padding: 6px 0; | ||||
|     line-height: 18px; | ||||
|     cursor: default; | ||||
|  | @ -78,16 +80,22 @@ | |||
|       box-sizing: border-box; | ||||
|       width: 100%; | ||||
|       font-size: 14px; | ||||
|       color: $inverted-text-color; | ||||
|       color: $secondary-text-color; | ||||
|       outline: 0; | ||||
|       font-family: inherit; | ||||
|       background: $simple-background-color; | ||||
|       border: 1px solid darken($simple-background-color, 14%); | ||||
|       background: $ui-base-color; | ||||
|       border: 1px solid $darker-text-color; | ||||
|       border-radius: 4px; | ||||
|       padding: 6px 10px; | ||||
|       padding: 8px 12px; | ||||
| 
 | ||||
|       &:focus { | ||||
|         border-color: $highlight-text-color; | ||||
|         border-color: $ui-highlight-color; | ||||
|       } | ||||
| 
 | ||||
|       @media screen and (width <= 600px) { | ||||
|         font-size: 16px; | ||||
|         line-height: 24px; | ||||
|         letter-spacing: 0.5px; | ||||
|       } | ||||
|     } | ||||
| 
 | ||||
|  | @ -96,26 +104,20 @@ | |||
|     } | ||||
| 
 | ||||
|     &.editable { | ||||
|       display: flex; | ||||
|       align-items: center; | ||||
|       overflow: visible; | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
|   &__input { | ||||
|     display: inline-block; | ||||
|     display: block; | ||||
|     position: relative; | ||||
|     border: 1px solid $ui-primary-color; | ||||
|     box-sizing: border-box; | ||||
|     width: 18px; | ||||
|     height: 18px; | ||||
|     margin-inline-end: 10px; | ||||
|     top: -1px; | ||||
|     width: 17px; | ||||
|     height: 17px; | ||||
|     border-radius: 50%; | ||||
|     vertical-align: middle; | ||||
|     margin-top: auto; | ||||
|     margin-bottom: auto; | ||||
|     flex: 0 0 18px; | ||||
|     flex: 0 0 auto; | ||||
| 
 | ||||
|     &.checkbox { | ||||
|       border-radius: 4px; | ||||
|  | @ -159,6 +161,15 @@ | |||
|     } | ||||
|   } | ||||
| 
 | ||||
|   &__option.editable &__input { | ||||
|     &:active, | ||||
|     &:focus, | ||||
|     &:hover { | ||||
|       border-color: $ui-primary-color; | ||||
|       border-width: 1px; | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
|   &__number { | ||||
|     display: inline-block; | ||||
|     width: 45px; | ||||
|  | @ -209,90 +220,6 @@ | |||
|   } | ||||
| } | ||||
| 
 | ||||
| .compose-form__poll-wrapper { | ||||
|   border-top: 1px solid darken($simple-background-color, 8%); | ||||
| 
 | ||||
|   ul { | ||||
|     padding: 10px; | ||||
|   } | ||||
| 
 | ||||
|   .poll__input { | ||||
|     &:active, | ||||
|     &:focus, | ||||
|     &:hover { | ||||
|       border-color: $ui-button-focus-background-color; | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
|   .poll__footer { | ||||
|     border-top: 1px solid darken($simple-background-color, 8%); | ||||
|     padding: 10px; | ||||
|     display: flex; | ||||
|     align-items: center; | ||||
| 
 | ||||
|     button, | ||||
|     select { | ||||
|       flex: 1 1 50%; | ||||
| 
 | ||||
|       &:focus { | ||||
|         border-color: $highlight-text-color; | ||||
|       } | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
|   .button.button-secondary { | ||||
|     font-size: 14px; | ||||
|     font-weight: 400; | ||||
|     padding: 6px 10px; | ||||
|     height: auto; | ||||
|     line-height: inherit; | ||||
|     color: $action-button-color; | ||||
|     border-color: $action-button-color; | ||||
|     margin-inline-end: 5px; | ||||
| 
 | ||||
|     &:hover, | ||||
|     &:focus, | ||||
|     &.active { | ||||
|       border-color: $action-button-color; | ||||
|       background-color: $action-button-color; | ||||
|       color: $ui-button-color; | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
|   li { | ||||
|     display: flex; | ||||
|     align-items: center; | ||||
| 
 | ||||
|     .poll__option { | ||||
|       flex: 0 0 auto; | ||||
|       width: calc(100% - (23px + 6px)); | ||||
|       margin-inline-end: 6px; | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
|   select { | ||||
|     appearance: none; | ||||
|     box-sizing: border-box; | ||||
|     font-size: 14px; | ||||
|     color: $inverted-text-color; | ||||
|     display: inline-block; | ||||
|     width: auto; | ||||
|     outline: 0; | ||||
|     font-family: inherit; | ||||
|     background: $simple-background-color | ||||
|       url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14.933 18.467' height='19.698' width='15.929'><path d='M3.467 14.967l-3.393-3.5H14.86l-3.392 3.5c-1.866 1.925-3.666 3.5-4 3.5-.335 0-2.135-1.575-4-3.5zm.266-11.234L7.467 0 11.2 3.733l3.733 3.734H0l3.733-3.734z' fill='#{hex-color(darken($simple-background-color, 14%))}'/></svg>") | ||||
|       no-repeat right 8px center / auto 16px; | ||||
|     border: 1px solid darken($simple-background-color, 14%); | ||||
|     border-radius: 4px; | ||||
|     padding: 6px 10px; | ||||
|     padding-inline-end: 30px; | ||||
|   } | ||||
| 
 | ||||
|   .icon-button.disabled { | ||||
|     color: darken($simple-background-color, 14%); | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| .muted .poll { | ||||
|   color: $dark-text-color; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue