SASS: BEM –pink to a P element

I’ve delcared my modifier to the P element as per below. In HTML (at the bottom), what am I doing incorrectly as the p tags do not change to pink if I declare the class name as shown. p { font-size: 1rem; &–pink{ color: pink; } } <p class="block__p –pink">this is placeholder text.</p> I thought… Read More SASS: BEM –pink to a P element

QProcess: The system cannot find the file specificed even when full path is provided

Here is my full code: #include <QCoreApplication> #include "iostream" int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QProcess process; QString path = "C:\\Windows\\System32\\wbem\\WMIC.exe"; QString arg = "cpu get name"; QStringList arguments; arguments << arg; //process.start(path,arguments); process.start(path + " " + arg); //qDebug() << "Started"; std::cout << "Started" << std::endl; if (!process.waitForFinished()){ qDebug() << "ERROR"… Read More QProcess: The system cannot find the file specificed even when full path is provided

CSS BEM, nest child elements or create new block?

I love the BEM concept, but I get extremely confused when an element has multiple child components, should I keep nesting elements or transform them into new blocks? or something else? Real example: <form class="darpi-form"> <div class="darpi-form__field"> <label class="darpi-form__field__label"></label> <div class="darpi-form__field__content"> <input type="text" /> <!– .. –> </div> <span class="darpi-form__field__error-message"></span> </div> <button class="darpi-form__button"></button> </form> <style>… Read More CSS BEM, nest child elements or create new block?