Update as of 8.08.2021:
- Hid the bookmarks bar and fine-tuned some header styles.
If you want to add your own style to Slack, here's how.
I dunno what happened. I just wanted to try something sporty/future-y, I guess. Code for this is directly below.
| .c-mrkdwn__broadcast--mention, | |
| .p-classic_nav__right__search__placeholder{ | |
| color: #555; | |
| } | |
| .channel_header, #col_messages, | |
| #client_body:not(.onboarding):not(.feature_global_nav_layout):before, | |
| #footer { | |
| box-shadow: inset 1px 0 0 0 #555 !important; | |
| } |
| # GPG on Tower |
| name: 'Lightning sub-profile' | |
| type: profile | |
| version: 8.x-dev | |
| description: 'Sub-profile of Lightning' | |
| core: '8.x' | |
| themes: | |
| - bartik | |
| - seven |
Update as of 8.08.2021:
If you want to add your own style to Slack, here's how.
I dunno what happened. I just wanted to try something sporty/future-y, I guess. Code for this is directly below.
| <?php | |
| use Symfony\Component\HttpFoundation\Request; | |
| use Drupal\Core\DrupalKernel; | |
| $autoload = require __DIR__ . '/vendor/autoload.php'; | |
| $cwd = getcwd(); | |
| chdir('docroot'); | |
| $drupalKernel = DrupalKernel::createFromRequest( |
| # Useful for improving Time Machine backup prep. times, Mac App Store install speeds, etc. | |
| sudo sysctl debug.lowpri_throttle_enabled=0 | |
| # To restore defaults | |
| sudo sysctl debug.lowpri_throttle_enabled=1 |
| vcl 4.0; | |
| # !!Important!! Do not use this if your authenticated response can vary | |
| # between users or roles. | |
| # Note: This is only useful if the following things are true: | |
| # * Access to the jsonapi endpoints is restricted to authorized users only. | |
| # * jsonapi request results will be the same for all authorized users. No | |
| # customized or filtered results based on role or other access checks. |
| #### | |
| ## Blackfire config - `lando rebuild` required | |
| #### | |
| BLACKFIRE_CLIENT_ID=b5ee8ca3-****-****-****-5d227546a4c0 | |
| BLACKFIRE_CLIENT_TOKEN=3a2b88cbfb*******************************22763 | |
| BLACKFIRE_SERVER_ID=4b8ac335-****-****-****-b34439207732 | |
| BLACKFIRE_SERVER_TOKEN=98f7fdf4b12b7**************************12b837cf080d |
https://twitter.com/snookca/status/1073299331262889984?s=21
Happy to chat about this. There’s an obvious disclaimer that there’s a cost to css-in-js solutions, but that cost is paid specifically for the benefits it brings; as such it’s useful for some usecases, and not meant as a replacement for all workflows.
(These conversations always get heated on twitter, so please believe that I’m here to converse, not to convince. In return, I promise to listen to you too and change my opinions; I’ve had mad respect for you for years and would consider your feedback a gift. Also, some of the stuff I’m writing might seem obvious to you; I’m not trying to tell you if all people of some of the details, but it might be useful to someone else who bumps into this who doesn’t have context)
So the big deal about css-in-js (cij) is selectors.
| /** | |
| * Implements hook_ENTITY_TYPE_presave(). | |
| */ | |
| function [modulename]_media_media_presave(EntityInterface $entity) { | |
| if ($entity->bundle() == 'document') { | |
| foreach ($entity->field_media_file as $file_reference) { | |
| $file = File::load($file_reference->target_id); | |
| switch ($entity->status->value) { | |
| // Unpublish, set to private. | |
| case 0: |