sto

[ASAP] Parallel Reaction Monitoring-Mass Spectrometry (PRM-MS)-Based Targeted Proteomic Surrogates for Intrinsic Subtypes in Breast Cancer: Comparative Analysis with Immunohistochemical Phenotypes

Journal of Proteome Research
DOI: 10.1021/acs.jproteome.9b00490




sto

A multiporous carbon family with superior stability, tunable electronic structures and amazing hydrogen storage capability

Phys. Chem. Chem. Phys., 2020, 22,9734-9739
DOI: 10.1039/D0CP00469C, Paper
Lianfang Xie, Zheng Wang, Xuechun Xu, Yingxiang Cai
The traditional view that natural allotropes are more stable than artificially synthesized structures is broken.
The content of this RSS Feed (c) The Royal Society of Chemistry




sto

Intra-octahedral distortion on lamellar potassium niobate K4Nb6O17: a periodic DFT study of structural, electronic and vibrational properties

Phys. Chem. Chem. Phys., 2020, Advance Article
DOI: 10.1039/D0CP01581D, Paper
Juliana Kelly D. Souza, Thiago M. Duarte, Iêda Maria Garcia dos Santos, Júlio Ricardo Sambrano, Ary da Silva Maia, Anderson dos Reis Albuquerque
DFT calculation applied to K4Nb6O17 allowed to identify and correlate its electronic and vibrational properties with [NbO6] intraoctahedral distortion.
To cite this article before page numbers are assigned, use the DOI form of citation above.
The content of this RSS Feed (c) The Royal Society of Chemistry




sto

[ASAP] Imidazo[1,2-<italic toggle="yes">a</italic>]pyridine Derivatives as Aldehyde Dehydrogenase Inhibitors: Novel Chemotypes to Target Glioblastoma Stem Cells

Journal of Medicinal Chemistry
DOI: 10.1021/acs.jmedchem.9b01910




sto

[ASAP] Discovery, Structure–Activity Relationship, and Biological Activity of Histone-Competitive Inhibitors of Histone Acetyltransferases P300/CBP

Journal of Medicinal Chemistry
DOI: 10.1021/acs.jmedchem.9b02164




sto

[ASAP] Discovery of Peptide Boronate Derivatives as Histone Deacetylase and Proteasome Dual Inhibitors for Overcoming Bortezomib Resistance of Multiple Myeloma

Journal of Medicinal Chemistry
DOI: 10.1021/acs.jmedchem.9b02161




sto

[ASAP] Structural Fingerprints of an Intact Monoclonal Antibody Acquired under Formulated Storage Conditions via <sup>15</sup>N Direct Detection Nuclear Magnetic Resonance

Journal of Medicinal Chemistry
DOI: 10.1021/acs.jmedchem.0c00231




sto

[ASAP] Discovery of CPI-1612: A Potent, Selective, and Orally Bioavailable EP300/CBP Histone Acetyltransferase Inhibitor

ACS Medicinal Chemistry Letters
DOI: 10.1021/acsmedchemlett.0c00155




sto

Contextual styling with custom properties

Something I’ve been wanting for a long time, define different regions like a footer section, or side bar and not have to deal with all the contextual styling hassle. A.k.a. “Now that this button is used on a dark background, the button needs to change its colors too. Where should the styles live?”. Here an old post about struggling with contextual styling.

So then the other day I was doing some experiments with using custom properties for Atom’s UI. Turns out, using custom properties might make contextual styling a bit easier. For the rest of the post, let’s switch to a more simple example. A page where the main area is light, but then has a dark hero and footer section. Like this:

In the past, I probably would’ve created variations like Button--dark or overwrote it with header .Button {…}. Depends a bit on the project. Here another approach: Create themes with a set of variables, then apply the theme to the different areas.

1. Default theme

First let’s define our default theme with a bunch of variables.

[data-theme="default"] {
  --fg:         hsl(0,0%,25%);
  --border:     hsl(0,0%,75%);
  
  --bg:         hsl(0,0%,95%);
  --button-bg:  hsl(0,0%,99%);
  --input-bg:   hsl(0,0%,90%);
}

Then we create some components where we use the variables defined above.

[data-theme] {
  color: var(--fg);
  background-color: var(--bg);
}

.Button {
  color: var(--fg);
  border: 1px solid var(--border);
  background-color: var(--button-bg);
}

.Input {
  color: var(--fg);
  border: 1px solid var(--border);
  background-color: var(--input-bg);
}

And lastly we add the [data-theme="default"] attribute on the body so that our components will pick up the variables.

<body data-theme="default">

If you wonder why use data-theme attributes over classes? Well, no specific reason. Maybe with attributes, it’s a hint that only one theme should be used per element and is more separated from your other classes.

At this point we get this:

See the Pen Contextual styling with custom properties (1/3) by simurai (@simurai) on CodePen.

2. Dark theme

But our designer wants the hero and footer to be dark. Alright, let’s define another theme region.

[data-theme="dark"] {
  --fg:         hsl(0,10%,70%);
  --border:     hsl(0,10%,10%);
  
  --bg:         hsl(0,0%,20%);
  --button-bg:  hsl(0,0%,25%);
  --input-bg:   hsl(0,0%,15%);
}

And add the theme attribute to the header and footer.

<header data-theme="dark">
<footer data-theme="dark">

Which gives us this:

See the Pen Contextual styling with custom properties (2/3) by simurai (@simurai) on CodePen.

The reason why this works is that custom properties cascade and can be overridden on nested elements, just like normal properties.

3. Hero theme

A few months pass and our designer comes back with a redesigned hero section. “To make it look fresh” with a splash of color.

No problem! Just like with the dark theme, we define a new “hero” theme.

[data-theme="hero"] {
  --fg:         hsl(240,50%,90%);
  --border:     hsl(240,50%,10%);
  
  --bg:         hsl(240,33%,30%);
  --button-bg:  hsl(240,33%,40%);
  --input-bg:   hsl(240,33%,20%);
}
<header data-theme="hero">

And here is that fresh hero:

See the Pen Contextual styling with custom properties (3/3) by simurai (@simurai) on CodePen.

It’s also not limited to colors only, could be used for sizes, fonts or anything that makes sense to define as variables.

Benefits

Using these theme “regions” lets your components stay context un-aware and you can use them in multiple themes. Even on the same page.

  • Developers can add components, move components around, without having to know about in what context (theme) they live. The markup for the components stays the same.
  • Design systems authors can create new components without worrying about where they get used, the variables used in components stay the same.
  • Designers can define new theme regions, or change existing ones, without having to make changes to a component’s HTML or CSS, it stays the same.

Less time to talk about who, how and where, more time to talk about the weather. ☔️????

Concerns

Yeah, right. The big question: But does it scale? Can this be used for all use cases.

Ok, I’m pretty sure it doesn’t fit all situations. There are just too many to find a single solution for them all. And I’m actually not sure how well it scales. I guess it works great in these simple demos, but I have yet to find a larger project to test it on. So if you have used (or plan to use) this approach, I’m curious to know how it went.

A concern I can imagine is that the list of variables might grow quickly if themes have totally different characteristics. Like not just a bit darker or lighter backgrounds. Then you might need to have foreground and border colors for each component (or group of components) and can’t just use the general --fg and --border variables. Naming these variables is probably the hardest part.

Update I

@giuseppegurgone made an interesting comment:

in suitcss projects I used to define component level custom props, theme variables and then create themes by mapping the former to the latter suitcss-toolkit

So if I understood it correctly, by mapping theme variables to component variables, you could avoid your theme variables from growing too much and you can decide for each component how to use these theme variables.

Update II

If it’s too early to use custom properties in your project, @szalonna posted an example how to do something similar in SCSS.




sto

17 Tools for Effective Customer Engagement

The one thing that every business that offers a service has in common is its customers. It doesn't matter if you are a freelancer with just one client or a small design agency with a few clients, you have to deal with customers on a day to day basis.




sto

Inventing Boston: design, production, and consumption / Edward S. Cooke, Jr

Rotch Library - NK838.B67 C66 2019




sto

Neuer Norden Zürich: ein Kunstprojekt im öffentlichen Raum, 9. Juni-2. September 2018 = New north Zurich: a public art project, 9th of June-2nd of September 2018 / herausgegeben von Christoph Doswald ; fotografiert von Pierluigi Macor ; Übe

Rotch Library - N6496.3.S9 Z876 2018




sto

Design by accident: for a new history of design / Alexandra Midal

Rotch Library - NK1175.M53 2019




sto

History has failed us, but no matter: siren eun young jung, Jane Jin Kaisen, Hwayeon Nam

Rotch Library - N6488.I8 V433 2019 K6b




sto

Reading closed books / Sam Winston

Rotch Library - N7433.4.W56 R4 2018




sto

Belonging: a German reckons with history and home / Nora Krug

Barker Library - NC975.5.K78 A2 2018




sto

Studies in Armenian art: collected papers / by Nira Stone ; edited by Michael E. Stone, Asya Bereznyak

Rotch Library - N7274.S76 2019




sto

Picture industry: a provisional history of the technical image 1844-2018 / edited, with an introduction by Walead Beshty ; foreword by Maja Hoffmann, Tom Eccles

Rotch Library - TR350.P53 2018




sto

Poetry of the revolution: Marx, manifestos, and the avant-gardes / Martin Puchner

Online Resource




sto

Trouble with women artists: reframing the history of art / Laure Adler & Camille Viéville ; translated from the French by Kate Robinson

Rotch Library - N8354.A3513 2019




sto

Bestowing beauty: masterpieces from Persian lands-selections from the Hossein Afshar collection / edited by Aimée Froom ; with essays by Walter B. Denny, Aimée Froom, Melanie Gibson, and David J. Roxburgh; and contributions by Robert Hillenbrand

Rotch Library - N7280.B47 2019




sto

Caught in a whirlwind: a cultural history of Ottoman Baghdad as reflected in its illustrated manuscripts / by Melis Taner

Rotch Library - ND3239.I72 B338 2020




sto

Beauty in the age of empire: Japan, Egypt, and the global history of aesthetic education / Raja Adal

Rotch Library - NX384.A1 A33 2019




sto

Showcasing science: a history of Teylers Museum in the nineteenth century / Martin P.M. Weiss

Rotch Library - N2477.W45 2019




sto

Gauguin: portraits / edited by Cornelia Homburg, Christopher Riopelle ; with contributions by Elizabeth C. Childs [and five others]

Rotch Library - ND553.G27 A4 2019




sto

After silence: a history of AIDS through its images / Avram Finkelstein

Hayden Library - NX180.A36 F56 2018




sto

Speculative taxidermy: natural history, animal surfaces, and art in the anthropocene / Giovanni Aloi

Rotch Library - N7660.A57 2018




sto

Sensations of history: animation and new media art / James J. Hodge

Dewey Library - N70.H687 2019




sto

Leonardo da Vinci: the 100 milestones / Martin Kemp

Rotch Library - N6923.L33 K449 2019




sto

Designs for different futures / Kathryn B. Hiesinger & Michelle Millar Fisher, Emmet Byrne, Maite Borjabad López-Pastor & Zoë Ryan ; with Andrew Blauvelt, Colin Fanning, and Orkan Telhan ; contributions by Juliana Rowen Barton [and 24 o

Rotch Library - NK1397.D483 2019




sto

Algorithms for Functional Programming / by John David Stone

Stone, John David, author




sto

Georgie & Elsa: Jorge Luis Borges and his wife the untold story / Norman Thomas Di Giovanni

Hayden Library - PQ7797.B635 Z6728 2014




sto

What we become: a novel / Arturo Pérez-Reverte ; translated by Nick Caistor and Lorenza Garcíia

Hayden Library - PQ6666.E765 T3613 2016




sto

La historia de mis dientes / Valeria Luiselli ; ilustraciones de Daniela Franco

Hayden Library - PQ7298.422.U37 H57 2014




sto

A history of Mexican literature / edited by Ignacio M. Sánchez Prado (Washington University in Saint Louis), Anna M. Nogar (University of New Mexico), José Ramón Ruisánchez Serra (University of Houston)

Hayden Library - PQ7111.H58 2016




sto

The year 200 / Agustín de Rojas ; translated from the Spanish by Nick Caistor and Hebe Powell

Hayden Library - PQ7390.R649 A5613 2016




sto

Todo esto te daré / Dolores Redondo

Hayden Library - PQ6718.E4136 T64 2016




sto

Vampire in love and other stories / Enrique Vila-Matas ; translated from the Spanish by Margaret Jull Costa

Hayden Library - PQ6672.I37 A2 2016




sto

Things we lost in the fire: stories / Mariana Enriquez ; translated by Megan McDowell

Hayden Library - PQ7798.15.N75 A2 2017




sto

Thus were their faces: stories / Silvina Ocampo ; translated from the Spanish by Daniel Balderston ; introduction by Helen Oyeyemi ; preface by Jorge Luis Borges

Hayden Library - PQ7797.O293 A2 2015b




sto

Eugenia: a fictional sketch of future customs / Eduardo Urzaiz ; edited and translated by Sarah A. Buck Kachaluba and Aaron Dziubinskyj

Hayden Library - PQ7297.U78 E813 2016




sto

Sonnets of dark love: The Tamarit divan / Federico García Lorca ; translated and introduced by Jane Duran and Gloria García Lorca ; with essays by Christopher Maurer, Andrés Soria Olmedo

Hayden Library - PQ6613.A763 A2 2017b




sto

Stories from Latin America: Historias de Latinoamérica / Genevieve Barlow

Hayden Library - PQ7085.B37 2017




sto

Historia argentina / Rodrigo Fresán

Hayden Library - PQ7798.16.R395 H57 2017




sto

Hunter of stories / Eduardo Galeano ; translated by Mark Fried

Hayden Library - PQ8520.17.A4 A2 2017




sto

Ficción e historia: la narrativa de José Emilio Pacheco / Yvette Jiménez de Báez, Diana Morán, Edith Negrín

Online Resource




sto

Writing the Apocalypse: historical vision in contemporary U.S. and Latin American fiction / Lois Parkinson Zamora

Online Resource




sto

¿Discapacidad: literatura, teatro y cine hispánicos vistos desde los disability studies / Susanne Hartwig, Julio Enrique Checa Puerta

Online Resource




sto

Mouthful of birds: stories / Samanta Schweblin ; translated from the Spanish by Megan McDowell

Hayden Library - PQ7798.29.C5388 A2 2019




sto

Oratorio para observador hombre exhausto y coro de astronautas: Oratorium für Beobachter erschöpften Menschen und Astronautenchor / Andrés Recasens Salvo ; Harald Wentzlaff-Eggebert (Hg.) ; übersetzt von Wera Zeller

Online Resource